﻿@property --progress {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

@keyframes screen-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable; /* reserve gutter permanently — prevents layout shift on overflow change */
  scrollbar-width: none;    /* Firefox: hide scrollbar visually */
}
html::-webkit-scrollbar { display: none; } /* Chrome/Safari: hide scrollbar visually */

body {
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: #2c2c2c;
  min-height: 100vh;
  overflow: hidden;
}

#app {
  position: relative;
  width: min(100vw, 1100px);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.screen {
  display: none;
  padding: 14px 24px;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

.screen.active {
  display: flex;
  animation: screen-fade-in 0.3s ease both;
}

h1,
h2,
h3 {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
}

.mark-title {
  font-size: 30px;
  margin-bottom: 2px;
  max-width: 1060px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark-title-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #4e4d4d;
}

.mark-title-icon svg {
  width: 28px;
  height: 28px;
}

.mark-heading {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto 8px;
}

.mark-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: #4e4d4d;
  line-height: 1.35;
}

.section-progress {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto 8px;
}

.section-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e8ebe5;
  overflow: hidden;
}

.section-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8cbc4b 0%, #7eae40 100%);
  transition: width 0.25s ease;
}

.question-text {
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 0;
  color: #2c2c2c;
}

.progress-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #4e4d4d;
}

#mark-screen .progress-header {
  justify-content: space-between;
}

.mark-nav-buttons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#mark-screen {
  justify-content: flex-start;
  padding-top: 12px;
}

#mark-screen .progress-header {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto 6px;
}

.questions-shell {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: calc(100vh - 250px);
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.questions-shell.section-exit {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.questions-shell.section-enter {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}

.questions-shell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.97));
  opacity: 1;
  transition: opacity 0.25s ease;
}

.questions-shell.fade-hidden::after {
  opacity: 0;
}

.questions-wrap {
  width: 100%;
  height: 100%;
  display: block;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.questions-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.question-list {
  display: grid;
  gap: 10px;
}

.scale-legend {
  display: none;
}

.scale-legend span {
  font-size: 12px;
  font-weight: 800;
  color: #94c93d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d6d8ce;
  border-radius: 12px;
  background: linear-gradient(140deg, #e8e4d8 0%, #dbd6c8 100%);
  box-shadow: 0 2px 10px rgba(58, 66, 61, 0.08);
}

#mark-next-btn {
  display: none;
}

.rating-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4f5f4 0%, #ecefed 28%, #e2e6e2 55%, #d8ddd8 78%, #ced4ce 100%);
  border: 1px solid #d4d9d4;
}

.rating-scale {
  margin-top: 0;
}

.rating-btn {
  min-height: 34px;
  flex: 1 1 0;
  border: 1px solid #cfd4cf;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #7a8a7a;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  padding: 0;
}

.rating-btn[data-value='1'] {
  opacity: 0.78;
}

.rating-btn[data-value='2'] {
  opacity: 0.86;
}

.rating-btn[data-value='3'] {
  opacity: 0.94;
}

.rating-btn[data-value='4'] {
  opacity: 1;
}

.rating-btn:active {
  transform: scale(0.97);
}

.rating-btn.selected {
  border-color: #1f8d98;
  background: #17a2af;
  color: #fff;
  opacity: 1;
}

.scale-anchors {
  display: flex;
  justify-content: space-between;
  padding: 3px 10px 0;
  font-size: 10px;
  font-weight: 700;
  color: #94c93d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.question-row.is-answered .scale-anchors {
  opacity: 0.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-button {
  width: 100%;
  padding: 14px;
  background: #ef8f30;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  margin-top: 16px;
}

.nav-button:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.nav-button.secondary {
  background: #fff;
  color: #ef8f30;
  border: 2px solid #ef8f30;
}

.retake-btn {
  font-size: 13px;
  color: #aaa;
  text-decoration: underline;
}

.back-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #4e4d4d;
  cursor: pointer;
  padding: 6px 0;
  font-weight: 600;
}

