:root {
  --bg: #f7f2e8;
  --card: #fffdf8;
  --ink: #16263f;
  --gold: #b8892f;
  --line: #e6dcc6;
  --mut: #6b6556;
  --ok: #2f7d5b;
  --no: #b8473f;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  color: var(--ink);
  font:
    500 16px/1.6 Manrope,
    system-ui,
    sans-serif;
}
h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.4em;
  line-height: 1.2;
}
header {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 2vw;
}
header img {
  height: 110px;
  display: block;
}
header > a {
  display: block;
  transform: scaleX(1.16) translateY(-13px);
  transform-origin: center;
}
nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 14px 14px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 1.1rem;
  transition:
    color 0.25s,
    background 0.25s;
}
nav a::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), #f3d98b);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
nav a:hover {
  color: #fff;
  background: transparent;
}
nav a.on {
  color: #f3d98b;
}
nav a.on::after,
nav a:hover::after {
  transform: scaleX(1);
}
nav a.on .svg-inline--fa {
  color: var(--gold);
}
.profile-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.15;
}
.profile-nav small {
  display: none;
  max-width: 110px;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-nav.has-user small {
  display: block;
}
.profile-nav.male small {
  color: #79bfff;
}
.profile-nav.female small {
  color: #ff9abb;
}
.svg-inline--fa {
  margin-right: 0.65em;
}
.fa-arrow-right,
.fa-play {
  margin: 0 0 0 0.65em;
}
.ico .svg-inline--fa,
.opt .svg-inline--fa {
  margin: 0;
}
.opt .svg-inline--fa:last-child {
  margin-left: auto;
}
.big {
  font-size: 2.4rem;
  color: var(--gold);
  margin: 0 !important;
}
nav .svg-inline--fa {
  margin-right: 5px;
}
#app {
  transition:
    opacity 0.25s,
    transform 0.25s;
}
#app.leave {
  opacity: 0;
  transform: translateY(-16px);
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.go > *,
.go .grid > *,
.go .ask > * {
  animation: in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.go > :nth-child(2),
.go .grid > :nth-child(2),
.go .ask > :nth-child(2) {
  animation-delay: 0.1s;
}
.go > :nth-child(3),
.go .grid > :nth-child(3),
.go .ask > :nth-child(3) {
  animation-delay: 0.2s;
}
.go > :nth-child(n + 4),
.go .grid > :nth-child(n + 4),
.go .ask > :nth-child(4) {
  animation-delay: 0.3s;
}
.go .ask > :nth-child(5) {
  animation-delay: 0.4s;
}
#pick {
  transition:
    opacity 0.35s,
    transform 0.35s;
}
#pick.out {
  opacity: 0;
  transform: scale(0.94) translateY(16px);
}
.ask {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
.ask h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  margin: 0;
}
.ask input {
  max-width: 520px;
  font-size: 1.5rem;
  text-align: center;
  padding: 18px;
  border-radius: 18px;
  margin: 6px 0;
}
.grade-preferences {
  width: min(520px, 100%);
  margin: 2px 0;
  padding: 16px 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.7);
}
.grade-preferences > b,
.grade-preferences > span {
  display: block;
}
.grade-preferences > b {
  color: var(--ink);
  font-size: 0.92rem;
}
.grade-preferences > span {
  margin-top: 2px;
  color: var(--mut);
  font-size: 0.76rem;
}
.grade-preferences .chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}
.grade-preferences .grade-choice {
  min-width: 0;
  padding: 10px 6px;
  border-color: var(--line);
  box-shadow: 0 2px 0 rgba(22, 38, 63, 0.04);
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.grade-preferences .grade-choice:hover {
  border-color: var(--gold);
  background: #fff8e8;
  transform: translateY(-2px);
}
.grade-preferences .grade-choice.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 14px rgba(22, 38, 63, 0.2);
  transform: translateY(-2px);
}
.grade-preferences .grade-choice.on:hover {
  background: #243958;
}
@keyframes grade-pop {
  0% {
    transform: scale(0.92);
  }
  65% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
.grade-preferences .grade-choice.pop {
  animation: grade-pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (max-width: 500px) {
  .grade-preferences {
    padding: 14px;
  }
  .grade-preferences .chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.big2 {
  width: 88px;
  height: 88px;
  font-size: 2.4rem;
  border-radius: 28px;
  margin: 0;
}
.ico.profile-choice-icon {
  width: auto;
  height: auto;
  background: transparent;
  margin: 0;
  color: var(--gold);
  font-size: 2.7rem;
}
.profile-choice-label {
  color: var(--ink);
  font:
    800 clamp(1.15rem, 3vw, 1.5rem) "Playfair Display",
    Georgia,
    serif;
}
main {
  max-width: 1050px;
  margin: 0 auto;
  padding: 30px 5vw 50px;
}
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 470px;
  padding: 58px;
  background-color: #f4efe4;
  background-image:
    linear-gradient(
      90deg,
      #fffdf8 0%,
      rgba(255, 253, 248, 0.96) 36%,
      rgba(255, 253, 248, 0.52) 63%,
      rgba(255, 253, 248, 0.08) 100%
    ),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=85");
  background-position:
    center,
    right center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 490px;
}
.home-eyebrow,
.home-section-heading > span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.home-hero h1 {
  margin: 10px 0 12px;
  color: var(--ink);
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 0.98;
}
.home-hero p {
  max-width: 410px;
  margin: 0;
  color: var(--mut);
  font-size: 1.05rem;
  line-height: 1.7;
}
.home-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.home-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
}
.home-primary .svg-inline--fa {
  margin: 0;
}
.home-hero small {
  display: block;
  margin-top: 19px;
  color: var(--mut);
  font-size: 0.8rem;
  font-weight: 800;
}
.home-hero small .svg-inline--fa {
  margin-right: 7px;
  color: var(--ok);
}
.home-start {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
  gap: 46px;
  align-items: center;
  margin: 46px 0 28px;
}
.home-section-heading h2 {
  margin: 7px 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}
.home-section-heading p {
  max-width: 360px;
  margin: 0;
  color: var(--mut);
  line-height: 1.65;
}
.home-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.home-topics a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 168px;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.home-topics a:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 28px rgba(22, 38, 63, 0.1);
  transform: translateY(-4px);
}
.home-topics > a > .svg-inline--fa {
  margin: 0 0 17px;
  color: var(--gold);
  font-size: 1.55rem;
}
.home-topics b,
.home-topics span {
  display: block;
}
.home-topics b {
  font-size: 1rem;
}
.home-topics span {
  margin-top: 4px;
  color: var(--mut);
  font-size: 0.78rem;
  line-height: 1.4;
}
.home-topics .topic-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  margin: 0;
  font-size: 0.78rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.home-topics a:hover .topic-arrow {
  transform: translateX(4px);
}
.home-post-note {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 15px 20px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.88rem;
}
.home-post-note .svg-inline--fa {
  margin: 0;
  color: var(--gold);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(22, 38, 63, 0.06);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--mut);
  border: 2px dashed var(--line);
  border-radius: 20px;
  margin-top: 26px;
}
.empty .svg-inline--fa {
  font-size: 2.4rem;
  color: var(--gold);
  margin: 0 0 10px;
}
.ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
button,
.btn {
  font:
    700 0.95rem Manrope,
    sans-serif;
  border: 0;
  border-radius: 30px;
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}
button:hover {
  background: var(--gold);
  transform: translateY(-1px);
}
button.alt {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
button.alt:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.chip {
  padding: 8px 16px;
  font-size: 0.88rem;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
}
.chip.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip-role {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}
.chip:hover .chip-role {
  background: #fff;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  margin: 6px 0 12px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--gold);
}
.bar {
  height: 8px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0 20px;
}
.bar b {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: 0.4s;
}
.opt {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 14px 16px;
}
.opt:hover {
  border-color: var(--gold);
  background: #fff;
}
.opt.ok {
  background: #e7f3ec;
  border-color: var(--ok);
}
.opt.no {
  background: #f8e8e6;
  border-color: var(--no);
  animation: sh 0.4s;
}
@keyframes sh {
  25% {
    transform: translateX(-7px);
  }
  75% {
    transform: translateX(7px);
  }
}
.fb {
  padding: 14px 18px;
  border-radius: 14px;
  margin: 14px 0;
  font-weight: 700;
}
.fb.ok {
  background: #e7f3ec;
  color: var(--ok);
}
.fb.no {
  background: #f8e8e6;
  color: var(--no);
}
.cf {
  position: fixed;
  top: 45%;
  left: 50%;
  width: 9px;
  height: 14px;
  z-index: 99;
  pointer-events: none;
  animation: pop 1.3s ease-out forwards;
}
.notice {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid #e8c978;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(22, 38, 63, 0.24);
  animation: notice-in 0.25s ease-out;
}
.notice .svg-inline--fa {
  margin: 0;
  color: #e8c978;
}
.notice.out {
  animation: notice-out 0.25s ease-in forwards;
}
@keyframes notice-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes notice-out {
  to {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
@keyframes pop {
  to {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
  }
}
.score {
  font:
    800 3.4rem "Playfair Display",
    serif;
  color: var(--gold);
}
.result-card {
  text-align: center;
  padding: 30px 24px;
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.result-top .svg-inline--fa {
  margin: 0;
  font-size: 1.25rem;
}
.grade-value {
  margin: 5px 0 0;
  color: var(--gold);
  font:
    800 clamp(3.2rem, 10vw, 5.1rem) "Playfair Display",
    Georgia,
    serif;
  line-height: 1;
}
.result-score {
  margin-top: 7px;
  color: var(--ink);
  font-weight: 800;
}
.result-card > p {
  margin: 12px auto 18px;
  max-width: 460px;
  color: var(--mut);
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.result-actions button {
  padding: 10px 15px;
  font-size: 0.82rem;
}
.result-review {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.rq {
  border-left: 4px solid var(--line);
  padding: 17px 18px;
  margin: 0;
}
.rq.ok {
  border-color: var(--ok);
}
.rq.no {
  border-color: var(--no);
}
.rq p {
  margin: 8px 0 0;
  font-size: 0.87rem;
}
.rq.ok p .svg-inline--fa {
  color: var(--ok);
}
.rq.no p:first-of-type .svg-inline--fa {
  color: var(--no);
}
.rq.no p:nth-of-type(2) .svg-inline--fa {
  color: var(--ok);
}
.answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.learn-toggle,
.other-answers-toggle {
  margin: 0;
  padding: 6px 10px !important;
  font-size: 0.72rem !important;
  border-width: 1px !important;
}
.learn-toggle .svg-inline--fa,
.other-answers-toggle .svg-inline--fa {
  margin-right: 4px;
}
.learn {
  font-size: 0.8rem;
  line-height: 1.5;
}
.other-answers {
  display: none;
  gap: 6px;
  margin-top: 8px;
}
.other-answers.show {
  display: grid;
}
.other-answers span {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
  color: var(--mut);
  font-size: 0.78rem;
  line-height: 1.4;
}
.other-answers b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 0.68rem;
}
.learn {
  display: none;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 8px;
}
.learn.show {
  display: block;
}
.quiz-history {
  padding: 22px 24px;
}
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.history-kicker {
  display: block;
  color: var(--gold);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
.history-heading h3 {
  margin: 0;
}
.history-count {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font:
    800 1rem "Playfair Display",
    Georgia,
    serif;
}
.history-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 20px 0 2px;
}
.history-empty h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 2px;
}
.history-empty p {
  margin: 0;
  color: var(--mut);
  font-size: 0.84rem;
}
.history-empty button {
  padding: 9px 13px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.history-list {
  padding-top: 8px;
}
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.history-row b {
  display: block;
}
.history-row small {
  display: block;
  color: var(--mut);
  font-size: 0.76rem;
}
.history-score {
  display: flex;
  align-items: center;
  gap: 12px;
}
.history-row strong {
  color: var(--ok);
  font-family: "Playfair Display", Georgia, serif;
}
.history-row strong span {
  color: var(--mut);
  font-weight: 600;
}
.history-review-toggle {
  padding: 7px 10px !important;
  font-size: 0.72rem !important;
  white-space: nowrap;
}
.history-review-toggle .svg-inline--fa {
  margin-right: 5px;
}
.history-legacy {
  margin: 0;
  padding: 9px 0 12px;
  color: var(--mut);
  font-size: 0.76rem;
  border-bottom: 1px solid var(--line);
}
.history-legacy .svg-inline--fa {
  color: var(--gold);
  margin-right: 5px;
}
.history-review {
  display: none;
  margin: 0 0 14px;
  padding: 4px 0 2px;
}
.history-review.open {
  display: grid;
  gap: 10px;
}
.history-question {
  padding: 13px 15px;
  border-left: 3px solid var(--line);
  background: var(--bg);
}
.history-question.ok {
  border-color: var(--ok);
}
.history-question.no {
  border-color: var(--no);
}
.history-question b {
  font-size: 0.86rem;
}
.history-question p {
  margin: 7px 0 0;
  font-size: 0.8rem;
}
.history-question p .svg-inline--fa {
  margin-right: 5px;
}
.history-question.ok p .svg-inline--fa {
  color: var(--ok);
}
.history-question.no p:first-of-type .svg-inline--fa {
  color: var(--no);
}
.history-question.no p:nth-of-type(2) .svg-inline--fa {
  color: var(--ok);
}
.history-question button {
  margin-top: 9px;
  padding: 6px 10px;
  font-size: 0.72rem;
}
.history-question .learn {
  font-size: 0.78rem;
  line-height: 1.5;
}
@media (max-width: 620px) {
  .history-empty {
    grid-template-columns: 1fr;
  }
  .history-empty button {
    grid-column: 1;
    width: max-content;
  }
  .history-empty p {
    font-size: 0.8rem;
  }
  .history-row {
    align-items: flex-start;
  }
  .history-score {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }
}
.two {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}
.profile-sidebar {
  display: grid;
  gap: 14px;
}
.profile-card {
  text-align: center;
}
.profile-progress {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(22, 38, 63, 0.12);
}
.progress-title {
  color: #e9e1ce;
  font-size: 0.9rem;
}
.progress-title .svg-inline--fa {
  color: var(--gold);
  margin-right: 7px;
}
.progress-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.progress-stats div {
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
}
.progress-stats strong {
  display: block;
  color: #fff;
  font:
    800 1.45rem "Playfair Display",
    Georgia,
    serif;
  line-height: 1;
}
.progress-stats span {
  display: block;
  color: #d9d0ba;
  font-size: 0.72rem;
  margin-top: 3px;
}
.profile-progress p {
  margin: 0;
  color: #d9d0ba;
  font-size: 0.78rem;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .two {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    grid-template-columns: minmax(0, 300px);
    justify-content: center;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding: 38px 28px;
  }
  .home-hero-note {
    min-height: 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(232, 201, 120, 0.5);
    border-left: 0;
  }
  .home-start {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }
  .home-topics {
    grid-template-columns: 1fr;
  }
  .home-topics a {
    min-height: 0;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    padding: 15px 4px;
  }
  .home-topics a:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .home-topics > a > .svg-inline--fa {
    margin: 0;
  }
  .home-topics .topic-arrow {
    opacity: 1;
    transform: none;
  }
  .home-topics span {
    margin-top: 2px;
  }
}
.sw {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--line);
  padding: 0;
}
.sw.on {
  box-shadow: 0 0 0 3px var(--gold);
}
.tag {
  display: inline-block;
  background: var(--bg);
  color: var(--gold);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
}
.avatar-button {
  position: relative;
  display: block;
  margin: 0 auto 4px;
  padding: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
}
.avatar-button:hover {
  background: transparent;
  transform: translateY(-3px);
}
.avatar-button svg {
  display: block;
  filter: drop-shadow(0 8px 8px rgba(22, 38, 63, 0.1));
}
.avatar-wave {
  position: absolute;
  right: 4px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(184, 137, 47, 0.3);
}
.avatar-wave .svg-inline--fa {
  margin: 0;
}
.avatar-greeting {
  position: relative;
  margin: 0 auto 12px;
  max-width: 250px;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-size: 0.77rem;
  line-height: 1.35;
}
.avatar-greeting::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.avatar-greeting .svg-inline--fa {
  color: var(--gold);
  margin-right: 5px;
}
@keyframes avatar-wave {
  25% {
    transform: rotate(-12deg) translateY(-4px);
  }
  50% {
    transform: rotate(12deg) translateY(-8px);
  }
  75% {
    transform: rotate(-8deg) translateY(-4px);
  }
}
@keyframes greeting-pop {
  0% {
    opacity: 0.35;
    transform: translateY(6px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.avatar-button.wave {
  animation: avatar-wave 0.6s ease-in-out;
}
.avatar-greeting.pop {
  animation: greeting-pop 0.32s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .avatar-button.wave,
  .avatar-greeting.pop {
    animation: none;
  }
}
.avatar-button .avatar-brows,
.avatar-button .avatar-mouth,
.avatar-button .avatar-eyes {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 0.2s ease,
    opacity 0.18s ease,
    stroke-width 0.18s ease;
}
.avatar-wink-lid {
  opacity: 0;
}
.avatar-thought {
  position: absolute;
  top: 3px;
  right: -15px;
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 31px;
  padding: 0 7px;
  border-radius: 14px;
  background: #fff;
  color: var(--gold);
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6) translateY(8px);
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(22, 38, 63, 0.16);
}
.avatar-thought::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: #fff;
  transform: rotate(45deg);
}
.avatar-thought .svg-inline--fa {
  margin: 0;
}
.avatar-button.smile .avatar-mouth {
  transform: scaleY(1.18);
}
.avatar-button.smile .avatar-brows {
  transform: translateY(-1px);
}
.avatar-button.wink .avatar-eyes ellipse:first-child,
.avatar-button.wink .avatar-eyes circle:nth-of-type(1),
.avatar-button.wink .avatar-eyes circle:nth-of-type(3) {
  opacity: 0;
}
.avatar-button.wink .avatar-wink-lid {
  opacity: 1;
}
.avatar-button.wink .avatar-brows .brow-left {
  transform: translateY(-4px) rotate(-7deg);
  transform-origin: center;
}
.avatar-button.wink .avatar-mouth {
  transform: translateX(1px) scaleY(1.12);
}
.avatar-button.think .avatar-brows .brow-left {
  transform: translateY(-4px) rotate(-9deg);
  transform-origin: center;
}
.avatar-button.think .avatar-eyes {
  transform: translate(-1px, -1px);
}
.avatar-button.think .avatar-mouth {
  transform: scaleY(0.7);
  opacity: 0.82;
}
.avatar-button.smile .avatar-thought,
.avatar-button.wink .avatar-thought,
.avatar-button.think .avatar-thought {
  animation: thought-pop 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes thought-pop {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6) translateY(8px);
  }
  18%,
  78% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.profile-name {
  position: relative;
  display: block;
  width: max-content;
  margin: 0 auto 0.4em;
}
.profile-name h3 {
  margin: 0;
}
.gender-icon {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
  font-size: 1.05rem;
}
.gender-icon.male {
  color: #2878c8;
}
.gender-icon.female {
  color: #d65a83;
}
.profile-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
}
.profile-actions button {
  padding: 10px 12px;
}
.customize-toggle {
  min-width: 0 !important;
  width: auto !important;
  padding: 7px 12px !important;
  font-size: 0.78rem !important;
}
.customize-toggle .svg-inline--fa {
  margin-right: 5px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.customize-toggle.open .svg-inline--fa {
  transform: rotate(180deg);
}
.customization-panel {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  text-align: left;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease,
    margin-top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.customization-panel.open {
  max-height: 1000px;
  opacity: 1;
  margin-top: 16px;
}
.customization-content {
  padding-top: 0;
  border-top: 1px solid transparent;
  transform: translateY(-12px);
  transition:
    padding-top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s ease,
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.customization-panel.open .customization-content {
  padding-top: 16px;
  border-color: var(--line);
  transform: none;
}
.customization-panel b {
  font-size: 0.84rem;
}
.customization-panel .chips {
  margin: 7px 0 14px;
}
.customization-panel .chip {
  padding: 7px 10px;
  font-size: 0.78rem;
}
@media (prefers-reduced-motion: reduce) {
  .customize-toggle .svg-inline--fa,
  .customization-panel,
  .customization-content,
  .avatar-button.laugh .avatar-look,
  .avatar-button.smile .avatar-thought,
  .avatar-button.laugh .avatar-thought,
  .avatar-button.wink .avatar-thought,
  .avatar-button.think .avatar-thought {
    animation: none;
  }
}
.creator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.creator-toggle {
  width: 100%;
  text-align: left;
}
.creator-form {
  grid-column: span 2;
}
.creator-form > button:last-child {
  margin: 14px 0 0;
}
.quiz-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.quiz-form-actions button {
  width: auto;
  padding: 9px 13px;
  font-size: 0.8rem;
}
.quiz-form-actions .create-quiz {
  min-width: 0;
}
.question-form {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.question-form input {
  margin-bottom: 8px;
}
.question-form button {
  margin-top: 4px;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.reveal {
  animation: reveal 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@media (max-width: 620px) {
  .creator {
    grid-template-columns: 1fr;
  }
  .creator-form {
    grid-column: auto;
  }
  .quiz-form-actions {
    gap: 9px;
  }
  .quiz-form-actions button {
    padding: 8px 10px;
    font-size: 0.76rem;
  }
}
.creator-options {
  display: grid;
  grid-template-columns: minmax(0, 220px);
  gap: 10px;
  margin: 12px 0;
}
.creator-options label {
  display: grid;
  gap: 5px;
  color: var(--mut);
  font-size: 0.77rem;
  font-weight: 800;
}
.creator-options select {
  margin: 0;
}
.quiz-options,
.post-options {
  grid-template-columns: repeat(2, minmax(0, 220px));
}
.post-tag,
.quiz-difficulty {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.post-tag.important {
  background: #fce1de;
  color: #9b3027;
}
.post-tag.advice {
  background: #e1f0e7;
  color: #286542;
}
.post-tag.news {
  background: #e1ebf7;
  color: #285a91;
}
.quiz-difficulty {
  margin: 0 0 0 5px;
  background: var(--bg);
  color: var(--mut);
  vertical-align: middle;
}
.quiz-difficulty.easy {
  color: #286542;
}
.quiz-difficulty.hard {
  color: #9b3027;
}
@media (max-width: 620px) {
  .quiz-options,
  .post-options {
    grid-template-columns: 1fr;
  }
}
.icon-choice {
  position: relative;
  display: block;
}
.icon-choice select {
  min-width: 0;
  width: 100%;
  padding-left: 42px;
}
.icon-preview {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gold);
  font-size: 0.9rem;
}
.icon-preview .svg-inline--fa {
  margin: 0;
}
.role {
  text-align: left;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.role.on,
.role:hover {
  border-color: var(--gold);
  background: var(--card);
}
.role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
@media (max-width: 900px) {
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .role-grid {
    grid-template-columns: 1fr;
  }
}
.profile-pick {
  display: grid;
  gap: 30px;
}
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 0;
  text-align: center;
}
.profile-hero h1 {
  margin: 0 0 8px;
  color: #2b3a55;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
}
.profile-hero p {
  max-width: 540px;
  margin: 0;
  color: var(--mut);
}
.profile-hero .profile-have {
  margin-top: 10px;
  font-size: 0.9rem;
}
.link-btn {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}
.link-btn:hover {
  background: none;
  color: var(--ink);
  transform: none;
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: min(440px, 100%);
  margin: 0 auto;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--line);
  color: #fff;
  font-size: 0.82rem;
  transition: 0.25s;
}
.step b .svg-inline--fa {
  margin: 0;
  font-size: 0.75rem;
}
.step small {
  color: var(--mut);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.step.on b {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(184, 137, 47, 0.2);
}
.step.on small {
  color: var(--ink);
}
.step.done b {
  background: var(--ok);
}
.step-line {
  flex: 1;
  height: 2px;
  margin: 14px 8px 0;
  background: var(--line);
}
.step-line.done {
  background: var(--ok);
}
.ask .steps {
  margin-bottom: 10px;
}
.profile-iam {
  margin: 0 0 4px;
  color: #2b3a55;
  text-align: center;
  font-size: 1.6rem;
}
.profile-login {
  display: none;
}
.profile-login.open {
  display: block;
  animation: reveal 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.profile-login,
.profile-new {
  text-align: center;
}
.profile-login .chips {
  justify-content: center;
  margin: 12px 0 0;
}
.profile-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--mut);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-divider::before,
.profile-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.profile-new .grid {
  margin-top: 18px;
}
.role {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 230px;
  padding: 36px 18px 26px;
  text-align: center;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.role::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #e8c978);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.role:hover::before,
.role.on::before {
  transform: scaleX(1);
}
.role:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(22, 38, 63, 0.12);
}
.role .ico {
  width: auto;
  height: auto;
  margin: 0 0 8px;
  background: transparent;
  font-size: 3.1rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.role:hover .ico {
  transform: scale(1.18) rotate(-6deg);
}
.role h3 {
  margin: 0;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}
.role span {
  display: block;
  max-width: 190px;
  color: var(--mut);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}
footer {
  text-align: center;
  color: var(--mut);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 24px;
}
.profile-statistics-panel {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(120deg, #16263f, #29476a);
  color: #fff;
  box-shadow: 0 16px 34px rgba(22, 38, 63, 0.18);
}
.profile-statistics-panel .progress-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f4e7c6;
  font:
    800 1.15rem "Playfair Display",
    Georgia,
    serif;
}
.profile-statistics-panel .progress-title .svg-inline--fa {
  margin: 0;
  color: #e0b84c;
  font-size: 1.35rem;
}
.profile-statistics-panel .progress-stats {
  display: contents;
}
.profile-statistics-panel .progress-stats div {
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
}
.profile-statistics-panel .progress-stats div:first-child {
  background: rgba(224, 184, 76, 0.18);
}
.profile-statistics-panel .progress-stats strong {
  font:
    800 clamp(2.4rem, 5vw, 4.25rem) "Playfair Display",
    Georgia,
    serif;
  line-height: 0.95;
}
.profile-statistics-panel .progress-stats span {
  display: block;
  margin-top: 6px;
  color: #dce7f4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-statistics-panel p {
  grid-column: 2/-1;
  margin: 0;
  color: #dce7f4;
  font-size: 0.88rem;
}
@media (max-width: 760px) {
  .profile-statistics-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }
  .profile-statistics-panel .progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .profile-statistics-panel p {
    grid-column: auto;
  }
  .profile-statistics-panel .progress-stats div {
    padding: 14px;
  }
  .profile-statistics-panel .progress-stats strong {
    font-size: 2.5rem;
  }
}
.profile-statistics-panel {
  display: block;
  padding: 30px 32px;
}
.statistics-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.statistics-heading span,
.statistics-bottom span {
  color: #e0b84c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.statistics-heading .svg-inline--fa {
  margin-right: 5px;
}
.statistics-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}
.statistics-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.statistics-metrics article {
  min-height: 130px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.statistics-metrics article:first-child {
  background: rgba(224, 184, 76, 0.18);
}
.statistics-metrics i {
  display: block;
  color: #e0b84c;
  font-size: 1rem;
}
.statistics-metrics i.svg-inline--fa {
  margin: 0;
}
.statistics-metrics strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font:
    800 clamp(1.7rem, 4vw, 3rem) "Playfair Display",
    Georgia,
    serif;
  line-height: 1;
}
.statistics-metrics span {
  display: block;
  margin-top: 7px;
  color: #dce7f4;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
}
.statistics-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
}
.statistics-bottom b,
.statistics-bottom small {
  display: block;
  margin-top: 3px;
}
.statistics-bottom b {
  color: #fff;
  font-size: 0.98rem;
}
.statistics-bottom small {
  color: #dce7f4;
}
.statistics-rankings {
  padding: 10px 13px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.statistics-rankings .svg-inline--fa {
  margin-right: 5px;
}
.leaderboard-panel {
  display: none;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.leaderboard-panel.open {
  display: block;
}
.leaderboard-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.leaderboard-tabs button {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #dce7f4;
  font-size: 0.73rem;
}
.leaderboard-tabs button.on {
  background: #e0b84c;
  color: #16263f;
}
.leaderboard-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
}
.leaderboard-row.you {
  background: rgba(224, 184, 76, 0.2);
}
.leaderboard-row b {
  color: #e0b84c;
}
.leaderboard-row strong {
  color: #fff;
}
.leaderboard-empty {
  margin: 8px 0;
  color: #dce7f4;
  font-size: 0.8rem;
}
@media (max-width: 760px) {
  .profile-statistics-panel {
    padding: 22px;
  }
  .statistics-heading {
    align-items: start;
    flex-direction: column;
  }
  .statistics-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .statistics-metrics article {
    min-height: 112px;
  }
  .statistics-bottom {
    align-items: start;
    flex-direction: column;
  }
  .statistics-rankings {
    width: 100%;
  }
}
.site-guide {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  filter: drop-shadow(0 5px 9px rgba(22, 38, 63, 0.12));
}
.site-guide:hover {
  background: transparent;
  transform: translateY(-3px);
}
.site-guide img {
  width: 86px;
  height: auto;
  object-fit: contain;
  object-position: bottom;
  image-rendering: auto;
  transition: transform 0.25s ease;
}
.site-guide:hover img {
  transform: rotate(-3deg);
}
.site-guide span {
  max-width: 0;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 0;
  white-space: nowrap;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.73rem;
  line-height: 1;
  transition:
    max-width 0.25s ease,
    padding 0.25s ease;
}
.site-guide:hover span,
.site-guide:focus-visible span {
  max-width: 160px;
  padding: 9px 10px;
}
.site-info {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 38, 63, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.site-info.open {
  opacity: 1;
  pointer-events: auto;
}
.site-info-panel {
  position: relative;
  width: min(510px, 100%);
  padding: 34px;
  background: var(--card);
  border-top: 5px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(22, 38, 63, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.site-info.open .site-info-panel {
  transform: none;
}
.site-info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: var(--mut);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.site-info-close:hover {
  background: var(--bg);
  color: var(--ink);
}
.site-info-close .svg-inline--fa {
  margin: 0;
}
.site-info-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--gold);
  font-size: 1.35rem;
}
.site-info-mark .svg-inline--fa {
  margin: 0;
}
.site-info-kicker {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.site-info h2 {
  margin: 5px 0 9px;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}
.site-info p {
  margin: 0;
  color: var(--mut);
  line-height: 1.6;
}
.site-info-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.site-info-list div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.45;
}
.site-info-list div:last-child {
  border: 0;
}
.site-info-list .svg-inline--fa {
  margin: 2px 0 0;
  color: var(--gold);
}
.site-info button:not(.site-info-close) {
  font-size: 0.86rem;
}
.info-open {
  overflow: hidden;
}
@media (max-width: 620px) {
  .site-guide {
    display: none;
  }
  .site-info-panel {
    padding: 29px 22px;
  }
  .site-info-list {
    margin: 16px 0;
  }
}
.site-guide {
  text-decoration: none;
}
.about-hero {
  max-width: 830px;
  padding: 55px 0 45px;
  border-bottom: 1px solid var(--line);
}
.about-hero > span,
.about-school > div > span {
  display: block;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.about-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.03;
}
.about-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--mut);
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-hero a {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 5px;
}
.about-hero a .svg-inline--fa {
  margin-left: 8px;
}
.about-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  padding: 44px 0;
}
.about-number {
  display: block;
  color: var(--gold);
  font:
    800 1rem "Playfair Display",
    Georgia,
    serif;
}
.about-intro h2 {
  margin: 7px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}
.about-intro p {
  margin: 0;
  color: var(--mut);
  line-height: 1.7;
}
.about-quote {
  align-self: end;
  color: var(--ink);
  font:
    800 clamp(1.3rem, 2.7vw, 1.9rem) "Playfair Display",
    Georgia,
    serif;
  line-height: 1.35;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-values article {
  min-height: 250px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.about-values article:last-child {
  border: 0;
}
.about-values article > .svg-inline--fa {
  margin: 0;
  color: var(--gold);
  font-size: 1.55rem;
}
.about-values article > span {
  display: block;
  margin-top: 27px;
  color: var(--mut);
  font-size: 0.7rem;
  font-weight: 800;
}
.about-values h3 {
  margin: 6px 0 7px;
  font-size: 1.16rem;
}
.about-values p {
  margin: 0;
  color: var(--mut);
  font-size: 0.88rem;
  line-height: 1.6;
}
.about-school {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-top: 46px;
  padding: 34px 0 15px;
  border-bottom: 5px solid var(--ink);
}
.about-school h2 {
  max-width: 720px;
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.25;
}
.about-school > .svg-inline--fa {
  margin: 0;
  color: var(--gold);
  font-size: 3.2rem;
}
@media (max-width: 700px) {
  .about-hero {
    padding: 34px 0;
  }
  .about-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .about-values article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .about-values article:last-child {
    border: 0;
  }
  .about-school {
    align-items: flex-start;
  }
  .about-school > .svg-inline--fa {
    font-size: 2.4rem;
  }
  .site-info {
    display: none;
  }
}
body {
  background-image: linear-gradient(135deg, #f7f2e8, #f3ecdc);
}
.falling-icons {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.falling-icons .svg-inline--fa {
  position: absolute;
  top: -12%;
  margin: 0;
  color: var(--gold);
  opacity: 0.16;
  font-size: clamp(1.3rem, 2.4vw, 2.3rem);
  animation: fall 19s linear infinite;
}
.falling-icons .svg-inline--fa:nth-child(1) {
  left: 5%;
  animation-duration: 18s;
  animation-delay: -8s;
}
.falling-icons .svg-inline--fa:nth-child(2) {
  left: 14%;
  animation-duration: 25s;
  animation-delay: -17s;
  color: var(--ink);
}
.falling-icons .svg-inline--fa:nth-child(3) {
  left: 27%;
  animation-duration: 21s;
  animation-delay: -5s;
}
.falling-icons .svg-inline--fa:nth-child(4) {
  left: 39%;
  animation-duration: 27s;
  animation-delay: -12s;
  color: var(--ok);
}
.falling-icons .svg-inline--fa:nth-child(5) {
  left: 52%;
  animation-duration: 20s;
  animation-delay: -15s;
}
.falling-icons .svg-inline--fa:nth-child(6) {
  left: 64%;
  animation-duration: 24s;
  animation-delay: -3s;
  color: var(--ok);
}
.falling-icons .svg-inline--fa:nth-child(7) {
  left: 73%;
  animation-duration: 22s;
  animation-delay: -19s;
}
.falling-icons .svg-inline--fa:nth-child(8) {
  left: 86%;
  animation-duration: 26s;
  animation-delay: -10s;
  color: var(--ink);
}
.falling-icons .svg-inline--fa:nth-child(9) {
  left: 94%;
  animation-duration: 19s;
  animation-delay: -14s;
}
.falling-icons .svg-inline--fa:nth-child(10) {
  left: 20%;
  animation-duration: 29s;
  animation-delay: -24s;
}
.falling-icons .svg-inline--fa:nth-child(11) {
  left: 46%;
  animation-duration: 23s;
  animation-delay: -9s;
}
.falling-icons .svg-inline--fa:nth-child(12) {
  left: 79%;
  animation-duration: 28s;
  animation-delay: -20s;
  color: var(--ink);
}
@keyframes fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(-12deg);
  }
  100% {
    transform: translate3d(42px, 124vh, 0) rotate(22deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .falling-icons .svg-inline--fa {
    animation: none;
    top: var(--icon-top, 15%);
  }
  .falling-icons .svg-inline--fa:nth-child(odd) {
    display: none;
  }
}
header,
main,
footer {
  position: relative;
  z-index: 1;
}
header {
  border-bottom: 4px solid var(--gold);
}
.card {
  transition: 0.25s;
}
.grid > .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(22, 38, 63, 0.13);
  border-color: var(--gold);
}
.go > *,
.go .grid > *,
.go .ask > * {
  animation-fill-mode: backwards;
}
.hero {
  position: relative;
  overflow: hidden;
}
.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
  margin-top: 12px;
}
.fl {
  position: absolute;
  color: var(--gold);
  opacity: 0.28;
  animation: fl 6s ease-in-out infinite;
  margin: 0 !important;
}
.f1 {
  right: 7%;
  top: 14%;
  font-size: 2.6rem;
}
.f2 {
  right: 24%;
  bottom: 12%;
  font-size: 2rem;
  animation-delay: -2s;
}
.f3 {
  right: 3%;
  bottom: 16%;
  font-size: 3.2rem;
  animation-delay: -4s;
}
@keyframes fl {
  50% {
    transform: translateY(-14px) rotate(6deg);
  }
}
.feat {
  max-width: 760px;
  margin: 34px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: 28px;
  padding: 42px 46px;
  text-align: center;
  box-shadow: 0 20px 48px rgba(22, 38, 63, 0.13);
}
.feat h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 16px 0 10px;
}
.feat p {
  font-size: 1.1rem;
  white-space: pre-line;
}
.feat small,
.grid small {
  color: var(--mut);
}
.grid .card p {
  white-space: pre-line;
}
.sec {
  margin-top: 40px;
  color: var(--mut);
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.row button {
  padding: 9px 16px;
}
.user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-actions select {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 6px 28px 6px 10px;
  border-width: 1px;
  border-radius: 8px;
  font-size: 0.8rem;
}
.row .user-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 6px 10px;
  border-width: 1px;
  font-size: 0.76rem;
  white-space: nowrap;
}
.user-delete .svg-inline--fa {
  margin: 0;
}
.user-delete:hover {
  color: #9b3027;
  border-color: #9b3027;
}
.manage-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.manage-actions button {
  padding: 6px 9px !important;
  font-size: 0.72rem !important;
  white-space: nowrap;
}
.manage-actions .svg-inline--fa {
  margin-right: 4px;
}
.remove-button {
  color: #9b3027 !important;
}
.manage-form {
  display: grid;
  gap: 9px;
  margin: -2px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.manage-form input,
.manage-form textarea,
.manage-form select {
  margin: 0;
}
.manage-form-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.manage-form-controls select {
  flex: 1 1 130px;
}
.manage-form-controls button {
  padding: 8px 11px;
  font-size: 0.76rem;
  white-space: nowrap;
}
.manage-form-controls button .svg-inline--fa {
  margin-right: 4px;
}
.quiz-gate-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  max-width: 870px;
  margin: 34px auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 24px 58px rgba(22, 38, 63, 0.16);
}
.quiz-gate-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 500px;
  padding: 48px 44px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.quiz-gate-intro::after {
  content: "";
  position: absolute;
  right: -68px;
  bottom: -82px;
  width: 245px;
  height: 245px;
  border: 1px solid rgba(232, 201, 120, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(232, 201, 120, 0.08),
    0 0 0 52px rgba(232, 201, 120, 0.05);
}
.quiz-gate-icon {
  position: relative;
  z-index: 1;
  margin: 0 0 25px;
  color: #e8c978;
  font-size: 3.45rem;
  line-height: 1;
}
.quiz-gate-icon .svg-inline--fa {
  margin: 0;
}
.quiz-gate-eyebrow {
  position: relative;
  z-index: 1;
  color: #e8c978;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.quiz-gate-intro h2 {
  position: relative;
  z-index: 1;
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
}
.quiz-gate-intro p {
  position: relative;
  z-index: 1;
  max-width: 310px;
  margin: 0;
  color: #d9d0ba;
  line-height: 1.7;
}
.quiz-gate-rule {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 3px;
  margin: 25px 0 16px;
  background: #e8c978;
}
.quiz-gate-intro small {
  position: relative;
  z-index: 1;
  color: #e9e1ce;
  font-size: 0.78rem;
  font-weight: 700;
}
.quiz-gate-intro small .svg-inline--fa {
  margin-right: 7px;
  color: #e8c978;
}
.quiz-gate-access {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 44px;
  background: #fffdf8;
}
.quiz-gate-access > .tag {
  padding: 5px 11px;
  background: #fbf5e9;
  font-size: 0.72rem;
}
.quiz-gate-access h3 {
  margin: 16px 0 16px;
  font-size: 1.55rem;
}
.quiz-gate-features {
  display: grid;
  width: 100%;
  gap: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}
.quiz-gate-features div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}
.quiz-gate-features .svg-inline--fa {
  color: var(--ok);
  margin: 0;
  font-size: 0.9rem;
}
.quiz-gate-users {
  width: 100%;
  margin: 0 0 20px;
}
.quiz-gate-users .chips {
  margin-bottom: 0;
}
.quiz-gate-actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: 9px;
  margin-top: auto;
}
.quiz-gate-actions button {
  width: 100%;
  padding: 12px 16px;
}
.quiz-gate-actions .alt {
  border-width: 1px;
}
@media (max-width: 700px) {
  .quiz-gate-card {
    grid-template-columns: 1fr;
    margin: 18px auto;
  }
  .quiz-gate-intro {
    min-height: 0;
    padding: 38px 28px;
  }
  .quiz-gate-intro p {
    max-width: 460px;
  }
  .quiz-gate-access {
    padding: 30px 28px;
  }
  .quiz-gate-icon {
    margin-bottom: 20px;
    font-size: 3rem;
  }
}
.falling-icons .svg-inline--fa {
  top: -15%;
  opacity: 0.18;
  font-size: clamp(1.8rem, 3.4vw, 3.35rem);
}
header > a,
header nav {
  position: relative;
  z-index: 1;
}
.falling-messages {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.falling-message {
  position: absolute;
  top: -10%;
  color: #9b895e;
  font-size: clamp(0.65rem, 1.15vw, 0.9rem);
  font-weight: 800;
  opacity: 0.24;
  white-space: nowrap;
  animation: fall-message linear infinite;
}
@keyframes fall-message {
  to {
    transform: translate3d(var(--drift), 124vh, 0) rotate(var(--tilt));
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .falling-message {
    animation: none;
    top: var(--message-top, 18%);
  }
}
@media (min-width: 981px) {
  header nav {
    position: absolute;
    right: 2vw;
    left: auto;
    transform: none;
  }
}
@media (max-width: 980px) {
  header nav {
    position: relative;
    left: auto;
    width: 100%;
    justify-content: center;
    transform: none;
  }
  .falling-message {
    font-size: 0.65rem;
    opacity: 0.18;
  }
}
body {
  background-image: linear-gradient(135deg, #f7f2e8, #f3ecdc);
}
.home-hero {
  width: 100vw;
  min-height: 560px;
  margin-left: calc(50% - 50vw);
  padding: 72px max(5vw, calc((100vw - 950px) / 2));
  background-color: var(--ink);
  background-image:
    linear-gradient(
      90deg,
      rgba(11, 28, 52, 0.96) 0%,
      rgba(11, 28, 52, 0.88) 43%,
      rgba(11, 28, 52, 0.43) 72%,
      rgba(11, 28, 52, 0.12) 100%
    ),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=85");
  background-position: center;
  background-size: cover;
  border: 0;
  border-radius: 0;
}
.home-hero-copy {
  max-width: 500px;
}
.home-hero-logo {
  display: block;
  width: min(385px, 76vw);
  height: auto;
  margin: 0 0 34px;
}
.home-eyebrow {
  color: #e8c978;
}
.home-hero h1 {
  margin: 10px 0 15px;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1;
}
.home-hero p {
  max-width: 465px;
  color: #f4eee0;
  font-size: 1.08rem;
}
.home-primary {
  background: #e8c978;
  color: var(--ink);
}
.home-primary:hover {
  background: #fff;
  color: var(--ink);
}
.home-hero small {
  color: #f4eee0;
}
.home-hero small .svg-inline--fa {
  color: #e8c978;
}
@media (max-width: 760px) {
  .home-hero {
    min-height: 500px;
    margin-left: calc(50% - 50vw);
    padding: 48px 7vw;
    background-position: 62% center;
  }
  .home-hero-logo {
    width: min(310px, 78vw);
    margin-bottom: 28px;
  }
  .home-hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.55rem);
  }
}
body.home-view {
  background-color: var(--ink);
  background-image:
    linear-gradient(
      90deg,
      rgba(11, 28, 52, 0.94) 0%,
      rgba(11, 28, 52, 0.82) 43%,
      rgba(11, 28, 52, 0.52) 72%,
      rgba(11, 28, 52, 0.3) 100%
    ),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=85");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
body.home-view .home-hero {
  background: transparent;
}
body.home-view .home-start {
  margin-top: 0;
  padding: 52px 0 38px;
}
body.home-view .home-section-heading h2 {
  color: #fff;
}
body.home-view .home-section-heading p {
  color: #d9d0ba;
}
body.home-view .home-topics a {
  background: rgba(255, 253, 248, 0.94);
}
body.home-view .home-post-note {
  margin-top: 0;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
body.home-view .home-post-note .svg-inline--fa {
  color: #fff;
}
body.home-view .home-start {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 26px;
  text-align: center;
}
body.home-view .home-section-heading {
  max-width: 570px;
}
body.home-view .home-section-heading p {
  margin-inline: auto;
}
body.home-view .home-topics {
  width: min(840px, 100%);
}
body.home-view .home-topics a {
  align-items: center;
  text-align: center;
  background: #f2c24f;
  border-color: #ffe89a;
  color: var(--ink);
  box-shadow: 0 12px 25px rgba(2, 12, 28, 0.26);
}
body.home-view .home-topics a:hover {
  background: #ffda68;
  border-color: #fff2be;
}
body.home-view .home-topics > a > .svg-inline--fa {
  color: #9a6b0e;
}
body.home-view .home-topics .topic-arrow {
  color: #8d6009;
}
body.home-view .feat {
  background: #f2c24f;
  border-color: #ffe89a;
  box-shadow: 0 16px 34px rgba(2, 12, 28, 0.3);
}
body.home-view .feat .tag {
  background: #fff0b4;
  color: #8d6009;
}
body.home-view .feat p,
body.home-view .feat small {
  color: #27334a;
}
body.home-view .home-hero {
  justify-content: center;
  text-align: center;
}
body.home-view .home-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.home-view .home-hero-copy p {
  margin-inline: auto;
}
body.home-view .home-hero-logo {
  width: min(475px, 84vw);
}
body.home-view .home-primary {
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
}
body.home-view .home-primary:hover {
  background: #fff3c9;
  color: var(--ink);
}
body.home-view .home-topics {
  width: min(660px, 100%);
  gap: 8px;
}
body.home-view .home-topics a {
  min-height: 124px;
  padding: 14px 12px;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 20px rgba(2, 12, 28, 0.24);
}
body.home-view .home-topics a:hover {
  background: #fff3c9;
  border-color: #fff3c9;
}
body.home-view .feat {
  border-top: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 16px 34px rgba(2, 12, 28, 0.3);
}
body.home-view .feat .tag {
  background: #fff0b4;
  color: #8d6009;
}
body.home-view .home-posts-hero {
  min-height: 330px;
  padding: 42px 5vw;
}
body.home-view .home-posts-hero .home-hero-logo {
  width: min(385px, 76vw);
  margin-bottom: 20px;
}
body.home-view .home-posts-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: 0;
}
body.home-posts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 42px 0 56px;
}
.home-post {
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(2, 12, 28, 0.25);
}
.home-post h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.home-post p {
  margin: 0 0 17px;
  color: #27334a;
  white-space: pre-line;
}
.home-post small {
  color: #6b6556;
}
.home-post small .svg-inline--fa {
  margin-right: 7px;
  color: #9a6b0e;
}
@media (max-width: 760px) {
  body.home-view .home-posts-hero {
    min-height: 270px;
    padding: 35px 7vw;
  }
  .home-posts {
    padding: 28px 0 42px;
  }
  .home-post {
    padding: 22px 20px;
  }
}
body.home-view .home-post {
  padding: 0;
  border: 2px solid #e8c978;
  background: #fff;
  box-shadow: 0 16px 34px rgba(2, 12, 28, 0.3);
  overflow: hidden;
}
.home-post-image {
  display: block;
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
}
.home-post-content {
  padding: 24px 28px;
}
.home-post-content h2 {
  margin: 12px 0 8px;
}
.home-post-content p {
  margin: 0 0 17px;
}
@media (max-width: 760px) {
  .home-post-content {
    padding: 20px;
  }
}
body.home-view .home-post {
  border: 1px solid #6687b2;
  border-radius: 6px;
}
.home-post-image {
  border-radius: 5px 5px 0 0;
}
body.home-view .home-post-content {
  padding: 27px 30px;
  background: var(--ink);
  text-align: center;
}
body.home-view .home-post-content h2 {
  color: #fff;
  margin: 0 0 10px;
}
body.home-view .home-post-content p {
  color: #e9e1ce;
  margin: 0 0 18px;
}
body.home-view .home-post-content small {
  color: #e8c978;
  font-weight: 800;
}
.home-post-content small .svg-inline--fa {
  color: #e8c978;
}
body.home-view .home-post {
  border-color: #fff;
}
body.home-view .home-post-content {
  padding-top: 18px;
}
body.home-view .home-post-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
footer {
  color: #fff;
}
.site-guide img {
  width: 112px;
}
.site-guide {
  gap: 8px;
}
.site-guide:hover {
  transform: none;
}
.site-guide:hover img {
  transform: none;
}
.site-guide span,
.site-guide:hover span,
.site-guide:focus-visible span {
  display: block;
  max-width: none;
  margin-bottom: 18px;
  padding: 8px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  transition: none;
}
.site-guide-bulb {
  position: absolute;
  top: 24px;
  right: -2px;
  margin: 0 !important;
  color: #e8c978;
  font-size: 1.05rem;
  filter: drop-shadow(0 2px 3px rgba(22, 38, 63, 0.35));
}
.site-guide span,
.site-guide:hover span,
.site-guide:focus-visible span {
  position: absolute;
  right: 80px;
  bottom: 150px;
  margin: 0;
  padding: 9px 11px;
  border-radius: 17px 17px 5px 17px;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(22, 38, 63, 0.24);
  animation: guide-bubble-float 3.4s ease-in-out infinite;
}
.site-guide span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 7px;
  width: 13px;
  height: 13px;
  background: var(--ink);
  transform: rotate(45deg);
  border-radius: 0 3px 0 0;
}
@keyframes guide-bubble-float {
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-guide span {
    animation: none;
  }
}
body.quiz-view,
body.profile-view {
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
body.quiz-view {
  background-image:
    linear-gradient(90deg, rgba(11, 28, 52, 0.94), rgba(11, 28, 52, 0.66)),
    url("https://images.unsplash.com/photo-1457369804613-52c61a468e7d?auto=format&fit=crop&w=1600&q=85");
}
body.profile-view {
  background-image:
    linear-gradient(90deg, rgba(11, 28, 52, 0.94), rgba(11, 28, 52, 0.64)),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=85");
}
.route-background-transition {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  animation: route-background-fade 0.6s ease forwards;
}
@keyframes route-background-fade {
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .route-background-transition {
    animation: none;
    opacity: 0;
  }
}
body.profile-view .profile-hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
}
.profile-hero-logo {
  display: block;
  width: min(265px, 46vw);
  height: auto;
}
.profile-view .profile-hero p {
  color: #fff;
}
.profile-view .profile-iam {
  color: #fff;
}
.profile-view .step b {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.profile-view .step small,
.profile-view .step.on small {
  color: #fff;
}
.profile-view .step.on b,
.profile-view .step.done b {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18);
}
.profile-view .step-line,
.profile-view .step-line.done {
  background: rgba(255, 255, 255, 0.8);
}
.profile-view .role {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(2, 12, 28, 0.26);
}
.profile-view .role.on,
.profile-view .role:hover {
  background: #fff;
  border-color: #fff;
}
.profile-view .role .ico {
  margin: 0 auto 12px;
  background: #eef4fa;
  color: #2e6fa5;
}
.profile-view .role span {
  color: #53627a;
}
.profile-view .profile-divider {
  color: #fff;
}
.profile-view .profile-divider::before,
.profile-view .profile-divider::after {
  background: rgba(255, 255, 255, 0.65);
}
@media (max-width: 600px) {
  body.profile-view .profile-hero h1 {
    flex-direction: column;
    gap: 8px;
  }
  .profile-hero-logo {
    width: min(245px, 72vw);
  }
}
.profile-view .profile-login .chip {
  background: #fff;
  color: #2e6fa5;
  border-color: #fff;
}
.profile-view .profile-login .chip .svg-inline--fa {
  color: #2e6fa5;
}
.profile-view .profile-login .chip-role {
  background: #eef4fa;
  color: #2e6fa5;
}
.profile-view .profile-login .chip:hover {
  background: #fff;
  color: #1f557f;
}
.profile-hero-logo {
  transform: translate(-5px, -8px);
}
body.profile-view header {
  border-bottom-color: #fff;
}
body.profile-view .role::before {
  background: #2e6fa5;
}
body.profile-view .ask {
  min-height: calc(100vh - 180px);
  gap: 18px;
}
body.profile-view .ask h1,
body.profile-view .ask .profile-choice-label,
body.profile-view .ask .gender > b {
  color: #fff;
}
body.profile-view .ask .profile-choice-icon {
  color: #a9d7ff;
}
body.profile-view .ask input {
  border-color: #a9d7ff;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
body.profile-view .ask input::placeholder {
  color: #718096;
}
body.profile-view .ask .gender {
  display: grid;
  justify-items: center;
  gap: 8px;
}
body.profile-view .ask .gender .chips {
  justify-content: center;
  margin: 0;
}
body.profile-view .ask .gender .chip {
  border-color: rgba(169, 215, 255, 0.7);
  background: #fff;
  color: var(--ink);
}
body.profile-view .ask .gender .chip.on {
  border-color: #a9d7ff;
  background: #a9d7ff;
  color: var(--ink);
}
body.profile-view .ask > div:last-child {
  display: flex;
  gap: 10px;
  justify-content: center;
}
body.profile-view .ask > div:last-child button {
  min-width: 120px;
}
body.profile-view .ask > div:last-child button:not(.alt) {
  background: #a9d7ff;
  color: var(--ink);
}
body.profile-view .ask > div:last-child button:not(.alt):hover {
  background: #fff;
}
body.profile-view .ask > div:last-child .alt {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: transparent;
}
body.profile-view .ask > div:last-child .alt:hover {
  border-color: #a9d7ff;
  background: rgba(169, 215, 255, 0.15);
  color: #fff;
}
body.profile-view .tag {
  background: #e5f0f8;
  color: #2e6fa5;
}
body.profile-view .avatar-wave {
  background: #2e6fa5;
  color: #fff;
}
body.profile-view .avatar-greeting {
  border-color: #bfd9ed;
  background: #f3f8fc;
  color: var(--ink);
}
body.profile-view .avatar-greeting::before {
  border-top-color: #bfd9ed;
  border-left-color: #bfd9ed;
  background: #f3f8fc;
}
body.profile-view .avatar-greeting .svg-inline--fa,
body.profile-view .avatar-thought {
  color: #2e6fa5;
}
body.profile-view .sw.on {
  box-shadow: 0 0 0 3px #2e6fa5;
}
body.profile-view .profile-progress .progress-title,
body.profile-view .profile-statistics-panel .progress-title {
  color: #fff;
}
body.profile-view .profile-progress .progress-title .svg-inline--fa,
body.profile-view .profile-statistics-panel .progress-title .svg-inline--fa,
body.profile-view .statistics-heading span,
body.profile-view .statistics-bottom span,
body.profile-view .statistics-metrics i {
  color: #a9d7ff;
}
body.profile-view .profile-statistics-panel .progress-stats div:first-child,
body.profile-view .statistics-metrics article:first-child {
  background: rgba(169, 215, 255, 0.18);
}
body.profile-view .leaderboard-row.you {
  background: rgba(169, 215, 255, 0.2);
}
body.profile-view .leaderboard-row b {
  color: #a9d7ff;
}
body.profile-view .history-kicker,
body.profile-view .history-heading .svg-inline--fa,
body.profile-view .history-legacy .svg-inline--fa {
  color: #2e6fa5;
}
body.profile-view .creator-toggle:hover,
body.profile-view .create-quiz:hover {
  background: #2e6fa5;
}
body.profile-view .customize-toggle.open {
  border-color: #a9d7ff;
  color: #2e6fa5;
}
body.profile-view .falling-icons .svg-inline--fa {
  color: #90a0b1 !important;
  opacity: 0.09;
}
body.profile-view .falling-messages {
  color: #9faebd;
}
body.profile-view .two .card,
body.profile-view .creator .card,
body.profile-view #app > .card {
  border-color: #647588;
  background: #344150;
  color: #fff;
  box-shadow: 0 14px 30px rgba(4, 13, 25, 0.24);
}
body.profile-view .two .card h1,
body.profile-view .two .card h2,
body.profile-view .two .card h3,
body.profile-view .two .card b,
body.profile-view #app > .card h1,
body.profile-view #app > .card h2,
body.profile-view #app > .card h3,
body.profile-view #app > .card b {
  color: #fff;
}
body.profile-view .two .card p,
body.profile-view .two .card small,
body.profile-view .two .card span,
body.profile-view #app > .card p,
body.profile-view #app > .card small,
body.profile-view #app > .card span {
  color: #d8e0e7;
}
body.profile-view #app > .card > .svg-inline--fa {
  color: #c5d0da;
}
body.profile-view .tag {
  background: #596a7c;
  color: #fff;
}
body.profile-view .avatar-wave {
  background: #596a7c;
  color: #fff;
}
body.profile-view .avatar-greeting {
  border-color: #647588;
  background: #3e4c5c;
  color: #fff;
}
.profile-view .avatar-greeting::before {
  border-top-color: #647588;
  border-left-color: #647588;
  background: #3e4c5c;
}
.profile-view .avatar-greeting .svg-inline--fa,
.profile-view .avatar-thought {
  color: #d8e0e7;
}
body.profile-view .profile-statistics-panel {
  background: #223247;
  box-shadow: 0 16px 34px rgba(4, 13, 25, 0.3);
}
body.profile-view .statistics-heading span,
body.profile-view .statistics-bottom span,
body.profile-view .statistics-metrics i,
body.profile-view .profile-progress .progress-title .svg-inline--fa,
body.profile-view .profile-statistics-panel .progress-title .svg-inline--fa {
  color: #c5d0da;
}
body.profile-view .statistics-metrics article,
body.profile-view .profile-statistics-panel .progress-stats div {
  border-color: #607184;
  background: #425160;
}
body.profile-view .statistics-metrics article:first-child,
body.profile-view .profile-statistics-panel .progress-stats div:first-child {
  background: #536477;
}
body.profile-view .leaderboard-row.you {
  background: #536477;
}
body.profile-view .leaderboard-row b {
  color: #d8e0e7;
}
body.profile-view .history-kicker,
body.profile-view .history-heading .svg-inline--fa,
body.profile-view .history-legacy .svg-inline--fa {
  color: #c5d0da;
}
body.profile-view .profile-actions button,
body.profile-view .creator-toggle,
body.profile-view .create-quiz,
body.profile-view .statistics-rankings,
body.profile-view .leaderboard-tabs button,
body.profile-view .manage-actions button {
  border-color: #697b8e;
  background: #536477;
  color: #fff;
}
body.profile-view .profile-actions button:hover,
body.profile-view .creator-toggle:hover,
body.profile-view .create-quiz:hover,
body.profile-view .statistics-rankings:hover,
body.profile-view .leaderboard-tabs button:hover,
body.profile-view .manage-actions button:hover {
  border-color: #8394a5;
  background: #65778a;
  color: #fff;
  transform: translateY(-1px);
}
body.profile-view .leaderboard-tabs button.on {
  background: #65778a;
  color: #fff;
}
body.profile-view .customize-toggle.open {
  border-color: #8394a5;
  color: #fff;
}
body.about-view {
  background-color: #16263f;
  background-image:
    linear-gradient(90deg, rgba(8, 24, 45, 0.96), rgba(8, 24, 45, 0.78)),
    url("https://images.unsplash.com/photo-1457369804613-52c61a468e7d?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
body.about-view .about-hero {
  max-width: 920px;
  padding: 72px 0 54px;
  border-bottom-color: rgba(255, 255, 255, 0.32);
}
body.about-view .about-hero > span,
body.about-view .about-school > div > span,
body.about-view .about-number {
  color: #a9d7ff;
}
body.about-view .about-hero h1,
body.about-view .about-intro h2,
body.about-view .about-values h3,
body.about-view .about-school h2 {
  color: #fff;
}
body.about-view .about-hero p,
body.about-view .about-intro p,
body.about-view .about-values p {
  color: #dce7f4;
}
body.about-view .about-hero a {
  padding: 11px 16px;
  border: 0;
  border-radius: 7px;
  background: #a9d7ff;
  color: #16263f;
}
body.about-view .about-hero a:hover {
  background: #fff;
  transform: translateY(-2px);
}
body.about-view .about-intro {
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 7vw, 80px);
  padding: 56px 0;
}
body.about-view .about-quote {
  align-self: center;
  border-left-color: #a9d7ff;
  color: #fff;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}
body.about-view .about-values {
  gap: 12px;
  border: 0;
}
body.about-view .about-values article {
  min-height: 230px;
  padding: 28px 24px;
  border: 1px solid rgba(169, 215, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 24, 45, 0.48);
}
body.about-view .about-values article > .svg-inline--fa {
  color: #a9d7ff;
}
body.about-view .about-values article > span {
  margin-top: 22px;
  color: #a9d7ff;
}
body.about-view .about-school {
  align-items: center;
  margin-top: 52px;
  padding: 34px 0;
  border-bottom-color: #a9d7ff;
}
body.about-view .about-school > .svg-inline--fa {
  color: #a9d7ff;
}
@media (max-width: 700px) {
  body.about-view .about-hero {
    padding: 46px 0 38px;
  }
  body.about-view .about-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 0;
  }
  body.about-view .about-values {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.about-view .about-values article {
    min-height: 0;
  }
  body.about-view .about-school {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 36px;
  }
}
body.quiz-view .quiz-gate-card {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 92px);
  max-width: 980px;
  margin: 42px auto;
  padding: 34px 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
body.quiz-view .quiz-gate-intro {
  min-height: 0;
  padding: 34px 0;
  background: transparent;
  overflow: visible;
}
body.quiz-view .quiz-gate-intro::after {
  right: 8%;
  bottom: -34px;
  border-color: rgba(169, 215, 255, 0.42);
  box-shadow:
    0 0 0 24px rgba(169, 215, 255, 0.09),
    0 0 0 52px rgba(169, 215, 255, 0.05);
}
body.quiz-view .quiz-gate-icon,
body.quiz-view .quiz-gate-eyebrow,
body.quiz-view .quiz-gate-rule,
body.quiz-view .quiz-gate-intro small .svg-inline--fa {
  color: #a9d7ff;
  background-color: #a9d7ff;
}
body.quiz-view .quiz-gate-icon,
body.quiz-view .quiz-gate-eyebrow,
body.quiz-view .quiz-gate-intro small .svg-inline--fa {
  background-color: transparent;
}
body.quiz-view .quiz-gate-access {
  padding: 34px 0;
  background: transparent;
}
body.quiz-view .quiz-gate-access > .tag {
  background: rgba(169, 215, 255, 0.16);
  color: #a9d7ff;
}
body.quiz-view .quiz-gate-access h3 {
  color: #fff;
}
body.quiz-view .quiz-gate-features {
  border-top-color: rgba(255, 255, 255, 0.35);
}
body.quiz-view .quiz-gate-features div {
  border-bottom-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
body.quiz-view .quiz-gate-features .svg-inline--fa {
  color: #a9d7ff;
}
body.quiz-view .quiz-gate-access .profile-divider {
  color: #a9d7ff;
}
body.quiz-view .quiz-gate-access .profile-divider::before,
body.quiz-view .quiz-gate-access .profile-divider::after {
  background: rgba(169, 215, 255, 0.45);
}
body.quiz-view .quiz-gate-users .chip {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(22, 38, 63, 0.22);
  color: #fff;
}
body.quiz-view .quiz-gate-users .chip-role {
  background: rgba(169, 215, 255, 0.18);
  color: #a9d7ff;
}
body.quiz-view .quiz-gate-actions button {
  background: #fff;
  color: var(--ink);
}
body.quiz-view .quiz-gate-actions button:hover {
  background: #a9d7ff;
  transform: translateY(-2px);
}
body.quiz-view .quiz-gate-actions .alt {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
}
body.quiz-view .quiz-gate-actions .alt:hover {
  border-color: #a9d7ff;
  background: rgba(169, 215, 255, 0.12);
  color: #fff;
}
@media (max-width: 700px) {
  body.quiz-view .quiz-gate-card {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px auto;
    padding: 22px 0;
  }
  body.quiz-view .quiz-gate-intro,
  body.quiz-view .quiz-gate-access {
    padding: 20px 0;
  }
}
header {
  border-bottom-color: #fff;
}
nav a.on {
  color: #a9d7ff;
}
nav a.on .svg-inline--fa {
  color: #a9d7ff;
}
nav a.on::after {
  background: #a9d7ff;
}
nav a:hover {
  color: #a9d7ff;
  background: transparent;
}
header nav a.on {
  color: #a9d7ff !important;
}
nav a:hover::after {
  background: #a9d7ff;
}
nav a::after {
  background: #a9d7ff;
}
@media (max-width: 980px) {
  header > a {
    margin-left: 20px;
  }
}
@media (max-width: 980px) {
  .notification-bell {
    top: 44px;
    right: 5vw;
  }
}
body.profile-view .quiz-history {
  padding: 24px !important;
}
body.profile-view .history-heading {
  padding-bottom: 16px;
  border-color: #60778d !important;
}
body.profile-view .history-kicker {
  color: #a9d7ff !important;
}
body.profile-view .history-count {
  background: #1e3045 !important;
  color: #dceeff !important;
}
body.profile-view .history-empty {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 22px 0 0;
}

body.profile-view .history-empty h4 {
  font-family: Manrope, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.3;
}
body.profile-view .history-empty p {
  color: #c7d3de !important;
  line-height: 1.55;
}
body.profile-view .history-empty button {
  border: 1px solid #68839d !important;
  border-radius: 8px !important;
  background: #1e3045 !important;
  color: #f4f7fa !important;
  box-shadow: none !important;
}
body.profile-view .history-empty button:hover {
  background: #415d78 !important;
  border-color: #86a8c7 !important;
  transform: translateY(-1px);
}
body.profile-view .quiz-history {
  overflow: hidden;
  padding: 0 !important;
  border-color: #5b738a !important;
  background: #2b4056 !important;
}
body.profile-view .history-heading {
  align-items: flex-start;
  padding: 22px 24px !important;
  border-color: #50687f !important;
  background: #31485f !important;
}
body.profile-view .history-kicker {
  margin-bottom: 5px !important;
  color: #a9d7ff !important;
  font-size: 0.64rem !important;
  letter-spacing: 0.11em;
}
body.profile-view .history-heading h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  font-family: Manrope, sans-serif !important;
  font-size: 1.08rem !important;
}
body.profile-view .history-heading h3 .svg-inline--fa {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 !important;
  border-radius: 8px;
  background: #42627f !important;
  color: #e7f2fc !important;
  font-size: 0.82rem;
}
body.profile-view .history-subtitle {
  margin: 6px 0 0 !important;
  color: #c4d2df !important;
  font-size: 0.79rem !important;
}
body.profile-view .history-count {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px !important;
  width: auto !important;
  height: 52px !important;
  padding: 0 9px;
  border: 1px solid #66839d !important;
  border-radius: 8px !important;
  background: #20354b !important;
  color: #eff7ff !important;
  font-family: Manrope, sans-serif !important;
  line-height: 1;
}
body.profile-view .history-count b {
  font:
    800 1.05rem Manrope,
    sans-serif !important;
  color: #eff7ff !important;
}
body.profile-view .history-count small {
  margin-top: 4px !important;
  color: #afc4d7 !important;
  font:
    700 0.57rem Manrope,
    sans-serif !important;
  letter-spacing: 0.03em;
}
body.profile-view .history-empty {
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  gap: 15px !important;
  padding: 21px 24px 23px !important;
  background: #2b4056 !important;
}
body.profile-view .history-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #6689a7;
  border-radius: 10px;
  background: #385775;
  color: #dceeff;
  font-size: 1.12rem;
}
body.profile-view .history-empty-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #a9d7ff !important;
  font-size: 0.61rem !important;
  font-weight: 800;
  letter-spacing: 0.1em;
}
body.profile-view .history-empty h4 {
  margin: 0 0 3px !important;
  font-family: Manrope, sans-serif !important;
  font-size: 0.98rem !important;
}
body.profile-view .history-empty p {
  max-width: 290px !important;
  font-size: 0.8rem !important;
}
body.profile-view .history-empty button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-color: #7091ad !important;
  border-radius: 7px !important;
  background: #385775 !important;
  color: #f4f8fc !important;
  font-size: 0.76rem !important;
}
body.profile-view .history-empty button:hover {
  background: #4c6c88 !important;
  border-color: #a9d7ff !important;
}
@media (max-width: 560px) {
  body.profile-view .history-heading {
    padding: 18px !important;
  }
  body.profile-view .history-empty {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 18px !important;
  }
  body.profile-view .history-empty button {
    grid-column: 1;
    justify-self: start;
    margin-top: 3px;
  }
}
body.home-view .home-post {
  border-color: #162f4b;
}
body.home-view .home-post-content small,
body.home-view .home-post-content small .svg-inline--fa {
  color: #ffffff;
}
body.home-view .home-post {
  border: 2px solid #0b1f38 !important;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(2, 12, 28, 0.38) !important;
  overflow: hidden;
}
body.home-view .home-post-image {
  border-radius: 0;
}
body.home-view .post-media-carousel {
  position: relative;
  background: #0b1f38;
}
body.home-view .post-media-slide {
  display: none;
}
body.home-view .post-media-slide.active {
  display: block;
}
body.home-view .post-media-carousel .home-post-image {
  width: 100%;
  margin: 0;
  object-fit: cover;
}
body.home-view .post-media-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(11, 31, 56, 0.78);
  color: #fff;
  transform: translateY(-50%);
}
body.home-view .post-media-arrow:hover {
  background: #4b6782;
  transform: translateY(-50%) scale(1.06);
}
body.home-view .post-media-arrow.previous {
  left: 14px;
}
body.home-view .post-media-arrow.next {
  right: 14px;
}
body.home-view .post-media-arrow .svg-inline--fa {
  margin: 0;
}
body.home-view .post-media-count {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(11, 31, 56, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
body.home-view .home-posts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
body.home-view .home-post-content h2,
body.home-view .home-post-content p {
  font-family: Manrope, sans-serif;
}
body.home-view .home-post-content p {
  color: #dce7f4;
}
body.quiz-view #app > h1 {
  color: #f4f7fa;
}
body.quiz-view #app > p {
  color: #c7d3de !important;
}
body.quiz-view .chips {
  gap: 9px;
  margin: 18px 0 24px;
}
body.quiz-view .chip {
  border: 1px solid #60778d !important;
  border-radius: 7px !important;
  background: #2c3e52 !important;
  color: #eaf1f7 !important;
  box-shadow: none !important;
}
body.quiz-view .chip.on {
  border-color: #a9d7ff !important;
  background: #4b6782 !important;
  color: #fff !important;
}
body.quiz-view .grid {
  gap: 14px;
  margin-top: 8px;
}
body.quiz-view .grid > .card {
  min-height: 235px;
  border: 1px solid #50657b !important;
  border-radius: 8px !important;
  background: #2c3e52 !important;
  color: #f4f7fa !important;
  box-shadow: 0 12px 26px rgba(5, 14, 25, 0.26) !important;
}
body.quiz-view .grid > .card:hover {
  border-color: #8cbfe8 !important;
  background: #354b61 !important;
  transform: translateY(-3px);
}
body.quiz-view .grid > .card h3 {
  color: #f4f7fa !important;
  font-family: Manrope, sans-serif !important;
  font-size: 1.04rem !important;
  line-height: 1.35;
}
body.quiz-view .grid > .card p {
  color: #c7d3de !important;
}
body.quiz-view .grid > .card {
  position: relative;
  overflow: hidden;
}
body.quiz-view .grid > .card .ico {
  position: absolute;
  right: 18px;
  bottom: 15px;
  z-index: 0;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0 !important;
  background: transparent !important;
  color: #a9d7ff !important;
  font-size: 4.7rem;
  line-height: 1;
  opacity: 0.16;
  transform: rotate(-28deg);
  pointer-events: none;
}
body.quiz-view .grid > .card > h3,
body.quiz-view .grid > .card > p,
body.quiz-view .grid > .card > button {
  position: relative;
  z-index: 1;
}
body.quiz-view .go > *,
body.quiz-view .go .grid > * {
  animation: none !important;
}
body.quiz-view .go .grid > .card {
  animation: quiz-filter-settle 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
}
body.quiz-view .go .grid > .card:nth-child(2) {
  animation-delay: 0.045s !important;
}
body.quiz-view .go .grid > .card:nth-child(3) {
  animation-delay: 0.09s !important;
}
body.quiz-view .go .grid > .card:nth-child(4) {
  animation-delay: 0.135s !important;
}
body.quiz-view .go .grid > .card:nth-child(5) {
  animation-delay: 0.18s !important;
}
body.quiz-view .go .grid > .card:nth-child(6) {
  animation-delay: 0.225s !important;
}
body.quiz-view .chip {
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
body.quiz-view .chip.on {
  transform: translateY(-1px);
}
@keyframes quiz-filter-settle {
  0% {
    transform: translateY(16px) scale(0.975);
    filter: brightness(0.9);
  }
  62% {
    transform: translateY(-3px) scale(1.01);
    filter: brightness(1.08);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}
body.quiz-view #app > .card:not(.quiz-gate-card) {
  border: 1px solid #50657b !important;
  border-radius: 10px !important;
  background: #2c3e52 !important;
  color: #f4f7fa !important;
  box-shadow: 0 16px 34px rgba(5, 14, 25, 0.3) !important;
}
body.quiz-view #app > .card:not(.quiz-gate-card) > h2,
body.quiz-view #app > .card:not(.quiz-gate-card) > div b {
  color: #f4f7fa !important;
}
body.quiz-view .bar {
  background: #50657b !important;
}
body.quiz-view .bar b {
  background: #a9d7ff !important;
}
body.quiz-view .opt {
  border: 1px solid #60778d !important;
  border-radius: 8px !important;
  background: #24384d !important;
  color: #f4f7fa !important;
}
body.quiz-view .opt:hover {
  border-color: #a9d7ff !important;
  background: #314b63 !important;
  transform: translateX(3px);
}
body.quiz-view .opt .tag {
  border: 0 !important;
  border-radius: 5px !important;
  background: #415d78 !important;
  color: #eaf5ff !important;
}
body.quiz-view .opt.ok {
  border-color: #54a982 !important;
  background: #244c45 !important;
}
body.quiz-view .opt.no {
  border-color: #cd6b6b !important;
  background: #563b45 !important;
}
body.quiz-view .fb.ok {
  background: #244c45 !important;
  color: #b4e6c7 !important;
}
body.quiz-view .fb.no {
  background: #563b45 !important;
  color: #ffc3c3 !important;
}
body.quiz-view #app > .card:not(.quiz-gate-card) > button {
  border: 1px solid #66839d !important;
  border-radius: 7px !important;
  background: #1e3045 !important;
  color: #f4f7fa !important;
}
body.quiz-view #app > .card:not(.quiz-gate-card) > button:hover {
  border-color: #a9d7ff !important;
  background: #4b6782 !important;
}
body.quiz-view .quiz-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
body.quiz-view .quiz-position {
  color: #f4f7fa !important;
}
body.quiz-view .quiz-counters {
  display: flex;
  gap: 7px;
  align-items: center;
}
body.quiz-view .quiz-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid;
  border-radius: 6px;
  font-size: 0.78rem;
}
body.quiz-view .quiz-counter .svg-inline--fa {
  margin: 0;
}
.quiz-counter strong {
  font-size: 0.92rem;
}
body.quiz-view .quiz-counter.correct {
  border-color: #4f9b7c;
  background: #244c45 !important;
  color: #b4e6c7 !important;
}
body.quiz-view .quiz-counter.incorrect {
  border-color: #a95e68;
  background: #563b45 !important;
  color: #ffc3c3 !important;
}
body.quiz-view .bar {
  position: relative;
  overflow: hidden;
}
body.quiz-view .bar b {
  animation: quiz-progress-pulse 0.48s ease-out both;
}
@keyframes quiz-progress-pulse {
  0% {
    filter: brightness(0.8);
    box-shadow: 0 0 0 rgba(169, 215, 255, 0);
  }
  45% {
    filter: brightness(1.25);
    box-shadow: 0 0 14px rgba(169, 215, 255, 0.82);
  }
  100% {
    filter: brightness(1);
    box-shadow: 0 0 0 rgba(169, 215, 255, 0);
  }
}
@media (max-width: 560px) {
  body.quiz-view .quiz-status {
    align-items: flex-start;
    flex-direction: column;
  }
  body.quiz-view .quiz-counters {
    width: 100%;
  }
  body.quiz-view .quiz-counter {
    flex: 1;
    justify-content: center;
  }
}
body.quiz-view .result-card {
  background: #2c3e52 !important;
  color: #f4f7fa !important;
}
body.quiz-view .result-top {
  color: #a9d7ff !important;
}
body.quiz-view .grade-value {
  color: #a9d7ff !important;
}
body.quiz-view .result-score {
  color: #f4f7fa !important;
}
body.quiz-view .result-card > p {
  color: #c7d3de !important;
}
body.quiz-view .result-review .rq {
  border: 1px solid #50657b !important;
  border-left-width: 4px !important;
  border-radius: 8px !important;
  background: #2c3e52 !important;
  color: #f4f7fa !important;
  box-shadow: 0 10px 24px rgba(5, 14, 25, 0.22);
}
body.quiz-view .result-review .rq.ok {
  border-left-color: #54a982 !important;
}
body.quiz-view .result-review .rq.no {
  border-left-color: #cd6b6b !important;
}
body.quiz-view .result-review .rq p {
  color: #c7d3de !important;
}
body.quiz-view .result-review .rq .svg-inline--fa {
  color: #a9d7ff;
}
body.quiz-view .result-review .rq.ok p .fa-circle-check,
body.quiz-view .result-review .rq.no p:nth-of-type(2) .fa-check {
  color: #7ed5a5 !important;
}
body.quiz-view .result-review .rq.no p .fa-circle-xmark {
  color: #f09191 !important;
}
body.quiz-view .result-review .learn,
body.quiz-view .result-review .other-answers span {
  background: #1e3045 !important;
  color: #dce7f4 !important;
}
body.quiz-view .result-review .learn-toggle,
body.quiz-view .result-review .other-answers-toggle {
  border-color: #66839d !important;
  background: #314b63 !important;
  color: #f4f7fa !important;
}
body.quiz-view .result-actions button,
body.quiz-view .result-actions .alt,
body.quiz-view .result-review .answer-actions button {
  border: 1px solid #66839d !important;
  border-radius: 7px !important;
  background: #1e3045 !important;
  color: #f4f7fa !important;
  box-shadow: none !important;
}
body.quiz-view .result-actions button:hover,
body.quiz-view .result-actions .alt:hover,
body.quiz-view .result-review .answer-actions button:hover {
  border-color: #a9d7ff !important;
  background: #4b6782 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
body.quiz-view .result-actions button:first-child {
  background: #4b6782 !important;
  border-color: #7899b7 !important;
}
body.quiz-view .result-actions button:first-child:hover {
  background: #5b7895 !important;
}
body.quiz-view .result-review .answer-actions button .svg-inline--fa {
  color: #a9d7ff !important;
}
body.quiz-view .result-card {
  width: min(650px, 100%);
  margin: 0 auto;
  padding: 34px 28px !important;
  border-color: #50657b !important;
  box-shadow: 0 16px 34px rgba(5, 14, 25, 0.3) !important;
}
body.quiz-view .result-actions {
  margin-top: 20px;
}
body.quiz-view .result-actions button {
  min-width: 148px;
}
body.profile-view .history-list {
  padding-top: 0;
}
body.profile-view .history-row {
  gap: 18px;
  padding: 14px 0;
  border-color: #50657b !important;
}
body.profile-view .history-row b {
  color: #f4f7fa !important;
  font-size: 0.95rem;
}
body.profile-view .history-row small {
  margin-top: 4px;
  color: #bfd0df !important;
}
body.profile-view .history-score {
  gap: 9px;
}
body.profile-view .history-grade {
  padding: 5px 8px !important;
  border: 1px solid #6d8da9 !important;
  border-radius: 6px !important;
  background: #415d78 !important;
  color: #eaf5ff !important;
  font-size: 0.68rem !important;
}
body.profile-view .history-score strong {
  color: #7ed5a5 !important;
  font-family: Manrope, sans-serif !important;
  font-size: 0.84rem;
}
body.profile-view .history-score strong span {
  color: #c7d3de !important;
}
body.profile-view .history-review-toggle {
  border: 1px solid #66839d !important;
  border-radius: 7px !important;
  background: #1e3045 !important;
  color: #f4f7fa !important;
}
body.profile-view .history-review-toggle:hover {
  border-color: #a9d7ff !important;
  background: #4b6782 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
body.profile-view .history-review-toggle .svg-inline--fa {
  color: #a9d7ff !important;
}
@media (max-width: 620px) {
  body.profile-view .history-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  body.profile-view .history-score {
    width: 100%;
    flex-wrap: wrap;
  }
}
body.profile-view .history-heading h3 > .svg-inline--fa {
  display: none;
}
body.profile-view .history-heading h3::before {
  content: "\f201";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #42627f;
  color: #e7f2fc;
  font-family: "Font Awesome 6 Free";
  font-size: 0.82rem;
  font-weight: 900;
}
body.profile-view .history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 15px 0;
}
body.profile-view .history-row > div:first-child {
  padding-top: 2px;
}
body.profile-view .history-score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: end;
  gap: 7px 8px;
}
body.profile-view .history-review-toggle {
  grid-column: 1/-1;
  justify-self: end;
  padding: 7px 10px !important;
  font-size: 0.7rem !important;
}
@media (max-width: 620px) {
  body.profile-view .history-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.profile-view .history-score {
    width: auto;
    justify-items: start;
    justify-content: start;
  }
  body.profile-view .history-review-toggle {
    justify-self: start;
  }
}
body.profile-view .history-heading h3 > .svg-inline--fa {
  display: grid !important;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 !important;
  border-radius: 8px;
  background: #42627f !important;
  color: #e7f2fc !important;
  font-size: 0.82rem !important;
}
body.profile-view .history-heading h3::before {
  display: none !important;
}
body.profile-view .history-list {
  display: grid;
  gap: 9px;
  padding: 12px !important;
}
body.profile-view .history-entry {
  margin: 0 !important;
  padding: 14px 15px !important;
  border: 1px solid #506b84 !important;
  border-radius: 8px !important;
  background: #263c52 !important;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
body.profile-view .history-entry:hover {
  border-color: #86b9e3 !important;
  background: #304960 !important;
  transform: translateY(-1px);
}
body.profile-view .history-entry > div:first-child {
  display: grid;
  gap: 3px;
}
body.profile-view .history-entry b {
  line-height: 1.35;
}
body.profile-view .history-entry small {
  font-size: 0.72rem !important;
}
body.profile-view .history-entry .history-score {
  padding-left: 12px;
  border-left: 1px solid #506b84;
}
body.profile-view .history-entry .history-grade {
  align-self: center;
}
body.profile-view .history-entry .history-review-toggle {
  min-width: 132px;
}
@media (max-width: 620px) {
  body.profile-view .history-entry .history-score {
    padding: 10px 0 0;
    border-top: 1px solid #506b84;
    border-left: 0;
  }
}
body.profile-view .history-count {
  min-width: 36px !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 0.88rem !important;
}
body.profile-view .history-count small {
  display: none !important;
}
body.profile-view .history-heading {
  position: relative !important;
  justify-content: center !important;
  gap: 0 !important;
  min-height: 68px;
  padding: 0 !important;
  text-align: center;
  overflow: hidden;
}
body.profile-view .history-kicker,
body.profile-view .history-heading h3 > .svg-inline--fa,
body.profile-view .history-heading h3::before {
  display: none !important;
}
body.profile-view .history-heading > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 68px;
  position: static;
  z-index: 1;
}
body.profile-view .history-heading h3 {
  position: absolute !important;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  color: #f4f7fa !important;
  font-size: 1.22rem !important;
  font-weight: 900 !important;
  letter-spacing: 0;
}
body.profile-view #app > .card h3 {
  font-family: Manrope, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  letter-spacing: 0;
}
body.profile-view #app > .card p {
  font-family: Manrope, sans-serif !important;
}
body.profile-view .history-review {
  gap: 9px !important;
  margin: 10px 0 14px !important;
}
body.profile-view .history-question {
  border: 1px solid #50657b !important;
  border-left-width: 4px !important;
  border-radius: 8px !important;
  background: #2c3e52 !important;
  color: #f4f7fa !important;
  box-shadow: none !important;
}
body.profile-view .history-question.ok {
  border-left-color: #54a982 !important;
}
body.profile-view .history-question.no {
  border-left-color: #cd6b6b !important;
}
body.profile-view .history-question b {
  color: #f4f7fa !important;
  font-family: Manrope, sans-serif !important;
  font-weight: 900 !important;
}
body.profile-view .history-question p {
  color: #c7d3de !important;
}
body.profile-view .history-question .fa-circle-check,
body.profile-view .history-question .fa-check {
  color: #7ed5a5 !important;
}
body.profile-view .history-question .fa-circle-xmark {
  color: #f09191 !important;
}
body.profile-view .history-question button.alt {
  border: 1px solid #66839d !important;
  border-radius: 7px !important;
  background: #1e3045 !important;
  color: #f4f7fa !important;
}
body.profile-view .history-question button.alt:hover {
  border-color: #a9d7ff !important;
  background: #4b6782 !important;
  color: #fff !important;
}
body.profile-view .history-question .learn {
  border-radius: 7px !important;
  background: #1e3045 !important;
  color: #dce7f4 !important;
}
body.profile-view #app > .card[style*="margin-top:22px"] {
  min-height: 0 !important;
  padding: 17px 24px !important;
}
body.profile-view #app > .card[style*="margin-top:22px"] h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px !important;
}
body.profile-view #app > .card[style*="margin-top:22px"] h3 .svg-inline--fa {
  margin: 0 !important;
  color: #a9d7ff !important;
  font-size: 1rem;
}
body.profile-view #app > .card[style*="margin-top:22px"] > p {
  margin: 0 !important;
  font-size: 0.88rem !important;
}
body.profile-view .avatar-button .dicebear-avatar {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 8px 8px rgba(5, 14, 25, 0.22));
}
body.profile-view .dicebear-picker > p {
  margin: 0 0 10px !important;
  color: #a9d7ff !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em;
}
body.profile-view .dicebear-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
body.profile-view .dicebear-option {
  display: grid !important;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #506b84 !important;
  border-radius: 50% !important;
  background: #1e3045 !important;
  padding: 3px !important;
  overflow: hidden;
}
body.profile-view .dicebear-option img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
body.profile-view .avatar-greeting .fa-hand {
  animation: greeting-hand-wave 1.2s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes greeting-hand-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-14deg);
  }
  50% {
    transform: rotate(14deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.profile-view .avatar-greeting .fa-hand {
    animation: none;
  }
}
body.profile-view .history-empty {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center;
  gap: 12px;
}
body.profile-view .history-empty button {
  grid-column: 2;
  justify-self: end;
  margin-top: 0;
}
body.profile-view .history-empty {
  padding: 14px 18px !important;
}
body.profile-view .history-empty h4 {
  font-size: 0.9rem !important;
}
body.profile-view .history-empty button {
  min-height: 32px !important;
  padding: 6px 10px !important;
  font-size: 0.7rem !important;
}
body.profile-view .profile-statistics-panel {
  border: 1px solid #50657b !important;
  background: #2c3e52 !important;
  box-shadow: 0 12px 28px rgba(5, 14, 25, 0.26);
}
body.profile-view .statistics-chart {
  margin: 18px 0 14px;
  padding: 20px 20px 16px;
  border: 1px solid #50657b;
  border-radius: 10px;
  background: #354a60;
}
body.profile-view .statistics-chart figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.profile-view .statistics-chart figcaption span {
  color: #a9d7ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
body.profile-view .statistics-chart figcaption strong {
  color: #f4f7fa;
  font:
    800 1.35rem "Playfair Display",
    Georgia,
    serif;
}
body.profile-view .statistics-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 230px;
  margin-top: 16px;
  padding: 8px 0 21px;
  border-bottom: 1px solid #60778d;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 33px,
    rgba(169, 215, 255, 0.13) 34px
  );
}
body.profile-view .statistics-chart-bar {
  position: relative;
  display: flex;
  flex: 1;
  align-items: flex-end;
  height: 100%;
  min-width: 12px;
}
body.profile-view .statistics-chart-bar i {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: #a9d7ff;
}
body.profile-view .statistics-chart-bar:nth-child(odd) i {
  background: #789fc0;
}
body.profile-view .statistics-chart-bar span {
  position: absolute;
  bottom: -19px;
  left: 50%;
  color: #c7d3de;
  font-size: 0.65rem;
  transform: translateX(-50%);
}
body.profile-view .statistics-chart-empty {
  width: 100%;
  margin: auto 0;
  color: #c7d3de !important;
  text-align: center;
  font-size: 0.8rem;
}
body.profile-view .statistics-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0 2px;
  color: #c7d3de;
  font-size: 0.78rem;
}
body.profile-view .statistics-summary b {
  margin-right: 4px;
  color: #f4f7fa;
  font-size: 0.9rem;
}
@media (max-width: 560px) {
  body.profile-view .statistics-chart {
    padding: 13px;
  }
  body.profile-view .statistics-chart-bars {
    height: 118px;
  }
  body.profile-view .statistics-summary {
    gap: 7px 12px;
    font-size: 0.72rem;
  }
}
body.profile-view .dicebear-option:hover {
  border-color: #a9d7ff !important;
  background: #314b63 !important;
  transform: translateY(-2px);
}
body.profile-view .dicebear-option.on {
  border: 2px solid #a9d7ff !important;
  background: #415d78 !important;
  box-shadow: 0 0 0 2px rgba(169, 215, 255, 0.16);
}
@media (max-width: 620px) {
  body.profile-view .dicebear-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
body.profile-view .history-heading .history-header-decoration {
  display: block !important;
  position: absolute !important;
  right: 17px !important;
  bottom: 8px !important;
  z-index: 0;
  margin: 0 !important;
  color: #a9d7ff !important;
  font-size: 2.7rem !important;
  line-height: 1 !important;
  opacity: 0.28;
  transform: rotate(-135deg);
  pointer-events: none;
}
body.profile-view .history-count {
  display: none !important;
}
body.profile-view .history-entry b {
  font-family: Manrope, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: 0;
}
body.profile-view .history-entry .history-score {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
body.profile-view .history-entry .history-grade {
  padding: 5px 7px !important;
}
body.profile-view .history-entry .history-score strong {
  padding-right: 2px;
  white-space: nowrap;
}
body.profile-view .history-entry .history-review-toggle {
  flex: 0 0 auto;
  width: auto;
  margin: 0 !important;
  padding: 6px 9px !important;
  justify-content: center;
  font-size: 0.67rem !important;
}
@media (max-width: 620px) {
  body.profile-view .history-entry .history-score {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }
}
body.quiz-view .grid > .card .tag {
  border: 0 !important;
  border-radius: 5px !important;
  background: #415d78 !important;
  color: #eaf5ff !important;
}
body.quiz-view .grid > .card button {
  margin-top: 5px;
  border: 1px solid #66839d !important;
  border-radius: 7px !important;
  background: #1e3045 !important;
  color: #f4f7fa !important;
}
body.quiz-view .grid > .card button:hover {
  background: #4b6782 !important;
  border-color: #a9d7ff !important;
}
body.profile-view .creator-options label {
  color: #a9d7ff !important;
}
body.profile-view .creator-form select {
  border-color: #60778d !important;
  background: #1e3045 !important;
  color: #f4f7fa !important;
}
body.profile-view .creator-form select option {
  background: #1e3045;
  color: #f4f7fa;
}
body.profile-view {
  background-color: #142438;
}
body.profile-view .falling-message {
  color: #8fa1b3 !important;
  opacity: 0.12;
}
body.profile-view .card,
body.profile-view .creator-form,
body.profile-view .customization-panel {
  border-color: #50657b !important;
  background: #2c3e52 !important;
  color: #f4f7fa !important;
  box-shadow: 0 12px 28px rgba(5, 14, 25, 0.26);
}
body.profile-view .card h1,
body.profile-view .card h2,
body.profile-view .card h3,
body.profile-view .card h4,
body.profile-view .card b,
body.profile-view .creator-form h3 {
  color: #f4f7fa !important;
}
body.profile-view .card p,
body.profile-view .card small,
body.profile-view .card span:not(.tag),
body.profile-view .creator-form p {
  color: #c7d3de !important;
}
body.profile-view .card .svg-inline--fa,
body.profile-view .creator-form .svg-inline--fa {
  color: #d8e2ec;
}
body.profile-view .profile-statistics-panel {
  background: #1e3045 !important;
  border: 1px solid #50657b;
}
body.profile-view .statistics-metrics article,
body.profile-view .profile-statistics-panel .progress-stats div {
  background: #354a60 !important;
  border-color: #587087 !important;
}
body.profile-view .statistics-metrics article:first-child,
body.profile-view .profile-statistics-panel .progress-stats div:first-child {
  background: #415970 !important;
}
body.profile-view button,
body.profile-view .chip {
  border-color: #60778d;
}
body.profile-view .profile-actions button,
body.profile-view .creator-toggle,
body.profile-view .create-quiz,
body.profile-view .statistics-rankings,
body.profile-view .leaderboard-tabs button,
body.profile-view .manage-actions button,
body.profile-view .chip {
  background: #4b6075 !important;
  color: #f4f7fa !important;
}
body.profile-view .profile-actions button:hover,
body.profile-view .creator-toggle:hover,
body.profile-view .create-quiz:hover,
body.profile-view .statistics-rankings:hover,
body.profile-view .leaderboard-tabs button:hover,
body.profile-view .manage-actions button:hover,
body.profile-view .chip:hover {
  background: #60778d !important;
  color: #fff !important;
  transform: translateY(-1px);
}
body.profile-view input,
body.profile-view select,
body.profile-view textarea {
  border-color: #60778d;
  background: #223447;
  color: #f4f7fa;
}
body.profile-view input::placeholder,
body.profile-view textarea::placeholder {
  color: #aebeca;
}
body.profile-view .tag,
body.profile-view .chip-role {
  background: #5a7086 !important;
  color: #f4f7fa !important;
}
body.profile-view .avatar-greeting {
  background: #354a60 !important;
  border-color: #5a7086 !important;
  color: #f4f7fa !important;
}
body.profile-view .avatar-greeting::before {
  background: #354a60 !important;
  border-top-color: #5a7086 !important;
  border-left-color: #5a7086 !important;
}
body.profile-view .avatar-wave {
  background: #5a7086 !important;
}
body.profile-view .history-row,
body.profile-view .leaderboard-row {
  border-color: #50657b;
}
body.profile-view .history-empty,
.profile-view .empty {
  color: #c7d3de !important;
  border-color: #60778d !important;
  background: #2c3e52 !important;
}
nav .notification-bell {
  position: relative;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  padding: 14px 14px;
  transform: none;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #fff;
  font:
    800 1.1rem Manrope,
    sans-serif;
  cursor: pointer;
  pointer-events: auto;
}
.notification-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 16px;
}
.notification-icon .svg-inline--fa {
  margin: 0;
}
nav .notification-icon b {
  top: -8px;
  right: -11px;
}
nav .notification-bell:hover {
  background: transparent;
  color: #a9d7ff;
  transform: none;
}
.notification-panel {
  position: fixed;
  z-index: 90;
  width: min(350px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(169, 215, 255, 0.32);
  border-radius: 8px;
  background: #16263f;
  color: #fff;
  box-shadow: 0 18px 42px rgba(5, 22, 43, 0.38);
  transform-origin: top right;
  animation: notification-panel-in 0.2s ease both;
}
.notification-panel[hidden] {
  display: none;
}
.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.notification-panel-head span,
.notification-item small {
  display: block;
  color: #a9d7ff;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.notification-panel-head strong {
  display: block;
  margin-top: 1px;
  font:
    800 1.05rem "Playfair Display",
    Georgia,
    serif;
}
.notification-panel-head > b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: #a9d7ff;
  color: #16263f;
  font-size: 0.72rem;
}
.notification-list {
  padding: 6px;
}
.notification-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  text-align: left;
}
.notification-item:hover {
  background: #243b5a;
  transform: none;
}
.notification-item > i:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e5f0f8;
  color: #2e6fa5;
  font-size: 0.9rem;
}
.notification-item > i:last-child {
  margin: 0;
  color: #a9d7ff;
  font-size: 0.7rem;
}
.notification-item .svg-inline--fa {
  margin: 0;
}
.notification-item strong,
.notification-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-item strong {
  font-size: 0.82rem;
}
.notification-item em {
  margin-top: 1px;
  color: #dce7f4;
  font-style: normal;
  font-size: 0.69rem;
}
.notification-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 130px;
  padding: 24px;
  color: #dce7f4;
  text-align: center;
  font-size: 0.8rem;
}
.notification-empty .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
  font-size: 1.35rem;
}
@keyframes notification-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 600px) {
  .notification-panel {
    transform-origin: top center;
  }
}
nav .notification-bell {
  position: relative;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  padding: 14px 14px;
  transform: none;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #fff;
  font:
    800 1.1rem Manrope,
    sans-serif;
  cursor: pointer;
  pointer-events: auto;
}
.notification-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 16px;
}
.notification-icon .svg-inline--fa {
  margin: 0;
}
nav .notification-icon b {
  top: -8px;
  right: -11px;
}
nav .notification-bell:hover {
  background: transparent;
  color: #a9d7ff;
  transform: none;
}
.notification-panel {
  position: fixed;
  z-index: 90;
  width: min(350px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(169, 215, 255, 0.32);
  border-radius: 8px;
  background: #16263f;
  color: #fff;
  box-shadow: 0 18px 42px rgba(5, 22, 43, 0.38);
  transform-origin: top right;
  animation: notification-panel-in 0.2s ease both;
}
.notification-panel.closing {
  pointer-events: none;
  animation: notification-panel-out 0.2s ease both;
}
.notification-panel[hidden] {
  display: none;
}
.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.notification-panel-head span,
.notification-item small {
  display: block;
  color: #a9d7ff;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.notification-panel-head strong {
  display: block;
  margin-top: 1px;
  font:
    800 1.05rem "Playfair Display",
    Georgia,
    serif;
}
.notification-panel-head > b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: #a9d7ff;
  color: #16263f;
  font-size: 0.72rem;
}
.notification-list {
  padding: 6px;
}
.notification-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  text-align: left;
}
.notification-item:hover {
  background: #243b5a;
  transform: none;
}
.notification-item > i:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e5f0f8;
  color: #2e6fa5;
  font-size: 0.9rem;
}
.notification-item > i:last-child {
  margin: 0;
  color: #a9d7ff;
  font-size: 0.7rem;
}
.notification-item .svg-inline--fa {
  margin: 0;
}
.notification-item strong,
.notification-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-item strong {
  font-size: 0.82rem;
}
.notification-item em {
  margin-top: 1px;
  color: #dce7f4;
  font-style: normal;
  font-size: 0.69rem;
}
.notification-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 130px;
  padding: 24px;
  color: #dce7f4;
  text-align: center;
  font-size: 0.8rem;
}
.notification-empty .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
  font-size: 1.35rem;
}
@keyframes notification-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes notification-panel-out {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
}
@media (max-width: 600px) {
  .notification-panel {
    transform-origin: top center;
  }
}
@media (min-width: 981px) {
  header {
    height: 92px;
    overflow: hidden;
  }
}
.notification-bell {
  position: absolute;
  top: 50%;
  right: 3vw;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.4rem;
  pointer-events: none;
}
.notification-bell .svg-inline--fa {
  margin: 0;
}
.notification-bell b {
  position: absolute;
  top: -8px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #d84a4a;
  color: #fff;
  font:
    800 0.6rem/1 Manrope,
    sans-serif;
}
.notification-bell b[hidden] {
  display: none;
}
@media (max-width: 980px) {
  .notification-bell {
    top: 44px;
    right: 5vw;
  }
}

