.v4 {
  color: #242b2b;
  font-size: 17px;
  line-height: 1.6;
}
.v4 * {
  box-sizing: border-box;
}
.v4 h1 {
  font-size: clamp(25px, 4.5vw, 38px);
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 20px 0;
  outline: none;
}
.v4 h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.3px;
}
.v4 p {
  margin: 14px 0;
}
.v4 small {
  font-size: 13px;
  line-height: 1.5;
  color: #58635e;
}
.v4 button {
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid #d1d7cc;
  border-radius: 12px;
  padding: 13px 18px;
  min-height: 48px;
  color: #242b2b;
  background: #fffefa;
  cursor: pointer;
  text-align: left;
}
.v4 button:hover:not(:disabled) {
  border-color: #7160b5;
  background: #f0edf7;
}
.v4 button:focus-visible,
.v4 summary:focus-visible {
  outline: 3px solid #7160b5;
  outline-offset: 3px;
}
.v4 button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.v4 button.v4-primary {
  background: #d5e6b3;
  border-color: #a9bf88;
  font-weight: 650;
}
.v4 button.v4-primary:hover {
  background: #c7dca0;
}
.v4-kicker,
.v4-top > span {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.v4-intro {
  padding: 28px 0;
}
.v4-intro h1 {
  max-width: 590px;
}
.v4-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 8px;
  font-size: 13px;
}
.v4 progress {
  width: 200px;
  height: 9px;
  accent-color: #728963;
}
.v4 progress::-webkit-progress-bar {
  background: #e1e5da;
  border-radius: 10px;
}
.v4 progress::-webkit-progress-value {
  background: #728963;
  border-radius: 10px;
}
.v4-section {
  border: 1px solid #dce0d5;
  background: #fffefa;
  border-radius: 20px;
  margin: 0 0 20px;
  overflow: hidden;
}
.v4-section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
}
.v4-section-title > span {
  color: #6f628e;
  font-weight: 700;
  font-size: 14px;
}
.v4-lessons {
  padding: 0 12px;
}
.v4-lessons button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 14px 10px;
}
.v4-status {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #efeee7;
  font-size: 13px;
}
.v4-status.done {
  background: #dce8cd;
  color: #3b5832;
}
.v4-test-link {
  padding: 18px 22px;
  border-top: 1px solid #e4e7de;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.v4-local {
  font-size: 13px;
  color: #626b60;
}
.v4-card {
  padding: 28px;
  border: 1px solid #dce0d5;
  border-radius: 22px;
  background: #fffefa;
}
.v4-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.v4-top button {
  padding: 8px 12px;
  min-height: 40px;
  font-size: 13px;
}
.v4-step-label {
  font-size: 13px;
  color: #6c5b9a;
  margin: 8px 0 18px;
}
.v4-visual {
  background: #f0f2ec;
  border: 1px solid #e0e5d9;
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 22px;
}
.v4-visual figcaption {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #5a635d;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 16px;
}
.v4-goal {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.v4-goal svg {
  width: 86px;
  flex-shrink: 0;
}
.v4-goal strong,
.v4-goal > div > span {
  display: block;
}
.v4-goal strong {
  font-size: 19px;
}
.v4-goal > div > span {
  font-size: 13px;
}
.v4-goal small {
  font-size: 10px;
  letter-spacing: 1px;
}
.v4-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
.v4-stat {
  flex: 1 1 130px;
  padding: 12px;
  border-left: 2px solid #a99bcd;
  background: #fffefa90;
}
.v4-stat span {
  display: block;
  font-size: 12px;
  color: #59665e;
}
.v4-stat strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
  margin-top: 5px;
}
.v4-bars {
  max-width: 520px;
  margin: 14px 0;
}
.v4-bars svg {
  width: 100%;
  height: 13px;
  display: block;
  margin: 4px 0 12px;
}
.v4-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.v4-bars small {
  font-size: 10px;
}
.v4-visual .v4-visual-note {
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0 0;
  color: #515e55;
}
.v4-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}
.v4-flow > div {
  flex: 1;
  padding: 12px 8px;
  background: #fffefa;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
.v4-arrow {
  color: #77669d;
}
.v4-share-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  max-width: 230px;
  margin: 16px auto;
}
.v4-share-grid i {
  aspect-ratio: 1;
  background: #d9dfd4;
  border-radius: 3px;
}
.v4-share-grid i.owned {
  background: #8874b9;
}
.v4-news {
  padding: 18px;
  border-left: 3px solid #8b7cad;
  background: #fffefa;
  border-radius: 4px 12px 12px 4px;
}
.v4-news strong {
  display: block;
  font-size: 19px;
  line-height: 1.4;
}
.v4-news small {
  display: block;
  font-size: 10px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.v4-news p {
  font-size: 14px;
}
.v4-caution {
  border-color: #ab8050;
}
.v4-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.v4-tags > span {
  background: #e4e0ef;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
}
.v4-copy {
  line-height: 1.75;
}
.v4-takeaway {
  background: #e8eedf;
  border-left: 3px solid #8ba372;
  border-radius: 4px 10px 10px 4px;
  padding: 16px;
  font-size: 16px;
  margin: 22px 0;
}
.v4 details {
  border-top: 1px solid #e1e4d9;
  margin-top: 16px;
  padding-top: 12px;
}
.v4 summary {
  cursor: pointer;
  color: #66578f;
  font-size: 14px;
  min-height: 32px;
}
.v4 details p {
  font-size: 15px;
}
.v4-tools {
  margin-top: 24px;
}
.v4-tools button {
  font-size: 13px;
  min-height: 44px;
}
.v4-tools dl {
  max-height: 300px;
  overflow: auto;
  font-size: 14px;
  padding-right: 10px;
}
.v4-tools dt {
  font-weight: 700;
  margin-top: 12px;
}
.v4-tools dd {
  margin-left: 0;
}
.v4-calculator {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 12px 0;
}
.v4-calculator label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  flex: 1 1 90px;
}
.v4-calculator input,
.v4-calculator select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bac4b9;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.v4-calculator output {
  width: 100%;
  font-size: 18px;
}
.v4-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  margin-top: 26px;
  border-top: 1px solid #e0e5d9;
}
.v4-question {
  font-size: 21px;
  background: #eff0e7;
  padding: 20px;
  border-radius: 14px;
  margin: 20px 0 !important;
}
.v4-test-note,
.v4-selection {
  font-size: 13px;
  color: #5e695f;
}
.v4-options {
  display: grid;
  gap: 12px;
}
.v4-options button {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px;
}
.v4-options button > .v4-option-label {
  min-width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #edece6;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.v4-options button[aria-pressed="true"] {
  background: #eee9f7;
  border: 2px solid #8470ae;
  padding: 16px;
}
.v4-options button.v4-unsure {
  background: transparent;
  border-style: dashed;
  font-size: 14px;
}
.v4-answer-review {
  padding-left: 22px;
}
.v4-answer-review li {
  padding: 16px 0;
  border-bottom: 1px solid #e0e5d9;
}
.v4-answer-review h2 {
  font-size: 17px;
}
.v4-answer-review p {
  font-size: 15px;
}
.v4-result {
  border-top: 1px solid #dfe3d7;
  padding: 24px 0;
}
.v4-result h2 {
  font-size: 18px;
  margin: 12px 0;
}
.v4-result p {
  font-size: 15px;
}
.v4-result button {
  font-size: 12px;
  margin: 6px 5px 0 0;
}
.v4-result-status {
  color: #856437;
  font-size: 12px;
  font-weight: 700;
}
.v4-result-status.correct {
  color: #4f7047;
}
.v4-correct-answer {
  padding: 16px;
  background: #edf1e6;
  border-radius: 12px;
  font-size: 15px;
}
.v4-correct-answer p {
  margin-bottom: 0;
}
.v4-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.v4-resume,
.v4-warning {
  background: #ece6f5;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .learn-main {
    padding: 0 14px 110px;
  }
  .v4 {
    font-size: 16px;
  }
  .v4-card {
    padding: 18px;
    border-radius: 16px;
  }
  .v4 h1 {
    font-size: 25px;
    letter-spacing: -0.6px;
    margin: 18px 0;
  }
  .v4-intro h1 {
    font-size: 30px;
  }
  .v4-top > span {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .v4-top button {
    font-size: 11px;
    padding: 8px;
  }
  .v4-visual {
    padding: 14px;
    margin-bottom: 18px;
  }
  .v4-visual figcaption {
    margin-bottom: 10px;
  }
  .v4-goal {
    gap: 12px;
    margin-bottom: 10px;
  }
  .v4-goal svg {
    width: 60px;
  }
  .v4-goal strong {
    font-size: 16px;
  }
  .v4-stat {
    flex-basis: 100px;
    padding: 10px;
  }
  .v4-stat strong {
    font-size: 16px;
  }
  .v4-flow {
    gap: 5px;
  }
  .v4-flow > div {
    padding: 10px 5px;
    font-size: 11px;
  }
  .v4-bar-label {
    font-size: 11px;
  }
  .v4-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    margin: 0;
    background: #f5f5ee;
    box-shadow: 0 -5px 18px #2429240a;
  }
  .v4-controls button {
    font-size: 14px;
    padding: 12px 15px;
  }
  .v4-question {
    font-size: 18px;
    padding: 16px;
  }
  .v4-section-title {
    padding: 18px;
  }
  .v4-section-title h2 {
    font-size: 18px;
  }
  .v4-lessons button {
    font-size: 14px;
  }
  .v4-options button {
    font-size: 15px;
  }
}