#mark-forward-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.mark-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: start;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
}

.question-col {
  padding-right: 4px;
}

.question-progress-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  min-height: 0;
  position: relative;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, top 0.2s ease;
}

@keyframes hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-7px); }
}

.scroll-hint.visible {
  opacity: 1;
  animation: hint-bob 1.8s ease-in-out infinite;
}

.scroll-hint-arrow {
  font-size: 28px;
  line-height: 1;
  color: #aaa;
}

.scroll-hint-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  white-space: nowrap;
}

.question-row.is-guide-target {
  box-shadow: inset 0 0 0 2px #94c93d;
}

.question-row.is-guide-target.pulse-target {
  box-shadow: inset 0 0 0 3px #94c93d;
}

.unanswered-guide {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #94c93d;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transition: top 0.25s ease, opacity 0.2s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.unanswered-guide.visible {
  opacity: 1;
  pointer-events: auto;
}

.unanswered-guide:hover {
  filter: brightness(1.1);
}

.question-progress-ring {
  --progress: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(#94c93d calc(var(--progress) * 1%), #dedede 0);
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: --progress 0.4s ease;
}

.question-progress-ring::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}

.results-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: start;
  flex: 1;
  min-height: 0;
}

.results-summary {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 8px;
}

.radar-title {
  margin-bottom: 6px;
}

.radar-container {
  width: 100%;
  height: min(70vh, 520px);
  max-height: 520px;
  margin: 0 auto;
}

.radar-svg {
  width: 100%;
  height: 100%;
}

.radar-label {
  font-size: 14px;
  fill: #2c2c2c;
  font-weight: 700;
}

.stage-badge {
  background: #fff;
  border: 1.5px solid #c8c8c8;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 8px 0;
}

.stage-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94c93d;
  margin-bottom: 6px;
}

.stage-badge.compact {
  margin-top: 4px;
}

.stage-title {
  font-family: 'EB Garamond', serif;
  font-size: 32px;
  margin-bottom: 8px;
  color: #2c2c2c;
}

.stage-desc {
  font-size: 15px;
  line-height: 1.45;
  color: #4e4d4d;
}

.stage-band-track {
  margin-top: 14px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 999px;
  position: relative;
}

.stage-band-fill {
  height: 100%;
  background: #02B1CE;
  border-radius: 999px;
  transition: width 0.8s ease;
  width: 0%;
  position: relative;
}

.stage-cta-divider {
  margin: 16px 0 0;
  border-top: 1px solid #e8e8e8;
}

.stage-cta-hook {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #2c2c2c;
}

.stage-band-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  margin-bottom: 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
}

.mark-list-item {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid #e3e3e3;
}

.results-understanding {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #3f3f3f;
}

.results-understanding h3 {
  font-size: 19px;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.results-understanding-subheading {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6c756f;
  margin-bottom: 10px;
}

.results-level {
  margin-bottom: 10px;
}

.results-level h4 {
  font-size: 14px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.results-level p {
  margin: 0;
}

.results-credit {
  margin-top: 8px;
  font-size: 11px;
  color: #707872;
}

.intro-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 540px;
  margin: 0 auto;
}

.intro-title {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.04;
}

.intro-copy {
  display: grid;
  gap: 14px;
  color: #3f3f3f;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  background: #f7f8f5;
  border: 1px solid #e3e8dc;
  border-radius: 14px;
  padding: 18px;
}

.results-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-bottom: 6px;
}

.results-actions .nav-button {
  flex: 1;
  margin-top: 0;
}

.profile-title {
  font-size: 28px;
  margin-bottom: 2px;
}

.save-results-panel {
  margin-top: 14px;
  background: linear-gradient(140deg, #e8e4d8 0%, #dbd6c8 100%);
  border: 1px solid #d0cab8;
  border-radius: 12px;
  padding: 16px;
}

.results-unlocked {
  margin-top: 4px;
}

.save-results-switch {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.save-results-switch a {
  color: #ef8f30;
  text-decoration: none;
  font-weight: 600;
}

.save-results-switch a:hover {
  text-decoration: underline;
}

#results-screen.active {
  display: block;
  height: auto;
  overflow: visible;
  padding-bottom: 48px;
}

body.results-open {
  overflow-y: auto;
}

body.results-open #app {
  height: auto;
  overflow: visible;
}