body.profile-view .profile-statistics-panel {
  border: 1px solid #50657b !important;
  background: #2c3e52 !important;
  box-shadow: 0 12px 28px rgba(5, 14, 25, 0.26);
}

body.profile-view .profile-statistics-panel {
  margin-top: 20px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.profile-view .statistics-chart {
  margin: 0;
  border-color: #50657b;
  background: #2c3e52;
}
body.profile-view .row {
  border-color: #50657b;
}
body.profile-view .manage-form {
  border-color: #50657b;
  background: #354a60;
}
body.profile-view .manage-form select,
body.profile-view .manage-form select option {
  border-color: #60778d !important;
  background: #223447 !important;
  color: #f4f7fa !important;
}
body.profile-view .manage-form select:hover,
body.profile-view .manage-form select option:hover,
body.profile-view .manage-form select option:checked {
  background: #4b6075 !important;
  color: #f4f7fa !important;
}
body.profile-view .manage-form-controls .manage-button {
  border-color: #60778d !important;
  background: #4b6075 !important;
  color: #f4f7fa !important;
}
body.profile-view .manage-form-controls .manage-button:hover {
  border-color: #8394a5 !important;
  background: #60778d !important;
  color: #fff !important;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid #60778d;
  border-radius: 999px;
  background: #354a60;
  color: #dce7f4;
  font-family: Manrope, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.post-tag .svg-inline--fa {
  margin-right: 0;
  color: #a9d7ff;
}
.home-post-content:has(.home-post-actions) small {
  display: block;
  text-align: center;
}
.home-post-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.home-post-actions button,
.home-post-actions .remove-button {
  min-height: 30px;
  padding: 5px 9px;
  border-color: #60778d;
  background: #354a60;
  color: #f4f7fa;
  font-size: 0.68rem;
}
.home-post-actions .remove-button,
.home-post-actions .remove-button .svg-inline--fa {
  color: #f4f7fa !important;
}
.home-post-actions button:hover,
.home-post-actions .remove-button:hover {
  border-color: #a9d7ff;
  background: #4b6075;
  color: #fff !important;
}
.post-delete-confirm {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  width: min(350px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 15px;
  border: 1px solid #60778d;
  border-radius: 12px;
  background: #223447;
  color: #f4f7fa;
  box-shadow: 0 16px 38px rgba(2, 12, 28, 0.38);
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.post-delete-confirm.open {
  opacity: 1;
  transform: translateX(0);
}
.post-delete-confirm > .svg-inline--fa {
  position: absolute;
  bottom: 17px;
  left: 18px;
  color: #a9d7ff;
  font-size: 2.05rem;
  transform: rotate(45deg);
}
.post-delete-confirm b {
  font-size: 0.86rem;
}
.post-delete-confirm p {
  margin: 4px 0 0;
  color: #c7d3de;
  font-size: 0.78rem;
  line-height: 1.4;
}
.post-delete-confirm-actions {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 2px;
}
.post-delete-confirm-actions button {
  min-height: 30px;
  padding: 5px 10px;
  border-color: #60778d;
  background: #354a60;
  color: #f4f7fa;
  font-size: 0.72rem;
}
.post-delete-confirm-actions button:last-child {
  border-color: #a9d7ff;
  background: #4b6075;
}
.post-delete-confirm-actions button:hover {
  border-color: #a9d7ff;
  background: #60778d;
  color: #fff;
}
.post-delete-confirm {
  width: min(380px, calc(100vw - 32px));
  display: block;
  padding: 18px 18px 18px 88px;
}
.post-delete-confirm > .svg-inline--fa {
  bottom: 22px;
  left: 24px;
  font-size: 2.3rem;
}
.post-delete-confirm > div:not(.post-delete-confirm-actions) {
  min-height: 42px;
}
.post-delete-confirm-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}
.post-delete-confirm-actions button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  line-height: 1;
  white-space: nowrap;
}
.post-delete-confirm {
  width: min(240px, calc(100vw - 32px));
  padding: 13px 15px;
}
.post-delete-confirm b {
  font-size: 0.8rem;
}
.post-delete-confirm-actions {
  margin-top: 10px;
}
.post-delete-confirm-actions button {
  min-height: 29px;
  padding: 5px 9px;
  font-size: 0.68rem;
}
body.home-view .home-posts-hero h1 {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
}
header {
  border-bottom-color: #a9d7ff !important;
}
body.profile-view .statistics-chart-bars {
  justify-content: center;
  gap: 14px;
}
body.profile-view .statistics-chart-bar {
  flex: 0 1 54px;
  width: min(54px, 12vw);
}
body.profile-view .statistics-chart-bar i {
  border-radius: 7px 7px 0 0;
  box-shadow: 0 0 14px rgba(169, 215, 255, 0.16);
}
body.profile-view .statistics-chart figcaption {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}
body.profile-view .statistics-chart figcaption span {
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}
body.profile-view .statistics-chart figcaption strong {
  font-family: Manrope, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}
body.profile-view .statistics-chart-bar b {
  position: absolute;
  z-index: 1;
  left: 50%;
  color: #dce7f4;
  font-family: Manrope, sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  transform: translateX(-50%);
  white-space: nowrap;
}
body.profile-view .statistics-chart-bars {
  padding-bottom: 48px;
}
body.profile-view .statistics-chart-bar em {
  position: absolute;
  bottom: -45px;
  left: 50%;
  width: 72px;
  overflow: hidden;
  color: #c7d3de;
  font-family: Manrope, sans-serif;
  font-size: 0.6rem;
  font-style: normal;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}
body.profile-view .statistics-chart figcaption span {
  color: #f4f7fa;
  font-family: Manrope, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
body.profile-view .statistics-chart figcaption {
  display: flex !important;
  width: 100%;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}
body.profile-view .statistics-chart figcaption span {
  display: block;
  color: #f4f7fa !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  line-height: 1.2;
}
body.profile-view .statistics-chart figcaption {
  padding-bottom: 14px;
  border-bottom: 1px solid #50657b;
}
body.profile-view .statistics-chart-bars {
  margin-top: 14px;
}
body.profile-view .role {
  border-color: #50657b;
  background: #2c3e52;
  color: #f4f7fa;
  box-shadow: 0 10px 24px rgba(5, 14, 25, 0.22);
}
body.profile-view .role:hover,
body.profile-view .role.on {
  border-color: #a9d7ff;
  background: #354a60;
}
body.profile-view .role p {
  color: #c7d3de;
}
body.profile-view .role > .svg-inline--fa {
  color: #a9d7ff;
}
body.profile-view .role {
  min-height: 210px;
  padding: 22px;
  text-align: left !important;
  border-radius: 9px !important;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease !important;
}
body.profile-view .role:hover,
body.profile-view .role.on {
  transform: translateY(-4px);
}
body.profile-view .role .ico {
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 16px !important;
  border-radius: 8px;
  background: #415d78 !important;
  color: #a9d7ff !important;
}
body.profile-view .role h3 {
  margin: 0 0 8px !important;
  color: #f4f7fa !important;
  font-family: Manrope, sans-serif !important;
  font-size: 1.04rem !important;
}
body.profile-view .role span {
  display: block;
  color: #c7d3de !important;
  font-family: Manrope, sans-serif !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}
body.profile-view .role-grid {
  grid-template-columns: repeat(3, minmax(0, 205px));
  justify-content: center;
}
body.profile-view .role span {
  text-align: center;
}
body.profile-view .role {
  min-height: 180px;
  padding: 18px;
}
body.profile-view .role .ico {
  margin-bottom: 12px !important;
}
body.profile-view .role h3 {
  margin-bottom: 6px !important;
}
body.profile-view .role .ico,
body.profile-view .role h3 {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
body.profile-view .role h3 {
  width: 100%;
}
body.profile-view .role .ico {
  display: flex !important;
  align-self: center !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 0 42px;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #415d78 !important;
}
nav .profile-nav small {
  border-radius: 5px;
}
nav .profile-nav small {
  position: relative;
  top: 2px;
  left: -2px;
}
body.quiz-view .grid > .card > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  min-height: 35px;
  padding: 7px 11px;
  border-color: #7899b7 !important;
  border-radius: 7px !important;
  background: #3e607e !important;
  color: #f4f7fa !important;
  font-family: Manrope, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: none !important;
}
body.quiz-view .grid > .card > button .svg-inline--fa {
  margin: 0 !important;
  transition: transform 0.2s ease;
}
body.quiz-view .grid > .card > button:hover {
  border-color: #a9d7ff !important;
  background: #4b6782 !important;
  color: #fff !important;
  transform: translateY(-2px);
}
body.quiz-view .grid > .card > button:hover .svg-inline--fa {
  transform: translateX(3px);
}
body.quiz-view .grid > .card > button {
  position: relative;
  top: -4px;
}
.quiz-exit-confirm {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  width: min(270px, calc(100vw - 32px));
  padding: 15px 16px;
  border: 1px solid #60778d;
  border-radius: 10px;
  background: #223447;
  color: #f4f7fa;
  box-shadow: 0 16px 38px rgba(2, 12, 28, 0.38);
  opacity: 0;
  transform: translateX(22px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.quiz-exit-confirm.open {
  opacity: 1;
  transform: translateX(0);
}
.quiz-exit-confirm b {
  font:
    800 0.9rem Manrope,
    sans-serif;
}
.quiz-exit-confirm p {
  margin: 5px 0 12px;
  color: #c7d3de;
  font-size: 0.78rem;
  line-height: 1.4;
}
.quiz-exit-confirm > div {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.quiz-exit-confirm button {
  min-height: 30px;
  padding: 5px 10px;
  border-color: #60778d;
  background: #354a60;
  color: #f4f7fa;
  font-size: 0.7rem;
}
.quiz-exit-confirm button:last-child {
  border-color: #a9d7ff;
  background: #4b6075;
}
.quiz-exit-confirm button:hover {
  border-color: #a9d7ff;
  background: #60778d;
  color: #fff;
}
body.profile-view .quiz-leaderboard {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #50657b;
}
body.profile-view .quiz-leaderboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: #f4f7fa;
}
body.profile-view .quiz-leaderboard-heading span {
  font:
    800 0.82rem Manrope,
    sans-serif;
}
body.profile-view .quiz-leaderboard-heading span .svg-inline--fa {
  margin-right: 5px;
  color: #a9d7ff;
}
body.profile-view .quiz-leaderboard-heading > b {
  padding: 4px 8px;
  border-radius: 5px;
  background: #415d78;
  color: #dce7f4;
  font-size: 0.67rem;
}
.quiz-leaderboard-list {
  display: grid;
  gap: 7px;
}
.quiz-leaderboard-row {
  display: grid;
  grid-template-columns: 24px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #50657b;
  border-radius: 8px;
  background: #223447;
}
.quiz-leaderboard-row > strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #415d78;
  color: #dce7f4;
  font-size: 0.68rem;
}
.quiz-leaderboard-row > img {
  width: 36px;
  height: 36px;
  border: 1px solid #60778d;
  border-radius: 50%;
  background: #354a60;
}
.quiz-leaderboard-row div {
  min-width: 0;
}
.quiz-leaderboard-row div > b,
.quiz-leaderboard-row div > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quiz-leaderboard-row div > b {
  color: #f4f7fa;
  font-size: 0.77rem;
}
.quiz-leaderboard-row div > small {
  margin-top: 2px;
  color: #c7d3de;
  font-size: 0.66rem;
}
.quiz-leaderboard-row em {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #a9d7ff;
  font-size: 0.67rem;
  font-style: normal;
  white-space: nowrap;
}
.quiz-leaderboard-row em .svg-inline--fa {
  margin: 0;
}
.quiz-leaderboard-empty {
  margin: 0;
  padding: 13px;
  border: 1px dashed #60778d;
  border-radius: 8px;
  color: #c7d3de;
  font-size: 0.75rem;
  text-align: center;
}
@media (max-width: 520px) {
  .quiz-leaderboard-row {
    grid-template-columns: 22px 32px minmax(0, 1fr);
  }
  .quiz-leaderboard-row > img {
    width: 32px;
    height: 32px;
  }
  .quiz-leaderboard-row em {
    grid-column: 3;
    justify-self: start;
  }
}
body.profile-view .quiz-form-actions .alt {
  border-color: #60778d !important;
  background: #354a60 !important;
  color: #f4f7fa !important;
}
body.profile-view .quiz-form-actions .alt:hover {
  border-color: #a9d7ff !important;
  background: #4b6075 !important;
  color: #fff !important;
}
body.profile-view .quiz-form-actions button {
  min-height: 32px !important;
  padding: 6px 10px !important;
  border-color: #60778d !important;
  border-radius: 8px !important;
  background: #4b6075 !important;
  color: #f4f7fa !important;
  font-size: 0.7rem !important;
}
body.profile-view .quiz-form-actions button:hover {
  border-color: #8394a5 !important;
  background: #60778d !important;
  color: #fff !important;
}
body.profile-view .quiz-options {
  grid-template-columns: repeat(2, minmax(0, 170px));
  gap: 9px;
  margin: 10px 0;
}
body.profile-view .quiz-options label {
  gap: 4px;
  color: #c7d3de !important;
  font-size: 0.72rem !important;
}
body.profile-view .quiz-options select,
body.profile-view .quiz-options select option {
  height: 34px;
  min-height: 34px;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  border-color: #60778d !important;
  background: #223447 !important;
  color: #f4f7fa !important;
  font-size: 0.75rem !important;
}
body.profile-view .quiz-options .icon-choice select {
  padding-left: 34px !important;
}
.quiz-options .icon-preview {
  left: 8px;
  width: 19px;
  height: 19px;
  color: #a9d7ff !important;
  font-size: 0.8rem;
}
body.profile-view .quiz-icon-choice {
  display: grid;
  gap: 4px;
  color: #c7d3de !important;
  font-size: 0.72rem !important;
  font-weight: 800;
}
.icon-selector {
  position: relative;
}
.icon-selector-trigger {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 11px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px !important;
  border: 1px solid #60778d !important;
  border-radius: 8px !important;
  background: #223447 !important;
  color: #f4f7fa !important;
  font-size: 0.75rem !important;
  text-align: left;
}
.icon-selector-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-selector-trigger > .svg-inline--fa:first-child {
  color: #a9d7ff;
}
.icon-selector-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  left: 0;
  display: none;
  width: max(100%, 170px);
  max-height: 210px;
  overflow: auto;
  padding: 5px;
  border: 1px solid #60778d;
  border-radius: 8px;
  background: #223447;
  box-shadow: 0 12px 24px rgba(5, 14, 25, 0.35);
}
.icon-selector.open .icon-selector-menu {
  display: grid;
}
.icon-selector-menu button {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #f4f7fa;
  text-align: left;
  font-size: 0.74rem;
}
.icon-selector-menu button .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
}
.icon-selector-menu button:hover,
.icon-selector-menu button.selected {
  background: #415d78;
  color: #fff;
}
body.profile-view .quiz-difficulty-choice {
  display: grid;
  gap: 4px;
  color: #c7d3de !important;
  font-size: 0.72rem !important;
  font-weight: 800;
}
.difficulty-selector {
  position: relative;
}
.difficulty-selector-trigger {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 11px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px !important;
  border: 1px solid #60778d !important;
  border-radius: 8px !important;
  background: #223447 !important;
  color: #f4f7fa !important;
  font-size: 0.75rem !important;
  text-align: left;
}
.difficulty-selector-trigger > .svg-inline--fa:first-child {
  color: #a9d7ff;
}
.difficulty-selector-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  left: 0;
  display: none;
  width: max(100%, 170px);
  padding: 5px;
  border: 1px solid #60778d;
  border-radius: 8px;
  background: #223447;
  box-shadow: 0 12px 24px rgba(5, 14, 25, 0.35);
}
.difficulty-selector.open .difficulty-selector-menu {
  display: grid;
}
.difficulty-selector-menu button {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #f4f7fa;
  text-align: left;
  font-size: 0.74rem;
}
.difficulty-selector-menu button .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
}
.difficulty-selector-menu button:hover,
.difficulty-selector-menu button.selected {
  background: #415d78;
  color: #fff;
}
body.profile-view .difficulty-selector-menu {
  width: max(100%, 220px);
  z-index: 30;
}
.difficulty-selector-menu button {
  white-space: nowrap;
}
body.profile-view .difficulty-selector-trigger {
  grid-template-columns: 12px minmax(0, 1fr) 9px;
  gap: 4px;
  padding: 6px 6px !important;
  font-size: 0.7rem !important;
}
.difficulty-selector-trigger > span {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
body.profile-view .creator-form > select,
body.profile-view .creator-form > select option {
  background: #223447 !important;
  color: #f4f7fa !important;
}
body.profile-view .creator-form > select option:checked,
body.profile-view .creator-form > select option:hover {
  background: #415d78 !important;
  color: #f4f7fa !important;
}
body.profile-view .question-form {
  border-top-color: #50657b;
}
body.profile-view .class-selector {
  position: relative;
  margin: 10px 0;
}
.class-selector-trigger {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 11px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 8px 11px !important;
  border: 1px solid #60778d !important;
  border-radius: 9px !important;
  background: #223447 !important;
  color: #f4f7fa !important;
  text-align: left;
}
.class-selector-trigger > .svg-inline--fa:first-child {
  color: #a9d7ff;
}
.class-selector-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  display: none;
  width: 100%;
  padding: 5px;
  border: 1px solid #60778d;
  border-radius: 8px;
  background: #223447;
  box-shadow: 0 12px 24px rgba(5, 14, 25, 0.35);
}
.class-selector.open .class-selector-menu {
  display: grid;
}
.class-selector-menu button {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #f4f7fa;
  text-align: left;
  font-size: 0.78rem;
}
.class-selector-menu button .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
}
.class-selector-menu button:hover,
.class-selector-menu button.selected {
  background: #415d78;
  color: #fff;
}
body.profile-view .answer-selector {
  position: relative;
  margin-top: 8px;
}
.answer-selector-trigger {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 11px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 8px 11px !important;
  border: 1px solid #60778d !important;
  border-radius: 9px !important;
  background: #223447 !important;
  color: #f4f7fa !important;
  text-align: left;
}
.answer-selector-trigger > .svg-inline--fa:first-child {
  color: #a9d7ff;
}
.answer-selector-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  display: none;
  width: 100%;
  padding: 5px;
  border: 1px solid #60778d;
  border-radius: 8px;
  background: #223447;
  box-shadow: 0 12px 24px rgba(5, 14, 25, 0.35);
}
.answer-selector.open .answer-selector-menu {
  display: grid;
}
.answer-selector-menu button {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #f4f7fa;
  text-align: left;
  font-size: 0.78rem;
}
.answer-selector-menu button .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
}
.answer-selector-menu button:hover,
.answer-selector-menu button.selected {
  background: #415d78;
  color: #fff;
}
body.profile-view .question-form > button {
  min-height: 32px;
  padding: 6px 10px !important;
  border-color: #60778d !important;
  border-radius: 8px !important;
  background: #4b6075 !important;
  color: #f4f7fa !important;
  font-size: 0.7rem !important;
}
body.profile-view .question-form > button:hover {
  border-color: #8394a5 !important;
  background: #60778d !important;
  color: #fff !important;
}
body.quiz-view .quiz-difficulty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 0 6px;
  padding: 5px 8px;
  border: 1px solid #60778d;
  border-radius: 5px;
  background: #354a60;
  color: #dce7f4;
  font-family: Manrope, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  vertical-align: middle;
}
.quiz-difficulty .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
}
.quiz-difficulty.easy .svg-inline--fa {
  color: #7ed5a5;
}
.quiz-difficulty.hard .svg-inline--fa {
  color: #f09191;
}
body.profile-view .manage-form-controls .edit-selector {
  flex: 0 0 170px;
  min-width: 170px;
}
body.profile-view .manage-form-controls .class-selector.edit-selector {
  flex-basis: 170px;
  min-width: 170px;
}
body.profile-view .manage-form-controls .edit-selector .class-selector-menu,
body.profile-view .manage-form-controls .edit-selector .icon-selector-menu,
body.profile-view .manage-form-controls .edit-selector .difficulty-selector-menu {
  min-width: 170px;
}
body.profile-view .manage-form-controls > button:last-child {
  flex: 0 0 auto;
  min-height: 40px;
  margin-left: auto;
  padding: 8px 13px;
}
body.profile-view .manage-form-controls > button:last-child {
  min-height: 32px;
  padding: 6px 10px !important;
  border-color: #60778d !important;
  background: #4b6075 !important;
  color: #f4f7fa !important;
  font-size: 0.7rem !important;
  box-shadow: none;
}
body.profile-view .manage-form-controls > button:last-child:hover {
  border-color: #8394a5 !important;
  background: #60778d !important;
  color: #fff !important;
}
body.profile-view .manage-form-controls > button.saving:last-child,
body.profile-view .manage-form-controls > button.saving:last-child:hover {
  border-color: #8ec7a2 !important;
  background: #3f7657 !important;
  color: #fff !important;
  animation: save-confirm 0.36s ease both;
}
.class-selector-placeholder {
  display: block;
  width: 16px;
  height: 16px;
}
.notification-panel-head {
  display: none;
}
@keyframes avatar-update {
  0% {
    opacity: 0.45;
    transform: scale(0.88) rotate(-5deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
body.profile-view .avatar-button.avatar-updating .avatar-look {
  transform-origin: center 55%;
  animation: avatar-update 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
body.profile-view .profile-login .chip {
  border-color: #60778d !important;
  background: #2c3e52 !important;
  color: #f4f7fa !important;
  box-shadow: 0 8px 18px rgba(5, 14, 25, 0.2);
}
body.profile-view .profile-login .chip .svg-inline--fa {
  color: #a9d7ff !important;
}
body.profile-view .profile-login .chip-role {
  background: #415d78 !important;
  color: #dce7f4 !important;
}
body.profile-view .profile-login .chip:hover {
  border-color: #a9d7ff !important;
  background: #354a60 !important;
  color: #fff !important;
}
body.profile-view .profile-iam {
  font-family: Manrope, sans-serif;
  font-weight: 800;
}
body.quiz-view .quiz-counter strong {
  position: relative;
  top: -1px;
  left: -2px;
}
body.profile-view .tag-selector {
  position: relative;
  flex: 0 1 145px;
}
body.profile-view .tag-selector-trigger {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px !important;
  border: 1px solid #60778d !important;
  border-radius: 8px !important;
  background: #223447 !important;
  color: #f4f7fa !important;
  font-size: 0.73rem !important;
  text-align: left;
}
body.profile-view .tag-selector-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.profile-view .tag-selector-trigger > .svg-inline--fa:first-child {
  color: #a9d7ff;
}
body.profile-view .tag-selector-trigger > .svg-inline--fa:last-child {
  font-size: 0.62rem;
  transition: transform 0.2s ease;
}
body.profile-view .tag-selector.open .tag-selector-trigger > .svg-inline--fa:last-child {
  transform: rotate(180deg);
}
body.profile-view .tag-selector-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  display: none;
  width: 100%;
  overflow: hidden;
  border: 1px solid #60778d;
  border-radius: 8px;
  background: #223447;
  box-shadow: 0 10px 20px rgba(5, 14, 25, 0.28);
}
body.profile-view .tag-selector.open .tag-selector-menu {
  display: grid;
}
body.profile-view .tag-selector-menu button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 31px;
  padding: 6px 9px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #223447 !important;
  color: #f4f7fa !important;
  font-size: 0.72rem !important;
  text-align: left;
}
body.profile-view .tag-selector-menu button:hover,
body.profile-view .tag-selector-menu button.selected {
  background: #4b6075 !important;
  color: #fff !important;
}
body.profile-view .tag-selector-menu .svg-inline--fa {
  width: 14px;
  color: #a9d7ff;
}
body.profile-view .creator-tag-choice {
  display: grid;
  gap: 5px;
  color: #a9d7ff;
  font-size: 0.77rem;
  font-weight: 800;
}
body.profile-view .creator-tag-choice .tag-selector {
  width: 100%;
  max-width: 220px;
}
body.profile-view .creator-options input[type="date"] {
  box-sizing: border-box;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 6px 9px;
  border-color: #60778d !important;
  background: #223447 !important;
  color: #f4f7fa !important;
}
body.profile-view .creator-options label,
body.profile-view .creator-tag-choice {
  color: #c7d3de !important;
}
body.profile-view .creator-form .publish-post {
  justify-self: start;
  border-color: #60778d !important;
  background: #4b6075 !important;
  color: #f4f7fa !important;
}
body.profile-view .creator-form .publish-post:hover {
  border-color: #8394a5 !important;
  background: #60778d !important;
  color: #fff !important;
}
body.profile-view .creator-post-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
body.profile-view .creator-post-actions .manage-button {
  min-height: 32px;
  padding: 6px 10px !important;
  border-color: #60778d !important;
  background: #4b6075 !important;
  color: #f4f7fa !important;
  font-size: 0.7rem !important;
}
body.profile-view .creator-post-actions .manage-button:hover {
  border-color: #8394a5 !important;
  background: #60778d !important;
  color: #fff !important;
}
body.profile-view .creator-media-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #50657b;
  border-radius: 8px;
  background: #223447;
}
body.profile-view .creator-media-panel.open {
  display: grid;
  animation: media-panel-in 0.2s ease both;
}
body.profile-view .creator-media-panel small,
body.profile-view .creator-media-preview {
  grid-column: 1/-1;
}
body.profile-view .creator-media-panel small {
  color: #c7d3de;
  font-size: 0.68rem;
}
body.profile-view .creator-media-preview:empty {
  display: none;
}
body.profile-view .creator-media-preview img,
body.profile-view .creator-media-preview video {
  display: block;
  width: 92px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #50657b;
  border-radius: 7px;
}
body.profile-view .post-media-preview,
body.profile-view .creator-media-preview {
  display: grid;
  gap: 5px;
}
body.profile-view .media-file-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dce7f4;
  font-size: 0.72rem;
}
body.profile-view .media-file-item .svg-inline--fa {
  width: 14px;
  color: #a9d7ff;
}
body.profile-view .managed-post {
  overflow: hidden;
}
body.profile-view .managed-post.editing {
  overflow: visible;
}
body.profile-view .post-manage-form {
  max-height: 0;
  margin: 0;
  padding: 0 12px;
  overflow: hidden;
  border-color: transparent !important;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 0.35s ease,
    padding 0.35s ease,
    margin 0.35s ease,
    opacity 0.22s ease,
    transform 0.35s ease;
}
body.profile-view .post-manage-form.open {
  max-height: 420px;
  margin: -2px 0 12px;
  padding: 12px;
  overflow: visible;
  border-color: #50657b !important;
  opacity: 1;
  transform: none;
}
body.profile-view .managed-post .manage-button.on {
  border-color: #a9d7ff !important;
  background: #60778d !important;
  color: #fff !important;
}
body.profile-view .post-manage-form .manage-button.saving {
  border-color: #8ec7a2 !important;
  background: #3f7657 !important;
  color: #fff !important;
  animation: save-confirm 0.36s ease both;
}
body.profile-view .post-media-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #50657b;
  border-radius: 8px;
  background: #223447;
}
body.profile-view .post-media-panel.open {
  display: grid;
  animation: media-panel-in 0.2s ease both;
}
body.profile-view .post-media-panel input[data-post-field="media-url"] {
  margin: 0;
}
body.profile-view .media-file-button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #60778d;
  border-radius: 7px;
  background: #4b6075;
  color: #f4f7fa;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
