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

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

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

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

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

/* Quiz — one handbook page per question */

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Result — the type card */

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

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

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

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

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

.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 4px; }

.mt-chips-label { font-size: 13px; color: var(--muted); font-weight: 600; }

.mt-chip { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1.5px solid var(--grp, var(--line)); border-radius: 999px; padding: 5px 13px; background: #fffdf8; }

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

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

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

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

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

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

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

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

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

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

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

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

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

.mt-res-split { font-size: 13px; color: #8a7a68; margin: 12px 0 0; }

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

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