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

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

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

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

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

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

/* Quiz — one handbook page per question */

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

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

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

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

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

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

.at-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; }

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

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

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

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

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

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

/* Result — the journal card */

.grp-ego { --grp: var(--ego); }
.grp-order { --grp: var(--order); }
.grp-social { --grp: var(--social); }
.grp-freedom { --grp: var(--freedom); }

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

.at-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; }

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

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

.at-res-tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }

.at-res-index { background: #fffdf8; border: 1px solid var(--line); border-top: 3px solid var(--tri, var(--gold)); border-radius: 12px; padding: 14px 16px; }

.at-res-index:nth-child(1) { --tri: var(--gold); }
.at-res-index:nth-child(2) { --tri: var(--accent); }
.at-res-index:nth-child(3) { --tri: var(--freedom); }

.at-index-label { font-size: 12px; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--tri, var(--gold)); margin: 0 0 6px; }

.at-index-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }

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

.at-res-shadow { 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; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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