body.profile-view .media-file-button input {
  display: none;
}
body.profile-view .post-media-panel small,
body.profile-view .post-media-preview {
  grid-column: 1/-1;
}
body.profile-view .post-media-panel small {
  color: #c7d3de;
  font-size: 0.68rem;
}
body.profile-view .post-media-preview {
  display: flex;
  align-items: center;
}
body.profile-view .post-media-preview:empty {
  display: none;
}
body.profile-view .post-media-preview img,
body.profile-view .post-media-preview video {
  display: block;
  width: 92px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #50657b;
  border-radius: 7px;
}
@keyframes media-panel-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 620px) {
  body.profile-view .post-media-panel {
    grid-template-columns: 1fr;
  }
  body.profile-view .post-media-panel small,
  body.profile-view .post-media-preview {
    grid-column: auto;
  }
}
body.profile-view .managed-post.removing {
  pointer-events: none;
  animation: post-remove 0.3s ease-in forwards;
}
@keyframes post-remove {
  to {
    max-height: 0;
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
  }
}
@keyframes save-confirm {
  50% {
    transform: scale(1.07);
  }
  100% {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.profile-view .post-manage-form {
    transition: none;
  }
  body.profile-view .managed-post.removing,
  body.profile-view .post-manage-form .manage-button.saving {
    animation: none;
  }
}

body.profile-view .manage-form-controls .class-selector.edit-selector {
  margin: 0;
}
body.profile-view .manage-form-controls .class-selector.edit-selector .class-selector-trigger {
  grid-template-columns: 12px minmax(0, 1fr) 9px;
  gap: 4px;
  min-height: 34px;
  padding: 6px 6px !important;
  border-radius: 8px !important;
  font-size: 0.7rem !important;
}
body.profile-view
  .manage-form-controls
  .class-selector.edit-selector
  .class-selector-trigger
  > span {
  overflow: visible;
  white-space: nowrap;
}
body.profile-view .manage-form-controls .class-selector.edit-selector .class-selector-menu button {
  font-size: 0.74rem;
}
body.profile-view .post-manage-form.quiz-manage-form.open {
  max-height: 2400px;
}
body.profile-view .customization-panel.open .customization-content {
  border-color: #60778d !important;
}
body.profile-view .dicebear-picker > p {
  text-align: center;
}
body.home-view .falling-icons .svg-inline--fa,
body.quiz-view .falling-icons .svg-inline--fa {
  color: #90a0b1 !important;
  opacity: 0.09;
}
body.home-view .falling-messages,
body.quiz-view .falling-messages {
  color: #9faebd;
}
body.home-view .falling-message,
body.quiz-view .falling-message {
  color: #8fa1b3 !important;
  opacity: 0.12;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 0.9rem;
}
.footer-links a,
.footer-links button {
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.85;
  box-shadow: none;
}
.footer-links a:hover,
.footer-links button:hover {
  opacity: 1;
}

.footer-links a,
.footer-links button {
  transition: opacity 0.2s;
}
body.legal-view {
  background-color: #16263f;
  background-image:
    linear-gradient(90deg, rgba(8, 24, 45, 0.95), rgba(8, 24, 45, 0.72)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 0 24px;
}
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  animation: in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.legal-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(169, 215, 255, 0.25);
  transition:
    background 0.25s,
    transform 0.25s,
    color 0.25s;
}
.legal-tabs a:hover {
  background: rgba(169, 215, 255, 0.18);
  transform: translateY(-2px);
}
.legal-tabs a.on {
  background: #a9d7ff;
  color: #16263f;
}
.legal-tabs .svg-inline--fa,
.legal-head .svg-inline--fa,
.legal-card h2 .svg-inline--fa,
.legal-back .svg-inline--fa {
  margin: 0;
}
.legal-card {
  color: #e8f1fb;
  padding: 30px 34px;
  border-radius: 22px;
  background: rgba(11, 31, 56, 0.78);
  border: 1px solid rgba(169, 215, 255, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(2, 12, 28, 0.4);
  animation: in 0.65s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.legal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(169, 215, 255, 0.2);
}
.legal-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 1.5rem;
  color: #16263f;
  background: linear-gradient(135deg, #a9d7ff, #5aa4e0);
}
.legal-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
}
.legal-updated {
  margin: 4px 0 0;
  color: #a9d7ff;
  font-size: 0.85rem;
}
.legal-updated .svg-inline--fa {
  margin-right: 6px;
}
.legal-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.5em 0 0.4em;
  color: #fff;
  font-size: 1.1rem;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 800;
}
.legal-card h2 .svg-inline--fa {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 9px;
  color: #a9d7ff;
  background: rgba(169, 215, 255, 0.14);
}
.legal-card p {
  margin: 0 0 0.6em;
  color: #d3e2f2;
  line-height: 1.7;
}
.legal-card > h2,
.legal-card > p,
.legal-card > table {
  animation: in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.legal-card > :nth-child(3n) {
  animation-delay: 0.15s;
}
.legal-card > :nth-child(3n + 1) {
  animation-delay: 0.22s;
}
.legal-card > :nth-child(3n + 2) {
  animation-delay: 0.3s;
}
.legal-card table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 0.9rem;
}
.legal-card th,
.legal-card td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(169, 215, 255, 0.2);
}
.legal-card th {
  color: #fff;
  background: rgba(169, 215, 255, 0.14);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 12px;
  color: #16263f;
  background: #a9d7ff;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.25s,
    background 0.25s;
}
.legal-back:hover {
  background: #fff;
  transform: translateX(-4px);
}
.cookie-banner {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(11, 31, 56, 0.94);
  border: 1px solid rgba(169, 215, 255, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(2, 12, 28, 0.4);
  animation: cookie-in 0.6s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cookie-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #16263f;
  background: linear-gradient(135deg, #a9d7ff, #5aa4e0);
  animation: cookie-wiggle 3s 1.2s ease-in-out infinite;
}
@keyframes cookie-wiggle {
  0%,
  88%,
  100% {
    transform: rotate(0);
  }
  92% {
    transform: rotate(-14deg);
  }
  96% {
    transform: rotate(12deg);
  }
}
.cookie-banner p {
  flex: 1;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}
.cookie-banner a {
  color: #a9d7ff;
  font-weight: 800;
}
.cookie-banner .svg-inline--fa,
.cookie-actions .svg-inline--fa {
  margin: 0;
}
.cookie-actions {
  display: flex;
  gap: 6px;
}
.cookie-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #2e6fa5;
  border-radius: 10px;
  background: #2e6fa5;
  color: #fff;
  font:
    800 0.8rem Manrope,
    system-ui,
    sans-serif;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.cookie-actions button:hover {
  background: #3d84c2;
  transform: translateY(-1px);
}
.cookie-actions button.alt {
  padding: 7px 10px;
  background: transparent;
  border-color: rgba(169, 215, 255, 0.45);
}
.cookie-actions button.alt:hover {
  background: rgba(169, 215, 255, 0.16);
}
@media (max-width: 520px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
  .legal-card {
    padding: 22px 18px;
  }
}

.legal-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #a9d7ff;
  font-size: 2.2rem;
}
.cookie-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #a9d7ff;
  font-size: 1.5rem;
}

