:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --surface: #fffef9;
  --ink: #26362d;
  --muted: #667168;
  --line: #dcded3;
  --green: #315a42;
  --green-soft: #e8eee3;
  --gold: #ba8543;
  --error: #9b382f;
  --radius: 18px;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis: none
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6
}

button,input,a,audio {
  -webkit-tap-highlight-color: transparent
}

button,input {
  font: inherit
}

button,a {
  touch-action: manipulation
}

button {
  cursor: pointer
}

a {
  color: var(--green)
}

button:disabled {
  cursor: not-allowed;
  opacity: .46
}

button:focus-visible,a:focus-visible,input:focus-visible,audio:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid #ad8438;
  outline-offset: 5px
}

button {
  transition: background .15s,transform .15s
}

button:not(:disabled):active {
  transform: translateY(1px)
}

[hidden] {
  display: none!important
}

.site-shell {
  max-width: 1192px;
  margin: auto;
  padding: 0 48px
}

.session-mode {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end
}

.badge {
  background: var(--green-soft);
  border: 1px solid #d0dbc8;
  border-radius: 30px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  white-space: nowrap
}

.badge.preview {
  background: #f5ecda;
  border-color: #e8d8b9;
  color: #805820
}

main {
  padding: 20px 0 48px
}

h1,h2,h3,p {
  margin-top: 0
}

h1,h2 {
  font-weight: 400;
  letter-spacing: -1.7px;
  line-height: 1.08
}

h1 {
  font-family: Georgia,"Times New Roman",serif;
  font-size: 65px;
  margin-bottom: 25px
}

h2 {
  font-family: Georgia,"Times New Roman",serif;
  font-size: 38px;
  margin-bottom: 17px
}

h3 {
  font-size: 17px;
  letter-spacing: -.3px;
  line-height: 1.4;
  margin-bottom: 9px
}

p {
  margin-bottom: 16px
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 23px
}

.welcome-shell {
  max-width: 640px;
  margin: 0 auto
}

.instructions-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px
}

.instructions-card h1 {
  font-family: inherit;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.5px;
  margin-bottom: 6px
}

.study-summary {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px
}

.welcome-intro {
  font-size: 15px;
  margin-bottom: 18px
}

.instruction-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted)
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12px;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 22px 0 20px
}

.consent input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 3px 0 0;
  accent-color: var(--green)
}

.primary-button,.secondary-button,.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  min-height: 47px;
  padding: 11px 22px;
  border: 1px solid transparent;
  text-decoration: none
}

.primary-button {
  background: var(--green);
  color: #fffef9
}

.primary-button:not(:disabled):hover {
  background: #254932
}

.secondary-button {
  border-color: var(--line);
  background: transparent;
  color: var(--ink)
}

.secondary-button:not(:disabled):hover {
  background: #eeeee5
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  min-height: 36px;
  padding: 6px 10px
}

.text-button:hover {
  text-decoration: underline
}

.full-width {
  width: 100%
}

.button-arrow {
  font-size: 19px;
  font-weight: 400;
  line-height: 1
}

.notice {
  background: #efeee3;
  border: 1px solid #dfddcc;
  border-radius: 10px;
  padding: 13px 17px;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 27px
}

.notice strong {
  font-weight: 650
}

.notice.preview-note {
  background: #f8f0e0;
  border-color: #e9dbbd;
  color: #725527
}

.welcome-shell .notice {
  margin-bottom: 16px
}

.error-message {
  font-size: 13px;
  line-height: 1.65;
  color: var(--error);
  background: #fff0e9;
  border: 1px solid #e8cfc3;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 16px 0
}

.error-message:empty {
  display: none
}

.task-shell,.review-shell {
  max-width: 820px;
  margin: 0 auto
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px
}

.progress-row .eyebrow {
  margin: 0
}

.progress-copy {
  font-size: 12px;
  color: var(--muted)
}

.progress-track {
  height: 3px;
  border-radius: 5px;
  background: #dfE3d8;
  overflow: hidden;
  margin-bottom: 32px
}

.progress-track>span {
  height: 100%;
  display: block;
  background: var(--green);
  transition: width .2s
}

.task-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 35px 41px 31px;
  box-shadow: 0 7px 25px #26362d03
}

.caption-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 16px
}

.caption-header svg {
  width: 17px;
  height: 17px
}