/* ── Auth modal ── */
#auth-modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.55); align-items: center; justify-content: center; }
#auth-modal.open { display: flex; }
.auth-modal-box { background: #fff; border-radius: 12px; padding: 32px 28px; width: 100%; max-width: 400px; position: relative; margin: 20px; }
.auth-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 22px; color: #aaa; cursor: pointer; line-height: 1; }
.auth-modal-close:hover { color: #2c2c2c; }

/* ── History screen ── */
#history-screen.active {
  display: block;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding-bottom: 48px;
}

#history-screen .progress-header {
  padding-right: 180px; /* clear the user chip */
}

.history-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0ee;
}
.history-entry:last-child { border-bottom: none; }
.history-entry-left { display: flex; align-items: center; gap: 14px; }
.history-stage-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.history-stage-name { font-family: Montserrat, sans-serif; font-size: 15px; font-weight: 600; color: #1a1a1a; display: flex; align-items: center; gap: 8px; }
.history-date { font-family: Montserrat, sans-serif; font-size: 12px; color: #aaa; margin-top: 3px; }
.history-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: #94c93d; color: #fff; padding: 2px 7px; border-radius: 3px; }
.history-view-btn { font-size: 13px; color: #ef8f30; }

.save-results-title {
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.save-results-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}


.save-results-panel input[type="text"],
.save-results-panel input[type="email"],
.save-results-panel input[type="password"],
.auth-modal-box input[type="text"],
.auth-modal-box input[type="email"],
.auth-modal-box input[type="password"] {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #2c2c2c;
  margin-bottom: 12px;
  outline: none;
  box-sizing: border-box;
}

.save-results-panel input:focus,
.auth-modal-box input:focus {
  border-color: #94c93d;
  box-shadow: 0 0 0 3px rgba(148,201,61,0.1);
}

.otp-digit {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  font-family: Montserrat, sans-serif;
  color: #1a1a1a;
  border: 2px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color .15s;
  caret-color: transparent;
}
.otp-digit:focus { border-color: #ef8f30; }
.otp-digit.filled { border-color: #94c93d; }

.auth-modal-box .nav-button { margin-top: 4px; }
.optin-label { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #555; margin: 12px 0 4px; cursor: pointer; line-height: 1.4; }
.optin-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #ef8f30; }
.auth-modal-box .save-results-title { font-size: 18px; margin-bottom: 6px; font-family: 'EB Garamond', Georgia, serif; font-weight: 500; }
.auth-modal-box .save-results-desc { margin-bottom: 20px; }
.auth-modal-box .save-results-switch { margin-top: 14px; }

.leader-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #2c2c2c;
  background: #fff;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  margin-bottom: 8px;
}

.leader-select:focus {
  border-color: #ef8f30;
}

.save-opt-in {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #555;
  margin-bottom: 12px;
  cursor: pointer;
  line-height: 1.4;
}

.save-opt-in input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.save-submit-btn {
  width: 100%;
  margin-top: 0;
}

.save-results-status {
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
}

.save-results-status.error {
  color: #c0392b;
}

.save-results-success {
  font-size: 14px;
  color: #3a7d44;
  padding: 12px 0;
}

.save-leader-question {
  margin-bottom: 12px;
}

.save-leader-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.save-leader-btns {
  display: flex;
  gap: 8px;
}

.leader-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4e4d4d;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.leader-btn.selected {
  background: #94c93d;
  border-color: #94c93d;
  color: #fff;
}

.pod-recs {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.pod-recs-heading {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #2c2c2c;
  margin-bottom: 4px;
}

.pod-recs-sub {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}

.pod-recs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pod-rec-card {
  display: block;
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  text-decoration: none;
  background: #fafafa;
  transition: border-color 0.15s;
}

.pod-rec-card:hover {
  border-color: #94c93d;
  background: #fff;
}

.pod-rec-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94c93d;
  margin-bottom: 3px;
}

.pod-rec-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c2c2c;
  line-height: 1.4;
  margin-bottom: 3px;
}

.pod-rec-meta {
  font-size: 11px;
  color: #aaa;
}

.account-prompt {
  margin-top: 12px;
  border: 1px solid #e0dbd0;
  border-radius: 12px;
  padding: 16px;
  background: #faf9f6;
}

.ap-headline {
  font-size: 14px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 4px;
}

.ap-sub {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.account-prompt input[type="email"],
.account-prompt input[type="password"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #2c2c2c;
  margin-bottom: 8px;
  outline: none;
  box-sizing: border-box;
  background: #fff;
}

.account-prompt input:focus {
  border-color: #94c93d;
}

.ap-switch {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
  text-align: center;
}

.ap-switch a {
  color: #ef8f30;
  text-decoration: none;
  font-weight: 600;
}

.ap-switch a:hover { text-decoration: underline; }

.ap-success {
  font-size: 14px;
  color: #3a7d44;
  padding: 8px 0;
}

.detail-stage-desc {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.detail-stage-title {
  font-size: 18px;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.detail-stage-desc p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

.detail-stage-desc p + p {
  margin-top: 14px;
}

.marks-intro {
  font-size: 13px;
  color: #888;
  margin: 0 0 16px;
}

#details-list-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#details-section-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.details-wrap {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 24px;
}

.detail-section {
  padding: 16px 0;
  border-bottom: 1px solid #e3e3e3;
}

.detail-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.detail-section-name {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 600;
}

.detail-section-stage {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}

.detail-bar-track {
  height: 6px;
  background: #e8e8e8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.detail-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.detail-section-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.detail-row {
  border-bottom: 1px solid #e3e3e3;
  padding: 14px 0;
  cursor: pointer;
}

.detail-row:hover .detail-row-title {
  color: #555;
}

.detail-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-row-title {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #2c2c2c;
  flex: 1;
  transition: color 0.15s;
}

.detail-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.detail-row-arrow {
  font-size: 18px;
  color: #ccc;
}

.section-detail-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.section-detail-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  color: #4e4d4d;
}

.section-detail-icon svg {
  width: 44px;
  height: 44px;
}

.section-detail-title {
  font-family: 'EB Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 6px;
}

.accordion-item {
  border-bottom: 1px solid #e3e3e3;
}

.accordion-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.accordion-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.accordion-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4e4d4d;
}

.accordion-icon svg {
  width: 22px;
  height: 22px;
}

.accordion-title {
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #2c2c2c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accordion-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.accordion-stage {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
}

.accordion-pct {
  font-size: 10px;
  font-weight: 600;
  color: #bbb;
}

.accordion-chevron {
  font-size: 18px;
  color: #aaa;
  transition: transform 0.2s ease;
  line-height: 1;
  display: inline-block;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-score-track {
  height: 4px;
  background: #e8e8e8;
  border-radius: 999px;
  overflow: hidden;
}

.accordion-score-fill {
  height: 100%;
  border-radius: 999px;
  background: #94c93d;
}

.accordion-body {
  display: none;
  padding-bottom: 20px;
}

.accordion-item.is-open .accordion-body {
  display: block;
}

.accordion-desc {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: #333;
  line-height: 1.65;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.accordion-desc cite {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-top: 8px;
}

.verse-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-bottom: 20px;
}

.verse-card {
  background: #faf9f7;
  border: 1px solid #ddd8cf;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.verse-ref {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}

.verse-text {
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2c2c2c;
  font-style: italic;
  margin: 0;
  padding: 0;
  border: none;
  flex: 1;
}

.verse-credit {
  font-size: 10px;
  color: #bbb;
  letter-spacing: 0.05em;
  text-align: right;
}

.accordion-resources {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.resources-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #aaa;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.resources-intro {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
}

.resource-rows {
  display: flex;
  flex-direction: column;
}

.resource-row {
  border-top: 1px solid #f0f0f0;
  cursor: pointer;
}

.resource-row:last-child {
  border-bottom: 1px solid #f0f0f0;
}

.resource-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
}

.resource-row:hover .resource-title {
  color: #555;
}

.resource-play-icon {
  font-size: 9px;
  color: #94c93d;
  flex-shrink: 0;
}

.resource-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c2c2c;
  flex: 1;
  line-height: 1.35;
  transition: color 0.15s;
}

.resource-duration {
  font-size: 11px;
  color: #aaa;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.resource-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin-bottom: 12px;
}

.resource-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  display: block;
}

.seal {
  width: 80px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  #app {
    width: 100vw;
  }

  .mark-title {
    font-size: 24px;
  }

  .profile-title {
    font-size: 30px;
  }

  .results-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .radar-container {
    height: min(56vh, 430px);
  }

  .mark-main {
    grid-template-columns: minmax(0, 1fr) 140px;
  }

  .question-progress-ring {
    width: 108px;
    height: 108px;
  }

  .question-progress-ring::after {
    inset: 12px;
  }
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .screen {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }

  .questions-shell {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .questions-wrap {
    overflow: visible;
    height: auto;
  }

  .questions-shell::after {
    display: none;
  }

  .mark-main {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .scale-legend {
    display: none;
  }

  .question-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .question-progress-panel {
    order: -1;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 8px;
  }

  .question-text {
    -webkit-line-clamp: unset;
  }

  .intro-title {
    font-size: 34px;
  }

  .intro-copy {
    font-size: 16px;
  }

  .mark-title {
    white-space: normal;
    overflow: visible;
  }

  .mark-subtitle {
    overflow: visible;
    text-overflow: clip;
  }
}

@media print {
  @page { margin: 18mm 14mm; }

  body * { visibility: hidden; }
  #print-results, #print-results * { visibility: visible; }
  #print-results {
    display: block !important;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    font-family: Georgia, serif;
    font-size: 14px;
    line-height: 1.65;
    color: #111;
    padding: 0;
  }

  .pr-radar { width: 340px; margin: 0 auto 8px; page-break-inside: avoid; }
  .pr-radar .radar-svg { width: 100%; height: auto; }
  .pr-radar polygon { fill: rgba(0,0,0,0.08) !important; stroke: #222 !important; }
  .pr-radar circle[r="8"] { fill: #222 !important; }
  .pr-title { font-size: 27px; margin: 0 0 4px; letter-spacing: 1px; }
  .pr-meta { font-size: 12px; color: #555; margin-bottom: 28px; text-transform: uppercase; letter-spacing: 1px; }
  .pr-stage-card { padding: 18px 20px; margin-bottom: 28px; border-left: 3px solid #111; page-break-inside: avoid; }
  .pr-stage-title { font-size: 22px; font-weight: bold; margin-bottom: 6px; }
  .pr-stage-desc { font-size: 15px; color: #333; }
  .pr-section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #444; margin: 28px 0 10px; border-bottom: 1px solid #bbb; padding-bottom: 6px; page-break-after: avoid; }
  .pr-level-desc { font-size: 15px; color: #333; line-height: 1.75; page-break-inside: avoid; }
  .pr-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
  .pr-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #444; padding: 6px 0; border-bottom: 2px solid #bbb; }
  .pr-table td { padding: 9px 0; border-bottom: 1px solid #ddd; vertical-align: top; font-size: 15px; }
  .pr-table td:nth-child(2) { text-align: center; white-space: nowrap; font-size: 13px; color: #333; padding: 9px 14px; }
  .pr-table tr { page-break-inside: avoid; }
  .pr-credit { font-size: 11px; color: #666; margin-top: 32px; line-height: 1.7; border-top: 1px solid #ccc; padding-top: 14px; }
}