.pdf-ai-box{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.pdf-ai-box small{color:var(--mut)}

/* --- Вход / регистрация --- */
.auth-fields{display:flex;flex-direction:column;gap:10px;max-width:360px;margin:14px auto}
.auth-fields input{width:100%}
.auth-login{margin-top:28px;text-align:center}

/* ==========================================================
   Полета за вход/регистрация, бутони и Изход (без жълто)
   ========================================================== */

/* --- Тънки, еднакви полета (вместо дебелите бели) --- */
body .ask input,
body .auth-fields input,
body .auth-login input {
  width: min(360px, 100%) !important;
  max-width: 360px !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 11px 16px !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  border: 1px solid rgba(169, 215, 255, 0.32) !important;
  border-radius: 12px !important;
  background: rgba(16, 30, 49, 0.72) !important;
  color: #f4f7fa !important;
  box-shadow: none !important;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
body .ask input::placeholder,
body .auth-fields input::placeholder,
body .auth-login input::placeholder {
  color: rgba(214, 226, 240, 0.62) !important;
  font-size: 0.92rem;
}
body .ask input:focus,
body .auth-fields input:focus,
body .auth-login input:focus {
  outline: none;
  border-color: #a9d7ff !important;
  background: rgba(16, 30, 49, 0.88) !important;
  box-shadow: 0 0 0 3px rgba(169, 215, 255, 0.18) !important;
}
body .ask {
  gap: 12px;
}
body .auth-fields {
  width: min(360px, 100%);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
  align-items: center;
}

/* --- „Вече имаш профил? Влез“ --- */
body .auth-login {
  width: min(420px, 100%);
  box-sizing: border-box;
  margin: 28px auto 0;
  padding: 18px 20px 20px;
  border: 1px solid rgba(169, 215, 255, 0.16);
  border-radius: 16px;
  background: rgba(14, 26, 43, 0.5);
  backdrop-filter: blur(8px);
}
body .auth-login .profile-divider {
  margin-bottom: 4px;
  color: rgba(226, 236, 247, 0.9);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}
body .auth-login .profile-divider::before,
body .auth-login .profile-divider::after {
  background: rgba(169, 215, 255, 0.28);
}

/* --- Бутон „Вход“: светлосин вместо жълт --- */
body .auth-login .auth-fields button {
  width: min(360px, 100%);
  margin-top: 2px;
  padding: 11px 20px;
  border: 1px solid transparent !important;
  background: #a9d7ff !important;
  color: #14263c !important;
  box-shadow: none;
}
body .auth-login .auth-fields button:hover {
  background: #d4ebff !important;
  color: #14263c !important;
  transform: translateY(-1px);
}

/* --- Бутон „Изход“ (на мястото на „Смени профил“) --- */
body.profile-view .profile-actions button.logout-btn {
  border: 1px solid rgba(240, 145, 145, 0.55) !important;
  background: rgba(240, 145, 145, 0.08) !important;
  color: #f6b9b9 !important;
}
body.profile-view .profile-actions button.logout-btn:hover {
  border-color: #f09191 !important;
  background: rgba(240, 145, 145, 0.2) !important;
  color: #fff !important;
}

/* --- Без жълто при посочване на бутони --- */
button:hover:not(:disabled):not(.alt) {
  background: #2e6fa5;
}
button.alt:hover {
  border-color: #2e6fa5;
  color: #2e6fa5;
}
body.profile-view button.alt:hover,
body.quiz-view button.alt:hover {
  border-color: #a9d7ff;
  background: rgba(169, 215, 255, 0.14);
  color: #fff;
}

/* --- „Няма тестове за този клас“ без жълти нюанси --- */
body.quiz-view .empty {
  border-color: rgba(169, 215, 255, 0.4);
  color: #c3d3e4;
}
body.quiz-view .empty .svg-inline--fa {
  color: #a9d7ff;
}

/* --- Входната врата за тестове: текст без жълто и бежово --- */
body.quiz-view .quiz-gate-intro p {
  color: #dce9f6;
}
body.quiz-view .quiz-gate-intro small {
  color: #c3d3e4;
}
body.quiz-view .quiz-gate-intro small .svg-inline--fa {
  color: #a9d7ff;
}

/* --- Бутон „Изход“: тънък, с червена иконка до текста --- */
body.profile-view .profile-actions button.logout-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  min-width: 0 !important;
  padding: 6px 11px !important;
  border: 1px solid rgba(255, 96, 96, 0.55) !important;
  border-radius: 8px !important;
  background: rgba(255, 96, 96, 0.08) !important;
  color: #ff8a8a !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: none !important;
}
body.profile-view .profile-actions button.logout-btn .svg-inline--fa {
  margin: 0 !important;
  color: #ff4d4d !important;
}
body.profile-view .profile-actions button.logout-btn:hover {
  border-color: #ff6b6b !important;
  background: rgba(255, 96, 96, 0.18) !important;
  color: #ffb3b3 !important;
  transform: translateY(-1px);
}
body.profile-view .profile-actions button.logout-btn:hover .svg-inline--fa {
  color: #ff4d4d !important;
}

/* --- Преглед и редактиране на добавените въпроси --- */
.draft-questions {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.draft-questions h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--mut);
}
.draft-questions h4 .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
}
.draft-question {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.draft-question.editing {
  border-color: #a9d7ff;
}
.draft-question-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.draft-question-head b {
  flex: 1 1 200px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.draft-options {
  display: grid;
  gap: 4px;
  margin: 9px 0 6px;
  padding: 0;
  list-style: none;
}
.draft-options li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--mut);
}
.draft-options li.correct {
  color: var(--ok);
  font-weight: 700;
}
.draft-options li .svg-inline--fa {
  margin: 0 0 0 auto;
}
.draft-explanation {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mut);
}
.draft-explanation .svg-inline--fa {
  margin-right: 5px;
  color: #a9d7ff;
}
.draft-question-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
.draft-question-actions button {
  width: auto;
  min-width: 0;
  padding: 5px 10px !important;
  border-width: 1px !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  line-height: 1.2;
}
.draft-question-actions button .svg-inline--fa {
  margin-right: 5px;
}
.edit-question-form {
  margin-top: 12px;
}
.edit-question-form input {
  margin-bottom: 8px;
}
body.profile-view .draft-question {
  border-color: #50657b;
  background: rgba(34, 52, 71, 0.5);
}
body.profile-view .draft-question-actions button {
  border-color: #60778d !important;
  background: #4b6075 !important;
  color: #f4f7fa !important;
}
body.profile-view .draft-question-actions button:hover {
  border-color: #8394a5 !important;
  background: #60778d !important;
  color: #fff !important;
}
body.profile-view .draft-question-actions .remove-button {
  border-color: rgba(255, 96, 96, 0.5) !important;
  background: rgba(255, 96, 96, 0.08) !important;
  color: #ff8a8a !important;
}
body.profile-view .draft-question-actions .remove-button:hover {
  background: rgba(255, 96, 96, 0.18) !important;
  color: #ffb3b3 !important;
}

