.cs-panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 40px; box-shadow: var(--shadow-lg); }

.cs-cover-rule { height: 6px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); margin-bottom: 28px; }

.cs-kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 12px; }

.cs-heading { font-family: var(--serif); font-size: 32px; line-height: 1.15; color: var(--ink); margin: 0 0 12px; font-weight: 700; }

.cs-text { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 24px; max-width: 62ch; }

.cs-fine { font-size: 13px; color: #8a7a68; margin: 12px 0 0; }

/* Quiz — one handbook page per question */

.cs-progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.cs-track { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }

.cs-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .2s ease; }

.cs-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.cs-q { font-family: var(--serif); font-size: 26px; line-height: 1.25; margin: 0 0 20px; color: var(--ink); font-weight: 700; }

.cs-opts { display: grid; gap: 10px; }

.cs-opt { text-align: left; background: #fffdf8; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 18px; font: 400 16px/1.5 var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease; min-height: 44px; }

.cs-opt:hover { border-color: var(--accent); background: #fdf1e7; }

.cs-opt:active { transform: scale(.99); }

.cs-opt-selected { border-color: var(--accent); background: #fdf1e7; box-shadow: inset 0 0 0 1px var(--accent); }

.cs-quiz-nav { margin-top: 16px; display: flex; justify-content: flex-start; }

@keyframes cs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cs-animate .cs-q, .cs-animate .cs-opts { animation: cs-in .3s ease both; }
.cs-animate .cs-opts { animation-delay: .05s; }

/* Result — the journal card */

.cs-res-head { margin-bottom: 8px; }

.cs-res-name { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1.1; color: var(--ink); margin: 0 0 8px; font-weight: 700; }

.cs-res-tag { font-size: 18px; color: var(--muted); margin: 0 0 14px; }

.cs-stamp { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); background: var(--accent); border-radius: 999px; padding: 5px 14px; }

.cs-res-best { color: var(--ink); margin: 16px 0; }

.cs-res-tip { background: #fbf3e4; border-left: 3px solid var(--gold); padding: 14px 16px; border-radius: 0 12px 12px 0; margin: 16px 0; color: #4a3a28; font-size: 15px; line-height: 1.6; }

.cs-res-shines { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

.cs-profile { margin: 24px 0; border-top: 1px dashed rgba(43,33,24,.2); padding-top: 16px; }

.cs-profile-title { font-weight: 600; color: var(--ink); margin: 0 0 12px; font-size: 15px; }

.cs-profile-row { display: grid; grid-template-columns: 84px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }

.cs-profile-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }

.cs-profile-bar { display: block; height: 100%; background: var(--accent); border-radius: 999px; transform-origin: left; animation: cs-bar .5s ease both; }

@keyframes cs-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.cs-profile-top .cs-profile-label, .cs-profile-top .cs-profile-val { color: var(--ink); font-weight: 600; }

.cs-profile-val { text-align: right; font-variant-numeric: tabular-nums; }

.cs-res-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; align-items: center; }

.cs-share-wrap { display: inline-flex; align-items: center; gap: 10px; }

.cs-share-msg { font-size: 13px; color: #2f7d4f; }

@media (max-width: 640px) {
  .cs-panel { padding: 24px 16px; }
  .cs-res-name { font-size: 34px; }
  .cs-heading { font-size: 24px; }
  .cs-q { font-size: 21px; }
  .cs-profile-row { grid-template-columns: 72px 1fr 38px; }
  .cs-res-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-animate .cs-q, .cs-animate .cs-opts, .cs-profile-bar { animation: none; }
}