.caption {
  font-family: Georgia,"Times New Roman",serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.3px;
  margin: 0 0 27px;
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

.audio-section {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8f8f1;
  padding: 19px 20px;
  margin-bottom: 29px
}

.audio-section audio {
  display: block;
  width: 100%;
  height: 44px
}

.audio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px
}

.audio-tag {
  display: flex;
  align-items: center;
  gap: 7px
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold)
}

.status-dot.ready {
  background: #578052
}

.empty-audio {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 0
}

.empty-audio-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #d6dacd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8b9488;
  font-size: 20px;
  flex-shrink: 0
}

.empty-audio strong {
  font-size: 13px;
  font-weight: 500
}

.empty-audio p {
  font-size: 12px;
  color: var(--muted);
  margin: 1px 0 0
}

.rating-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0
}

.rating-group legend {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.35px;
  margin-bottom: 7px;
  padding: 0
}

.rating-hint {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 21px
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 9px
}

.rating-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 95px;
  padding: 13px 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  background: var(--surface);
  transition: background .15s,border-color .15s
}

.rating-option:hover {
  background: #f0f3e9;
  border-color: #9aaD95
}

.rating-option:has(input:checked) {
  background: var(--green-soft);
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green)
}

.rating-option:has(input:focus-visible) {
  outline: 3px solid #ad8438;
  outline-offset: 3px
}

.rating-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  top: 50%;
  left: 50%;
  margin: 0
}

.rating-number {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 400
}

.rating-name {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4
}

.rating-option:has(input:checked) .rating-name {
  color: var(--green)
}

.task-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 29px
}

.save-status {
  font-size: 11px;
  color: var(--muted)
}

.task-bottom-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 19px 0 0
}

.review-heading {
  max-width: 600px;
  margin-bottom: 29px
}

.review-heading p {
  color: var(--muted);
  font-size: 14px
}

.review-list {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden
}

.review-item {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line)
}

.review-item:last-child {
  border-bottom: 0
}

.review-index {
  font-size: 11px;
  color: var(--muted)
}

.review-caption {
  font-size: 13px;
  line-height: 1.65;
  margin: 0
}

.review-answer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px
}

.review-answer strong {
  color: var(--green);
  font-size: 13px;
  font-weight: 600
}

.completion-card {
  max-width: 620px;
  margin: 32px auto 0;
  text-align: center;
  padding: 45px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius)
}

.completion-mark {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 27px;
  font-size: 29px
}

.completion-card h1 {
  font-size: 44px
}

.completion-card p {
  color: var(--muted);
  font-size: 14px
}

.completion-card .eyebrow {
  margin-bottom: 17px
}

.completion-card .primary-button {
  margin-top: 12px
}

.setup-list {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 20px 0;
  padding-left: 23px;
  overflow-wrap: anywhere
}

.loading-state {
  text-align: center;
  padding: 65px 0
}

.loading-state h1 {
  font-size: 43px
}

.loading-state p {
  color: var(--muted)
}

.noscript-message {
  padding: 25px;
  text-align: center;
  color: var(--error)
}

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

.attention-note {
  margin-bottom: 25px
}

@media(max-width:1000px) {
  h1 {
    font-size: 55px
  }

  .site-shell {
    padding: 0 32px
  }

}

@media(max-width:720px) {
  .site-shell {
    padding: 0 22px
  }

  main {
    padding: 16px 0 36px
  }

  .instructions-card {
    padding: 24px
  }

  .task-card {
    padding: 25px 21px
  }

  .caption {
    font-size: 23px
  }

  .audio-section {
    padding: 14px
  }

  .rating-options {
    gap: 6px
  }

  .rating-option {
    min-height: 89px;
    padding: 11px 3px
  }

  .rating-name {
    font-size: 9px
  }

  .rating-group legend {
    font-size: 16px
  }

  .task-navigation {
    gap: 12px
  }

  .primary-button,.secondary-button {
    padding: 11px 16px
  }

  .review-item {
    padding: 16px 15px;
    gap: 10px;
    grid-template-columns: 18px 1fr auto
  }

  .review-item .text-button {
    padding: 6px
  }

  .completion-card {
    margin-top: 0;
    padding: 32px 21px
  }

  .completion-card h1 {
    font-size: 37px
  }

  .audio-meta {
    align-items: flex-start
  }

  .badge {
    font-size: 10px;
    padding: 3px 8px
  }

}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition: none!important;
    scroll-behavior: auto!important
  }

}