/* --- Аватарчето е изображение, не бутон --- */
.avatar-button:hover {
  transform: none !important;
}

/* --- Избор на аватар без прозорец отзад --- */
body.profile-view .customization-panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.profile-view .customization-panel.open .customization-content {
  border-color: transparent !important;
  padding-top: 8px !important;
}

/* --- Избран пол: ясна разлика --- */
body.profile-view .ask .gender .chip {
  border-color: rgba(169, 215, 255, 0.45) !important;
  background: rgba(34, 52, 71, 0.75) !important;
  color: #dce9f6 !important;
}
body.profile-view .ask .gender .chip .svg-inline--fa {
  color: #a9d7ff !important;
}
body.profile-view .ask .gender .chip.on {
  border-color: #a9d7ff !important;
  background: #a9d7ff !important;
  color: #14263c !important;
  box-shadow: 0 0 0 3px rgba(169, 215, 255, 0.2);
}
body.profile-view .ask .gender .chip.on .svg-inline--fa {
  color: #14263c !important;
}
body.profile-view .ask .gender .chip:hover {
  border-color: #a9d7ff !important;
  background: rgba(169, 215, 255, 0.18) !important;
  color: #fff !important;
}
body.profile-view .ask .gender .chip.on:hover {
  border-color: #d4ebff !important;
  background: #d4ebff !important;
  color: #14263c !important;
}

