.cfs-shell {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-shell);
  background:
    radial-gradient(900px 420px at 15% 8%, rgba(10, 122, 164, 0.12), transparent 62%),
    radial-gradient(700px 420px at 85% 92%, rgba(124, 184, 171, 0.1), transparent 65%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 253, 0.99));
}

.cfs-header h1 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 760;
  letter-spacing: 0.2px;
}

.cfs-header p {
  margin: 0.4rem 0 0;
  color: var(--app-text-muted);
}

.cfs-source-link {
  color: var(--app-accent-strong);
}

.cfs-question,
.cfs-result,
.cfs-reference {
  margin-top: 1rem;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  box-shadow: var(--app-shadow-card);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 253, 0.99));
  color: var(--app-text);
  padding: 1.15rem;
}

.cfs-progress-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cfs-progress {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(10, 122, 164, 0.34);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.82rem;
  color: var(--app-accent-strong);
  background: rgba(10, 122, 164, 0.1);
  white-space: nowrap;
}

.cfs-progress-bar {
  flex: 1;
  min-width: 180px;
  height: 10px;
  border-radius: 999px;
  background: rgba(51, 63, 72, 0.14);
}

.cfs-progress-bar .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #85afc5, #0a7aa4);
}

.cfs-question h2,
.cfs-result h2 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  line-height: 1.4;
}

.cfs-helper {
  margin: 0;
  color: var(--app-text-muted);
  font-size: 0.9rem;
}

.cfs-result-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cfs-result p {
  color: var(--app-text-muted);
}

.cfs-result-score {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(145deg, #28528e, #0a7aa4);
  border: 1px solid rgba(10, 122, 164, 0.48);
}

.cfs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cfs-actions .btn {
  min-width: 110px;
}

.cfs-reference h3 {
  margin-bottom: 0.8rem;
  font-size: 0.94rem;
  color: var(--app-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cfs-reference ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cfs-reference li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.78);
}

.cfs-score-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(10, 122, 164, 0.28);
  background: rgba(206, 231, 239, 0.5);
  color: var(--app-accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.13rem 0.44rem;
}

.cfs-reference strong {
  display: block;
  margin-top: 0.36rem;
  font-size: 0.88rem;
}

.cfs-reference p {
  margin: 0.24rem 0 0;
  color: var(--app-text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.cfs-elder-illustration {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.cfs-elder-illustration-lg {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
}

@media (max-width: 992px) {
  .cfs-reference ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cfs-result-main {
    align-items: flex-start;
  }

  .cfs-elder-illustration-lg {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }
}
