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

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

.sd-note { background: #fffdf8; border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; margin: 24px 0 0; }

.sd-note-main { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 6px; max-width: 70ch; }
.sd-note-main strong { color: var(--ink); }

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

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

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

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

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

.sd-q { font-family: var(--serif); font-size: 25px; line-height: 1.3; margin: 0 0 20px; color: var(--ink); font-weight: 700; max-width: 62ch; }

.sd-opts { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 640px; }

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

.sd-opt:hover { border-color: var(--accent); background: #fdf1e7; }
.sd-opt:active { transform: scale(.985); }
.sd-opt-selected { border-color: var(--accent); background: #fdf1e7; box-shadow: inset 0 0 0 1px var(--accent); }

.sd-quiz-nav { margin-top: 16px; }
.sd-back { min-height: 42px; padding: 8px 18px; font-size: 14px; }

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

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

/* Result */

.sd-res-head { margin-bottom: 18px; }

.sd-res-name { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1.15; color: var(--ink); margin: 0 0 12px; font-weight: 700; }
.sd-res-name a { color: inherit; text-decoration: underline; text-decoration-color: rgba(194,86,47,.4); text-underline-offset: 6px; }
.sd-res-name a:hover { text-decoration-color: var(--accent); }

.sd-overall { color: var(--ink); font-size: 16px; line-height: 1.6; margin: 0; max-width: 70ch; }

.sd-counter { background: #fbf3e4; border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 16px 0 20px; color: #4a3a28; font-size: 15px; line-height: 1.6; }
.sd-counter a { color: var(--accent-deep); }

.sd-profile { margin: 8px 0 20px; border-top: 1px dashed rgba(43,33,24,.2); padding-top: 18px; }

.sd-g { display: block; margin-bottom: 14px; padding: 10px 14px 12px; border: 1px solid transparent; border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.sd-g:hover { border-color: var(--line); background: #fffdf8; text-decoration: none; }
.sd-g-lead { border-color: rgba(194,86,47,.35); background: #fdf7f0; }

.sd-g-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }

.sd-g-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.sd-g-name::after { content: " →"; color: var(--accent); font-weight: 500; opacity: 0; transition: opacity .15s ease; }
.sd-g:hover .sd-g-name::after { opacity: 1; }

.sd-g-val { font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.sd-g-barrow { display: flex; align-items: center; gap: 10px; }

.sd-g-track { height: 8px; }

.sd-g-fill { background: var(--accent); display: block; transform-origin: left; animation: sd-bar .5s ease both; }

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

.sd-g-note { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 8px 0 0; }

.sd-res-next { background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }

.sd-next-title { font-size: 14px; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-deep); margin: 0 0 10px; }

.sd-next-link { display: block; color: var(--ink); font-size: 15px; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sd-next-link:last-child { border-bottom: none; }
.sd-next-link::after { content: " →"; color: var(--accent); }
.sd-next-link:hover { color: var(--accent); text-decoration: none; }

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

.sd-share-wrap { display: inline-flex; align-items: center; gap: 10px; }
.sd-share-msg { font-size: 13px; color: #2f7d4f; }

.sd-fine { font-size: 13px; color: #8a7a68; margin: 10px 0 0; line-height: 1.55; }
.sd-fine a { color: var(--muted); border-bottom: 1px solid var(--line); }
.sd-fine a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .sd-panel { padding: 20px 16px; }
  .sd-note { padding: 12px 14px; }
  .sd-note-main { font-size: 14px; }
  .sd-q { font-size: 20px; }
  .sd-opt { font-size: 14px; padding: 10px 13px; min-height: 44px; }
  .sd-res-name { font-size: 26px; }
  .sd-g { padding: 8px 10px 10px; }
  .sd-res-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .sd-animate .sd-q, .sd-animate .sd-opts, .sd-g-fill { animation: none; }
}