/* --- Аватарчето остава центрирано --- */
body.profile-view .avatar-button {
  width: fit-content !important;
  margin: 0 auto 4px !important;
}

/* --- Добавените въпроси: светъл текст вместо тъмно жълт --- */
body.profile-view .draft-questions h4,
body.profile-view .draft-questions .draft-options li,
body.profile-view .draft-questions .draft-explanation {
  color: #c8d7e6 !important;
}
body.profile-view .draft-options li.correct {
  color: #8fe0b4 !important;
}
body.profile-view .draft-options li .tag {
  background: #5a7086 !important;
  color: #f4f7fa !important;
}

/* --- Помощник: AI чат --- */
body.assistant-view {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(11, 28, 52, 0.94), rgba(11, 28, 52, 0.66)),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=85");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
body.assistant-view #app {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}
.chat-page {
  display: grid;
  gap: 0;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #50657b;
  background: #2c3e52;
}
.chat-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #d1d4f9;
}
.chat-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-avatar.small {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}
.chat-head-copy {
  flex: 1;
}
.chat-kicker {
  color: #a9d7ff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.chat-head h1 {
  margin: 2px 0;
  color: #f4f7fa;
  font-size: 1.6rem;
}
.chat-head p {
  margin: 0;
  color: #c7d3de;
  font-size: 0.85rem;
}
.chat-window {
  overflow: hidden;
  border: 1px solid #50657b;
  border-radius: 16px;
  background: #20344a;
  box-shadow: 0 12px 28px rgba(5, 14, 25, 0.26);
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: min(52vh, 440px);
  min-height: 280px;
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #60778d transparent;
}
.chat-log::-webkit-scrollbar {
  width: 6px;
}
.chat-log::-webkit-scrollbar-track {
  background: transparent;
}
.chat-log::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #60778d;
}
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  max-width: 100%;
  animation: chat-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.chat-msg.user {
  justify-content: flex-end;
}
.chat-bubble {
  max-width: min(82%, 580px);
  padding: 12px 16px;
  border-radius: 16px;
  color: #f4f7fa;
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.chat-msg.bot .chat-bubble {
  border: 1px solid #50657b;
  border-bottom-left-radius: 5px;
  background: #2c3e52;
  box-shadow: 0 4px 12px rgba(5, 14, 25, 0.16);
}
.chat-msg.user .chat-bubble {
  border: 1px solid #a9d7ff;
  border-bottom-right-radius: 4px;
  background: #a9d7ff;
  color: #14263c;
  font-weight: 600;
}
.chat-bubble.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}
.chat-bubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9d7ff;
  animation: chat-dot 1s infinite ease-in-out;
}
.chat-bubble.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-bubble.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes chat-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.chat-suggestions {
  padding: 0 20px 14px;
  border-top: 1px solid rgba(169, 215, 255, 0.16);
}
.chat-suggestions > span {
  display: block;
  margin: 14px 0 0;
  color: #a9d7ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.chat-suggestions .chips {
  margin: 8px 0 0;
}
.chat-suggestions .chip {
  padding: 7px 11px;
  border-color: #60778d;
  background: #223447;
  color: #dce9f6;
  font-size: 0.76rem;
}
.chat-suggestions .chip:hover {
  border-color: #a9d7ff;
  background: #314b63;
  color: #fff;
  transform: translateY(-1px);
}
.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 20px 6px;
  border-top: 1px solid rgba(169, 215, 255, 0.16);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #60778d;
  border-radius: 10px;
  background: #142438;
  color: #f4f7fa;
  font-size: 0.9rem;
  outline: none;
}
.chat-form input::placeholder {
  color: #8fa1b3;
}
.chat-form input:focus {
  border-color: #a9d7ff;
  box-shadow: 0 0 0 3px rgba(169, 215, 255, 0.18);
}
.chat-form button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: #a9d7ff;
  color: #14263c;
  font-size: 0.85rem;
  font-weight: 800;
}
.chat-form button .svg-inline--fa {
  margin: 0;
}
.chat-form button:hover {
  background: #d4ebff;
  transform: translateY(-1px);
}
.chat-form input:disabled,
.chat-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.chat-note {
  margin: 0;
  padding: 0 20px 14px;
  color: #8fa1b3;
  font-size: 0.72rem;
}
.chat-note .svg-inline--fa {
  margin-right: 5px;
  color: #a9d7ff;
}
@media (max-width: 620px) {
  body.assistant-view #app {
    padding: 18px 12px 30px;
  }
  .chat-head {
    padding: 14px;
  }
  .chat-status {
    display: none;
  }
  .chat-log {
    padding: 14px;
  }
  .chat-suggestions,
  .chat-form {
    padding-left: 14px;
    padding-right:14px;
  }
  .chat-bubble {
    max-width: 88%;
  }
  .chat-form {
    flex-direction: column;
  }
}

/* --- Помощник: лек „flat messenger“ стил с отделни шрифтове --- */
.chat-window {
  border: 1px solid rgba(169, 215, 255, 0.2);
  border-radius: 20px;
  background: #14263c;
  box-shadow: none;
}
.chat-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(169, 215, 255, 0.12);
  background: transparent;
}
.chat-kicker,
.chat-head h1,
.chat-suggestions > span {
  font-family: "Outfit", sans-serif;
}
.chat-head p,
.chat-bubble,
.chat-form input,
.chat-form button,
.chat-suggestions .chip,
.chat-note {
  font-family: "Inter", sans-serif;
}
.chat-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}
.chat-head h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.chat-head p {
  font-size: 0.84rem;
}
.chat-avatar {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
}
.chat-log {
  gap: 14px;
  padding: 22px;
}
.chat-bubble {
  padding: 11px 15px;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 0.92rem;
}
.chat-msg.bot .chat-bubble {
  border-left: 2px solid #a9d7ff !important;
  border-radius: 4px 14px 14px 14px;
  background: rgba(169, 215, 255, 0.08);
}
.chat-msg.user .chat-bubble {
  border-radius: 14px 4px 14px 14px;
  background: rgba(169, 215, 255, 0.92);
  font-weight: 500;
}
.chat-suggestions {
  padding: 0 22px 16px;
  border-top: 1px solid rgba(169, 215, 255, 0.12);
}
.chat-suggestions > span {
  margin-top: 14px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.chat-suggestions .chip {
  padding: 6px 10px;
  border: 1px solid rgba(169, 215, 255, 0.35) !important;
  background: transparent !important;
  color: #c8d7e6 !important;
  font-size: 0.72rem;
}
.chat-suggestions .chip:hover {
  border-color: #a9d7ff !important;
  background: rgba(169, 215, 255, 0.12) !important;
}
.chat-form {
  padding: 14px 22px 8px;
  border-top: 1px solid rgba(169, 215, 255, 0.12);
}
.chat-form input {
  padding: 9px 13px;
  border-color: rgba(169, 215, 255, 0.25);
  border-radius: 11px;
  background: rgba(11, 28, 52, 0.55);
  font-size: 0.86rem;
}
.chat-form button {
  gap: 5px;
  padding: 8px 11px;
  border: 1px solid rgba(169, 215, 255, 0.45);
  border-radius: 10px;
  background: transparent;
  color: #a9d7ff;
  font-size: 0.76rem;
  font-weight: 700;
}
.chat-form button .svg-inline--fa {
  margin: 0;
  font-size: 0.8rem;
}
.chat-form button:hover {
  border-color: #a9d7ff;
  background: rgba(169, 215, 255, 0.12);
  color: #d4ebff;
}
.chat-note {
  padding: 0 22px 14px;
  font-size: 0.7rem;
}
@media (max-width: 620px) {
  .chat-head,
  .chat-log,
  .chat-suggestions,
  .chat-form,
  .chat-note {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* --- Бейдж за роля и заключено състояние --- */
.chat-role {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 5px 9px;
  border: 1px solid rgba(169, 215, 255, 0.35);
  border-radius: 20px;
  color: #a9d7ff;
  font-family: "Outfit", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
}
.chat-form button {
  min-height: 0 !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(169, 215, 255, 0.4) !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #a9d7ff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
.chat-form button .svg-inline--fa {
  margin: 0 !important;
  font-size: 0.75rem !important;
}
.chat-form button:hover:not(:disabled) {
  border-color: #a9d7ff !important;
  background: rgba(169, 215, 255, 0.12) !important;
  color: #d4ebff !important;
}
.chat-form button:disabled {
  border-color: rgba(169, 215, 255, 0.18) !important;
  color: #8fa1b3 !important;
  opacity: 0.7;
}
.chat-form input:disabled,
.chat-suggestions .chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 620px) {
  .chat-role {
    display: none;
  }
}

/* --- Чатът е директно върху фона на страницата, без панел --- */
body.assistant-view #app {
  max-width: none;
  padding: 28px min(6vw, 80px) 34px;
}
.chat-page {
  display: block;
}
.chat-window {
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.chat-head {
  padding: 0 0 18px !important;
  border: 0 !important;
  background: transparent !important;
}
.chat-log {
  height: calc(100vh - 430px);
  min-height: 300px;
  padding: 0 0 12px !important;
}
.chat-suggestions {
  padding: 12px 0 16px !important;
  border: 0 !important;
}
.chat-form {
  padding: 8px 0 6px !important;
  border: 0 !important;
}
.chat-form input {
  background: rgba(11, 28, 52, 0.45) !important;
}
.chat-note {
  padding: 0 !important;
}
.chat-role {
  display: none !important;
}
.chat-msg.bot .chat-bubble {
  background: rgba(22, 38, 63, 0.55) !important;
}
.chat-msg.user .chat-bubble {
  background: rgba(169, 215, 255, 0.88) !important;
}
@media (max-width: 620px) {
  body.assistant-view #app {
    padding: 20px 16px 28px;
  }
  .chat-log {
    height: calc(100vh - 400px);
  }
}

/* --- По-късо поле и бутон без рамка --- */
.chat-form {
  align-items: center;
  gap: 12px;
  max-width: 760px;
}
.chat-form input {
  flex: 0 1 560px !important;
  max-width: 560px !important;
}
.chat-form button,
.chat-form button:hover:not(:disabled),
.chat-form button:focus,
.chat-form button:disabled {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 6px 2px !important;
}
.chat-form button {
  flex: 0 0 auto;
  color: #a9d7ff !important;
}
.chat-form button:hover:not(:disabled),
.chat-form button:focus {
  color: #d4ebff !important;
}
.chat-form button:disabled {
  color: #8fa1b3 !important;
}
@media (max-width: 620px) {
  .chat-form input {
    flex: 1 1 auto !important;
    max-width: 100% !important;
  }
}

/* --- Нотификациите на сайта в цветовете на платформата --- */
.notice {
  border-color: rgba(169, 215, 255, 0.55) !important;
  background: #1c3149 !important;
  box-shadow: 0 12px 28px rgba(5, 14, 25, 0.35) !important;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem !important;
}
.notice .svg-inline--fa {
  color: #a9d7ff !important;
}

/* --- Нова страница „Тестове“ --- */
body.quiz-view .quiz-hero {
  min-height: 330px;
  padding: 44px 5vw 38px;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(11, 28, 52, 0.92), rgba(11, 28, 52, 0.62)),
    url("https://images.unsplash.com/photo-1457369804613-52c61a468e7d?auto=format&fit=crop&w=1600&q=85");
  background-position: center;
}
body.quiz-view .quiz-hero .home-hero-copy {
  display: grid;
  max-width: none;
  justify-items: center;
}
body.quiz-view .quiz-hero .home-hero-logo {
  width: min(320px, 70vw);
  margin: 0 0 18px;
}
body.quiz-view .quiz-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1;
}
.quiz-catalog {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 34px 0 64px;
}
.quiz-catalog-lead {
  margin: 0 0 18px;
  color: #c3d3e4;
  font-size: 0.95rem;
  text-align: center;
}
.quiz-filter {
  justify-content: center;
  margin: 0 0 28px;
}
.quiz-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.quiz-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(169, 215, 255, 0.18);
  border-radius: 16px;
  background: rgba(28, 49, 73, 0.72);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.quiz-card:hover {
  border-color: rgba(169, 215, 255, 0.5);
  transform: translateY(-3px);
}
.quiz-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #a9d7ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quiz-card-meta .svg-inline--fa {
  margin-right: 4px;
}
.quiz-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.3;
}
.quiz-card p {
  flex: 1;
  margin: 0;
  color: #c3d3e4;
  font-size: 0.86rem;
  line-height: 1.55;
}
.quiz-card-start {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #a9d7ff;
  border-radius: 10px;
  background: transparent;
  color: #a9d7ff;
  font-size: 0.8rem;
  font-weight: 800;
}
.quiz-card-start .svg-inline--fa {
  margin: 0;
}
.quiz-card-start:hover {
  border-color: #a9d7ff;
  background: #a9d7ff;
  color: #14263c;
}

/* --- По-голям въпрос и отговори --- */
body.quiz-view #app > .card:not(.quiz-gate-card) {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px 34px;
}
body.quiz-view #app > .card:not(.quiz-gate-card) h2 {
  margin: 22px 0 24px;
  font-size: 1.75rem;
  line-height: 1.4;
}
body.quiz-view .opt {
  min-height: 66px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border-radius: 12px !important;
  font-size: 1.02rem;
  line-height: 1.45;
}
body.quiz-view .opt .tag {
  padding: 5px 12px;
  font-size: 0.82rem;
}

/* --- Таймер на въпроса --- */
body.quiz-view .quiz-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(169, 215, 255, 0.4);
  border-radius: 20px;
  color: #a9d7ff;
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
body.quiz-view .quiz-timer .svg-inline--fa {
  margin: 0;
  font-size: 1rem;
}
body.quiz-view .quiz-timer.warn {
  border-color: #e8a13c;
  color: #e8a13c;
}
body.quiz-view .quiz-timer.warn .svg-inline--fa {
  animation: quiz-spin 0.35s linear infinite;
}
body.quiz-view .quiz-timer.danger {
  border-color: #ff5a5a;
  color: #ff5a5a;
}
body.quiz-view .quiz-timer.danger .svg-inline--fa {
  animation: quiz-spin 0.12s linear infinite;
}
@keyframes quiz-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 620px) {
  .quiz-cards {
    grid-template-columns: 1fr;
  }
  body.quiz-view #app > .card:not(.quiz-gate-card) {
    padding: 20px;
  }
  body.quiz-view #app > .card:not(.quiz-gate-card) h2 {
    font-size: 1.4rem;
  }
}

/* --- Опростено херо на Тестове --- */
body.quiz-view .quiz-hero {
  display: grid;
  width: 100vw;
  min-height: 300px;
  margin-left: calc(50% - 50vw);
  padding: 60px 5vw;
  place-items: center;
  text-align: center;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(11, 28, 52, 0.92), rgba(11, 28, 52, 0.62)),
    url("https://images.unsplash.com/photo-1457369804613-52c61a468e7d?auto=format&fit=crop&w=1600&q=85");
  background-position: center;
  background-size: cover;
}
.quiz-hero-inner {
  max-width: 760px;
}
.quiz-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
}
.quiz-hero p {
  margin: 14px 0 0;
  color: #c3d3e4;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
}
.quiz-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 20px;
  color: #b9c7d6;
  text-align: center;
}
.quiz-empty-emoji {
  display: block;
  color: #b9c7d6;
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
  transform: rotate(180deg);
}
.quiz-empty p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
}
@media (max-width: 620px) {
  body.quiz-view .quiz-hero {
    min-height: 240px;
    padding: 44px 18px;
  }
}

/* --- Херото ползва фона на страницата, без преход --- */
body.quiz-view .quiz-hero {
  min-height: 280px;
  background: transparent !important;
}
.quiz-filter .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.quiz-filter .chip .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
  font-size: 0.88rem;
}
.quiz-filter .chip.on .svg-inline--fa {
  color: #fff;
}
@media (max-width: 620px) {
  .quiz-filter .chip {
    font-size: 0.78rem;
  }
}

/* --- Филтрите веднага под заглавието --- */
body.quiz-view .quiz-hero {
  min-height: 240px;
  padding: 44px 5vw 16px;
}
body.quiz-view .quiz-catalog {
  padding-top: 2px;
}
body.quiz-view .quiz-cards > .quiz-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 280px;
  text-align: center;
}

/* --- Подредени карти и споделяне --- */
.quiz-card {
  gap: 12px;
  padding: 24px;
  border-color: rgba(169, 215, 255, 0.22);
  background: rgba(20, 38, 60, 0.82);
}
.quiz-card-meta {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(169, 215, 255, 0.16);
}
.quiz-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.25;
}
.quiz-card p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
}
.quiz-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.quiz-card-start,
.quiz-card-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}
.quiz-card-start {
  border: 1px solid #a9d7ff !important;
  background: transparent !important;
  color: #a9d7ff !important;
}
.quiz-card-start:hover {
  background: #a9d7ff !important;
  color: #14263c !important;
}
.quiz-card-share {
  border: 1px solid rgba(169, 215, 255, 0.35) !important;
  background: transparent !important;
  color: #c3d3e4 !important;
}
.quiz-card-share:hover {
  border-color: #a9d7ff !important;
  background: rgba(169, 215, 255, 0.12) !important;
  color: #a9d7ff !important;
}
.quiz-card-start .svg-inline--fa,
.quiz-card-share .svg-inline--fa {
  margin: 0;
}
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 16, 28, 0.75);
  backdrop-filter: blur(4px);
}
.share-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid rgba(169, 215, 255, 0.35);
  border-radius: 18px;
  background: #1c3149;
  color: #f4f7fa;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.share-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(169, 215, 255, 0.1) !important;
  color: #a9d7ff !important;
  font-size: 0.85rem;
}
.share-close .svg-inline--fa {
  margin: 0;
}
.share-kicker {
  color: #a9d7ff;
  font-family: "Outfit", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.share-dialog h3 {
  margin: 8px 0 6px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.3;
}
.share-dialog p {
  margin: 0 0 16px;
  color: #c3d3e4;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
}
.share-qr {
  display: grid;
  place-items: center;
  width: max-content;
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}
.share-qr img {
  display: block;
  width: 220px;
  height: 220px;
}
.share-link {
  display: flex;
  gap: 8px;
}
.share-link input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #60778d;
  border-radius: 9px;
  background: #142438;
  color: #f4f7fa;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
}
.share-link button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid #a9d7ff !important;
  border-radius: 9px;
  background: transparent !important;
  color: #a9d7ff !important;
  font-size: 0.78rem;
  font-weight: 700;
}
.share-link button:hover {
  background: rgba(169, 215, 255, 0.12) !important;
}
.share-link button .svg-inline--fa {
  margin: 0;
}
@media (max-width: 620px) {
  .share-qr img {
    width: 190px;
    height: 190px;
  }
  .share-link {
    flex-direction: column;
  }
}

/* --- Линкът и бутонът Копирай без дебела рамка --- */
.share-link input {
  border-color: rgba(169, 215, 255, 0.25);
  font-family: "Inter", sans-serif;
}
.share-link button {
  border: 0 !important;
  padding: 7px 4px !important;
  background: transparent !important;
  color: #a9d7ff !important;
  font-family: "Inter", sans-serif;
}
.share-link button:hover {
  background: transparent !important;
  color: #d4ebff !important;
}

/* --- Страница за споделен тест --- */
.quiz-detail {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 40px 0 64px;
}
.quiz-detail-card {
  width: min(620px, 100%);
  padding: 34px;
  border: 1px solid rgba(169, 215, 255, 0.22);
  border-radius: 18px;
  background: rgba(20, 38, 60, 0.82);
  text-align: center;
}
.quiz-detail-kicker {
  color: #a9d7ff;
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.quiz-detail h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
}
.quiz-detail-desc {
  margin: 0 0 24px;
  color: #c3d3e4;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}
.quiz-detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid rgba(169, 215, 255, 0.16);
  border-bottom: 1px solid rgba(169, 215, 255, 0.16);
}
.quiz-detail-meta > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(169, 215, 255, 0.08);
  color: #dce9f6;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
}
.quiz-detail-meta .svg-inline--fa {
  margin: 0;
  color: #a9d7ff;
}
.quiz-detail-ask {
  margin: 24px 0 16px;
  color: #f4f7fa;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}
.quiz-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.quiz-detail-start,
.quiz-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}
.quiz-detail-start {
  border: 1px solid #a9d7ff !important;
  background: transparent !important;
  color: #a9d7ff !important;
}
.quiz-detail-start:hover {
  background: #a9d7ff !important;
  color: #14263c !important;
}
.quiz-detail-back {
  border: 1px solid rgba(169, 215, 255, 0.3) !important;
  background: transparent !important;
  color: #c3d3e4 !important;
}
.quiz-detail-back:hover {
  border-color: #a9d7ff !important;
  color: #a9d7ff !important;
}
.quiz-detail-start .svg-inline--fa,
.quiz-detail-back .svg-inline--fa {
  margin: 0;
}
@media (max-width: 620px) {
  .quiz-detail-card {
    padding: 24px;
  }
}

/* --- Двуфакторен вход и защити --- */
.auth2fa-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 16, 28, 0.75);
  backdrop-filter: blur(4px);
}
.auth2fa-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 26px;
  border: 1px solid rgba(169, 215, 255, 0.35);
  border-radius: 18px;
  background: #1c3149;
  color: #f4f7fa;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.auth2fa-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(169, 215, 255, 0.1) !important;
  color: #a9d7ff !important;
}
.auth2fa-close .svg-inline--fa {
  margin: 0;
}
.auth2fa-kicker {
  color: #a9d7ff;
  font-family: "Outfit", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.auth2fa-dialog h3 {
  margin: 8px 0 6px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
}
.auth2fa-dialog p,
.auth2fa-secret,
.twofa-pending {
  color: #c3d3e4;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  line-height: 1.55;
}
.auth2fa-dialog input {
  width: 100%;
  margin: 14px 0 8px;
  padding: 10px 12px;
  border: 1px solid #60778d;
  border-radius: 10px;
  background: #142438;
  color: #f4f7fa;
  font-family: "Inter", sans-serif;
  text-align: center;
}
.auth2fa-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 9px 14px;
  border: 1px solid #a9d7ff !important;
  border-radius: 10px;
  background: transparent !important;
  color: #a9d7ff !important;
  font-size: 0.82rem;
  font-weight: 700;
}
.auth2fa-action:hover {
  background: #a9d7ff !important;
  color: #14263c !important;
}
.auth2fa-action .svg-inline--fa {
  margin: 0;
}
.auth2fa-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 8px auto;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}
.auth2fa-secret {
  word-break: break-all;
}
.auth2fa-secret b {
  color: #a9d7ff;
}
.auth2fa-recovery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 14px 0;
}
.auth2fa-recovery code {
  padding: 7px;
  border-radius: 6px;
  background: #142438;
  color: #a9d7ff;
  font-size: 0.78rem;
}
.twofa-button {
  width: 100% !important;
  font-size: 0.76rem !important;
}
.twofa-button .svg-inline--fa {
  margin-right: 5px;
  color: #a9d7ff;
}
.twofa-pending {
  margin: 0 0 8px;
  font-size: 0.74rem;
}
#captchaRow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#captchaRow[hidden] {
  display: none;
}
#captchaQuestion {
  color: #a9d7ff;
}
@media (max-width: 620px) {
  .auth2fa-recovery {
    grid-template-columns: 1fr;
  }
}

/* --- „Запомни ме“ --- */
.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: #dce9f6;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
}
body .auth-fields .remember-row input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(169, 215, 255, 0.55) !important;
  border-radius: 4px !important;
  background: rgba(16, 30, 49, 0.72) !important;
  cursor: pointer;
  position: relative;
}
body .auth-fields .remember-row input:checked {
  border-color: #a9d7ff !important;
  background: #a9d7ff !important;
}
body .auth-fields .remember-row input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #14263c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.remember-row input:focus-visible {
  outline: 2px solid #a9d7ff;
  outline-offset: 2px;
}

/* --- Помощник без активен профил --- */
.assistant-gate {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 60vh;
  padding: 40px 20px;
  text-align: center;
}
.assistant-gate-emoji {
  color: #b9c7d6;
  font-family: "Inter", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
  transform: rotate(180deg);
}
.assistant-gate h2 {
  margin: 0;
  color: #f4f7fa;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
}
.assistant-gate p {
  margin: 0;
  color: #c3d3e4;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}
.assistant-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid #a9d7ff !important;
  border-radius: 10px;
  background: transparent !important;
  color: #a9d7ff !important;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}
.assistant-gate-btn:hover {
  background: #a9d7ff !important;
  color: #14263c !important;
}
.assistant-gate-btn .svg-inline--fa {
  margin: 0;
}

/* --- По-силен стил на прозорците за 2FA --- */
.auth2fa-modal {
  background: rgba(6, 15, 28, 0.86) !important;
  backdrop-filter: blur(8px) !important;
}
.auth2fa-dialog {
  width: min(440px, 100%);
  padding: 32px 30px;
  overflow: hidden;
  border: 1px solid rgba(169, 215, 255, 0.45) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #1d3a57, #152a41) !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.auth2fa-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a9d7ff, #6fa8d6, #a9d7ff);
}
.auth2fa-kicker {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.auth2fa-dialog h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth2fa-dialog p,
.auth2fa-secret {
  font-family: "Inter", sans-serif;
  color: #d3e0ec;
}
.auth2fa-dialog input {
  padding: 14px !important;
  border-color: rgba(169, 215, 255, 0.45) !important;
  background: #101f33 !important;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.22em;
}
.auth2fa-action {
  padding: 11px 18px !important;
  border-color: #a9d7ff !important;
  background: #a9d7ff !important;
  color: #14263c !important;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}
.auth2fa-action:hover {
  background: #d4ebff !important;
  color: #14263c !important;
}
.auth2fa-close {
  width: 36px;
  height: 36px;
  background: rgba(169, 215, 255, 0.16) !important;
}
.auth2fa-qr {
  border: 1px solid rgba(169, 215, 255, 0.3);
}
.auth2fa-recovery {
  gap: 8px;
}
.auth2fa-code {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(169, 215, 255, 0.2);
  border-radius: 10px;
  background: #12243a;
  text-align: left;
}
.auth2fa-code small {
  color: #8fa1b3;
  font-family: "Outfit", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth2fa-code code {
  padding: 0;
  background: transparent;
  color: #a9d7ff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

/* --- 2FA: тъмен, неутрален и ъгловат стил --- */
.auth2fa-modal {
  background: rgba(4, 10, 18, 0.9) !important;
  backdrop-filter: blur(3px) !important;
}
.auth2fa-dialog {
  padding: 28px 26px;
  border: 1px solid #2c3e50 !important;
  border-radius: 10px !important;
  background: #101c2b !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7) !important;
}
.auth2fa-dialog::before {
  display: none !important;
}
.auth2fa-kicker {
  color: #8fa3b7 !important;
  letter-spacing: 0.12em !important;
}
.auth2fa-dialog h3 {
  color: #e8edf3 !important;
  font-size: 1.45rem !important;
}
.auth2fa-dialog p,
.auth2fa-secret {
  color: #a7b6c5 !important;
}
.auth2fa-secret b {
  color: #c9d8e6 !important;
}
.auth2fa-dialog input {
  padding: 12px !important;
  border-color: #2c3e50 !important;
  background: #0a1420 !important;
  color: #e8edf3 !important;
  letter-spacing: 0.18em !important;
}
.auth2fa-action {
  padding: 10px 16px !important;
  border-color: #3c556b !important;
  background: #1b3247 !important;
  color: #c9d8e6 !important;
}
.auth2fa-action:hover {
  background: #25435d !important;
  color: #e8edf3 !important;
}
.auth2fa-close {
  background: rgba(143, 163, 183, 0.12) !important;
  color: #9fb2c4 !important;
}
.auth2fa-qr {
  border-color: #2c3e50 !important;
}
.auth2fa-code {
  border-color: #24384c !important;
  border-radius: 8px !important;
  background: #0a1420 !important;
}
.auth2fa-code small {
  color: #7e93a8 !important;
}
.auth2fa-code code {
  color: #c9d8e6 !important;
}

/* --- Избор на класове при създаване на профил --- */
body.profile-view .grade-preferences {
  border-color: #50657b !important;
  border-radius: 10px;
  background: rgba(34, 52, 71, 0.65) !important;
}
body.profile-view .grade-preferences > b {
  color: #f4f7fa !important;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
}
body.profile-view .grade-preferences > span {
  color: #aebeca !important;
  font-family: "Inter", sans-serif;
}
body.profile-view .grade-preferences .grade-choice {
  border-color: #60778d !important;
  border-radius: 8px !important;
  background: #223447 !important;
  color: #dce9f6 !important;
  box-shadow: none !important;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
}
body.profile-view .grade-preferences .grade-choice:hover {
  border-color: #a9d7ff !important;
  background: #314b63 !important;
  color: #fff !important;
}
body.profile-view .grade-preferences .grade-choice.on {
  border-color: #a9d7ff !important;
  background: #a9d7ff !important;
  color: #14263c !important;
  box-shadow: none !important;
}
body.profile-view .grade-preferences .grade-choice.on:hover {
  background: #d4ebff !important;
  color: #14263c !important;
}

/* --- 2FA: подреден компактен прозорец --- */
.auth2fa-modal {
  background: rgba(6, 12, 20, 0.97) !important;
  backdrop-filter: none !important;
}
.auth2fa-dialog {
  width: min(400px, 100%);
  padding: 24px;
  text-align: left !important;
}
.auth2fa-kicker {
  display: block;
  text-align: left;
}
.auth2fa-dialog h3 {
  margin: 8px 0 8px !important;
  text-align: left;
  font-size: 1.35rem !important;
}
.auth2fa-dialog p {
  margin: 0 0 16px !important;
  text-align: left;
  line-height: 1.55;
}
.auth2fa-dialog input {
  margin: 0 0 12px !important;
  text-align: left !important;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
}
.auth2fa-dialog input::placeholder {
  color: #7e93a8;
  letter-spacing: 0;
}
.auth2fa-action {
  width: 100%;
  justify-content: center;
  margin-top: 0 !important;
}
.auth2fa-recovery {
  margin-top: 12px;
}

/* --- Бутон „Известия“: като линковете в навигацията --- */
header nav button.notification-bell {
  border-radius: 11px !important;
  background: transparent !important;
}
header nav button.notification-bell::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #a9d7ff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
header nav button.notification-bell:hover {
  border-color: transparent !important;
  background: transparent !important;
  color: #a9d7ff !important;
  transform: none !important;
  box-shadow: none !important;
}
header nav button.notification-bell:hover::after {
  transform: scaleX(1);
}

/* --- Отделна страница за публикация --- */
.home-post-title {
  display: block;
  color: inherit;
  text-decoration: none;
}
.home-post-title:hover h2 {
  color: #a9d7ff;
}
.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #a9d7ff;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.post-read-more .svg-inline--fa {
  margin: 0;
}
.post-read-more:hover {
  color: #d4ebff;
}
body.post-view {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(11, 28, 52, 0.94), rgba(11, 28, 52, 0.66)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=85");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
body.post-view #app {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}
.post-page {
  display: grid;
  gap: 20px;
}
.post-page-top {
  padding: 20px 0 26px;
  border-bottom: 1px solid rgba(169, 215, 255, 0.2);
}
.post-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9d7ff;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.post-page-back .svg-inline--fa {
  margin: 0;
}
.post-page-back:hover {
  color: #d4ebff;
}
.post-page-kicker {
  display: block;
  margin-top: 20px;
  color: #a9d7ff;
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.post-page h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}
.post-page-meta {
  color: #c3d3de;
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
}
.post-page-meta .svg-inline--fa {
  margin-right: 6px;
  color: #a9d7ff;
}
.post-page-card {
  overflow: hidden;
  border: 1px solid #50657b;
  border-radius: 16px;
  background: rgba(28, 49, 73, 0.85);
}
.post-page-card .post-media-carousel {
  max-height: 420px;
}
.post-page-text {
  padding: 26px;
  color: #e6eef6;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}
.post-missing {
  padding: 32px;
  text-align: center;
}
.post-missing a {
  color: #a9d7ff;
}
@media (max-width: 620px) {
  body.post-view #app {
    padding: 18px 14px 40px;
  }
  .post-page-text {
    padding: 18px;
  }
}
body.post-view .post-page-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
body.post-view .post-page-row .post-tag {
  margin: 0;
  flex: 0 0 auto;
}
body.post-view .post-page-back {
  flex: 0 0 auto;
}

/* --- Правни страници: чиста подредба без големи иконки --- */
body.legal-view .legal {
  max-width: 860px;
  padding: 30px 0 50px;
}
body.legal-view .legal-top {
  padding: 26px 0 24px;
  border-bottom: 1px solid rgba(169, 215, 255, 0.18);
  text-align: center;
}
.legal-kicker {
  color: #a9d7ff;
  font-family: "Outfit", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
body.legal-view .legal-top h1 {
  margin: 8px 0 6px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
body.legal-view .legal-updated {
  margin: 0;
  color: #9fb2c4;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
}
body.legal-view .legal-tabs {
  justify-content: center;
  gap: 6px;
  margin: 22px 0 0;
}
body.legal-view .legal-tabs a {
  padding: 8px 14px;
  border: 1px solid rgba(169, 215, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9d8e6;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}
body.legal-view .legal-tabs a:hover {
  background: rgba(169, 215, 255, 0.1);
  color: #fff;
  transform: none;
}
body.legal-view .legal-tabs a.on {
  border-color: #a9d7ff;
  background: #a9d7ff;
  color: #14263c;
}
body.legal-view .legal-card {
  padding: 28px 32px;
  border: 1px solid rgba(169, 215, 255, 0.16);
  border-radius: 14px;
  background: rgba(16, 28, 45, 0.75);
  box-shadow: 0 20px 50px rgba(2, 12, 28, 0.35);
  backdrop-filter: none;
}
body.legal-view .legal-card h2 {
  gap: 12px;
  margin: 28px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(169, 215, 255, 0.12);
  color: #f4f7fa;
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}
body.legal-view .legal-card > h2:first-child {
  margin-top: 8px;
}
body.legal-view .legal-card h2 span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(169, 215, 255, 0.3);
  border-radius: 7px;
  color: #a9d7ff;
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}
body.legal-view .legal-card p {
  color: #c9d8e6;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
}
body.legal-view .legal-card table {
  margin: 10px 0 14px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
}
body.legal-view .legal-card th,
body.legal-view .legal-card td {
  border-color: rgba(169, 215, 255, 0.14);
}
body.legal-view .legal-card th {
  background: rgba(169, 215, 255, 0.1);
  color: #dce9f6;
}
body.legal-view .legal-back {
  margin-top: 26px;
  padding: 9px 14px;
  border: 1px solid #a9d7ff !important;
  border-radius: 9px;
  background: transparent !important;
  color: #a9d7ff !important;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}
body.legal-view .legal-back:hover {
  background: #a9d7ff !important;
  color: #14263c !important;
  transform: none;
}
@media (max-width: 620px) {
  body.legal-view .legal-card {
    padding: 20px;
  }
  body.legal-view .legal-tabs a {
    padding: 7px 10px;
    font-size: 0.76rem;
  }
}
body.legal-view header {
  border-bottom: 0 !important;
}
body.legal-view nav a::after,
body.legal-view nav button.notification-bell::after {
  display: none !important;
}
body.legal-view .legal-card {
  border: 0 !important;
  box-shadow: none !important;
}
body.legal-view .legal-top,
body.legal-view .legal-card h2 {
  border-bottom: 0 !important;
}

/* --- Несъществуваща страница --- */
body.notfound-view {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(11, 28, 52, 0.94), rgba(11, 28, 52, 0.66)),
    url("https://images.unsplash.com/photo-1457369804613-52c61a468e7d?auto=format&fit=crop&w=1600&q=85");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
body.notfound-view #app {
  display: grid;
  min-height: 60vh;
  place-items: center;
  padding: 40px 18px;
}
.notfound {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.notfound-emoji {
  color: #b9c7d6;
  font-family: "Inter", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
  transform: rotate(180deg);
}
.notfound h1 {
  margin: 0;
  color: #f4f7fa;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
}
.notfound a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid #a9d7ff;
  border-radius: 10px;
  color: #a9d7ff;
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}
.notfound a:hover {
  background: #a9d7ff;
  color: #14263c;
}
.notfound a .svg-inline--fa {
  margin: 0;
}

/* --- Админски панел --- */
body.admin-view {
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(11, 28, 52, 0.94), rgba(11, 28, 52, 0.66)),
    url("https://images.unsplash.com/photo-1457369804613-52c61a468e7d?auto=format&fit=crop&w=1600&q=85");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
body.admin-view #app {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}
.admin-kicker {
  color: #a9d7ff;
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.admin-head {
  padding: 18px 0 26px;
  text-align: center;
}
.admin-head h1,
.admin-gate h1 {
  margin: 8px 0 6px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.admin-head p,
.admin-gate p {
  margin: 0;
  color: #c3d3de;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.admin-stats div {
  padding: 18px;
  border: 1px solid rgba(169, 215, 255, 0.2);
  border-radius: 12px;
  background: rgba(20, 38, 60, 0.75);
  text-align: center;
}
.admin-stats b {
  display: block;
  color: #a9d7ff;
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}
.admin-stats span {
  color: #c3d3de;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
}
.admin-section {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(169, 215, 255, 0.18);
  border-radius: 12px;
  background: rgba(20, 38, 60, 0.75);
}
.admin-section h2 {
  margin: 0 0 12px;
  color: #f4f7fa;
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid rgba(169, 215, 255, 0.12);
}
.admin-row:last-child {
  border-bottom: 0;
}
.admin-row b {
  color: #f4f7fa;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
}
.admin-row small {
  display: block;
  color: #9fb2c4;
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
}
.admin-row select,
.admin-row button {
  padding: 7px 10px;
  border: 1px solid #60778d !important;
  border-radius: 8px;
  background: #223447 !important;
  color: #dce9f6 !important;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
}
.admin-row button {
  cursor: pointer;
}
.admin-row button:hover {
  border-color: #a9d7ff !important;
  color: #a9d7ff !important;
}
.admin-empty {
  margin: 0;
  color: #9fb2c4;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
}
.admin-gate {
  max-width: 420px;
  margin: 60px auto;
  padding: 30px;
  border: 1px solid rgba(169, 215, 255, 0.2);
  border-radius: 14px;
  background: rgba(20, 38, 60, 0.8);
  text-align: center;
}
.admin-gate .auth-fields {
  margin-top: 20px;
}
.admin-gate a {
  display: inline-block;
  margin-top: 16px;
  color: #a9d7ff;
}
@media (max-width: 620px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Бутони за управление на профили --- */
body.profile-view .user-actions,
body.admin-view .admin-row {
  gap: 8px;
}
body.profile-view .user-actions .tag {
  background: #314b63 !important;
  color: #dce9f6 !important;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}
body.profile-view .user-delete,
body.admin-view .admin-row button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 10px !important;
  border: 1px solid rgba(240, 145, 145, 0.45) !important;
  border-radius: 8px !important;
  background: rgba(240, 145, 145, 0.08) !important;
  color: #f6b9b9 !important;
  font-family: "Inter", sans-serif;
  font-size: 0.74rem !important;
  font-weight: 700;
  line-height: 1.2;
}
body.profile-view .user-delete:hover,
body.admin-view .admin-row button:hover {
  border-color: #f09191 !important;
  background: rgba(240, 145, 145, 0.18) !important;
  color: #ffb3b3 !important;
}
body.profile-view .user-delete .svg-inline--fa,
body.admin-view .admin-row button .svg-inline--fa {
  margin: 0;
  font-size: 0.78rem;
}
body.profile-view .user-actions .manage-button,
body.admin-view .admin-row select {
  min-width: 0;
  padding: 6px 10px !important;
  border: 1px solid #60778d !important;
  border-radius: 8px !important;
  background: #223447 !important;
  color: #dce9f6 !important;
  font-family: "Inter", sans-serif;
  font-size: 0.74rem !important;
}
body.profile-view .user-actions select,
body.admin-view .admin-row select {
  color-scheme: dark;
}
body.profile-view .user-actions select option,
body.admin-view .admin-row select option {
  background: #223447 !important;
  color: #dce9f6 !important;
}
body.profile-view .user-actions select option:hover,
body.profile-view .user-actions select option:checked,
body.admin-view .admin-row select option:hover,
body.admin-view .admin-row select option:checked {
  background: #314b63 !important;
  color: #fff !important;
}
body.quiz-view .quiz-filter {
  margin-top: 0;
  margin-bottom: 22px;
}
