/* V3 bleibt über data-design vollständig von V1 und V2 getrennt. */
body[data-design="v3"] {
  --ink: #183f2a;
  --ink-soft: #5b6a60;
  --surface: #fffdf9;
  --canvas: #faf6f0;
  --line: #e9e0d6;
  --mint: #3d7049;
  --mint-dark: #195f35;
  --mint-soft: #e7f1e6;
  --lime: #afcbae;
  --sun: #f8d564;
  --coral: #ff8a76;
  --blue: #e7f1e6;
  --shadow: 0 14px 34px rgba(35, 72, 47, .11);
  background:
    radial-gradient(circle at 12% 8%, rgba(175, 203, 174, .22), transparent 28rem),
    radial-gradient(circle at 86% 78%, rgba(255, 138, 118, .09), transparent 24rem),
    #f1ede7;
}

html:has(body[data-design="v3"]) {
  background: #faf6f0;
}

body[data-design="v3"] .app-shell {
  width: min(100%, 620px);
  background: #faf6f0;
  box-shadow: 0 0 72px rgba(28, 71, 42, .13);
}

body[data-design="v3"] .topbar {
  min-height: 72px;
  padding-inline: 22px;
  background: rgba(250, 246, 240, .96);
  border-bottom-color: rgba(61, 112, 73, .11);
}

body[data-design="v3"] .brand {
  gap: 10px;
  color: #164d2c;
  font-size: .91rem;
  font-weight: 900;
  letter-spacing: .035em;
  white-space: nowrap;
}

body[data-design="v3"] .brand-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(145deg, #195f35, #0f4e2a);
  border-radius: 14px 14px 14px 5px;
  font-size: .78rem;
  box-shadow: 0 7px 18px rgba(25, 95, 53, .18);
}

body[data-design="v3"] .profile-button {
  min-height: 46px;
  background: rgba(255, 253, 249, .92);
  border: 1px solid rgba(61, 112, 73, .1);
  box-shadow: 0 5px 16px rgba(35, 72, 47, .07);
}

body[data-design="v3"] .profile-avatar,
body[data-design="v3"] .count-badge,
body[data-design="v3"] .streak-chip {
  color: #164d2c;
  background: #e7f1e6;
}

body[data-design="v3"] .screen[data-screen="home"] {
  padding: 20px 22px 124px;
}

body[data-design="v3"] .welcome-row {
  align-items: end;
}

body[data-design="v3"] .welcome-row .eyebrow,
body[data-design="v3"] .section-heading .eyebrow,
body[data-design="v3"] .v2-assessment .eyebrow {
  color: #195f35;
  font-weight: 900;
  letter-spacing: .095em;
}

body[data-design="v3"] .welcome-row h1 {
  max-width: 380px;
  color: #164d2c;
  font-size: clamp(1.8rem, 7vw, 2.35rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}

body[data-design="v3"] .phase-badge {
  padding: 8px 13px;
  color: #6c321f;
  background: #ff8a76;
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .12em;
}

body[data-design="v3"] .timeline-shell {
  gap: 8px;
  margin-block: 20px 18px;
}

body[data-design="v3"] .timeline-shell .icon-button {
  width: 40px;
  height: 44px;
  color: #195f35;
  background: #fffdf9;
  border-color: rgba(61, 112, 73, .14);
  border-radius: 15px;
}

body[data-design="v3"] .week-strip {
  gap: 3px;
}

body[data-design="v3"] .week-strip button {
  min-height: 58px;
  color: #365743;
  border-radius: 14px;
}

body[data-design="v3"] .week-strip button.is-current {
  color: #fff;
  background: #195f35;
  box-shadow: 0 9px 20px rgba(25, 95, 53, .22);
}

body[data-design="v3"] .day-dot.training {
  background: #ff8a76;
  box-shadow: 0 0 0 3px rgba(255, 138, 118, .18);
}

body[data-design="v3"] .rule-card {
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 91% 112%, rgba(175, 203, 174, .28), transparent 44%),
    linear-gradient(145deg, #195f35 0%, #0f542d 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px 26px 26px 9px;
  box-shadow: 0 19px 34px rgba(25, 95, 53, .2);
}

body[data-design="v3"] .rule-card .eyebrow {
  color: #fff;
  letter-spacing: .12em;
}

body[data-design="v3"] .rule-card h2 {
  margin-top: 5px;
  font-size: 1.55rem;
  line-height: 1.08;
}

body[data-design="v3"] .rule-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, .88);
  font-size: .94rem;
  line-height: 1.45;
}

body[data-design="v3"] .rule-card .text-link {
  color: #ff9b82;
}

body[data-design="v3"] .rule-card .pdf-link-button span {
  color: #164d2c;
  background: #e7f1e6;
}

body[data-design="v3"] .v2-quick-actions {
  gap: 10px;
  margin: 13px 0 18px;
}

body[data-design="v3"] .v2-quick-actions button {
  min-height: 54px;
  color: #195f35;
  background: #fffdf9;
  border-color: rgba(61, 112, 73, .14);
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(35, 72, 47, .055);
}

body[data-design="v3"] .v2-quick-actions button span {
  color: #ff7f65;
}

body[data-design="v3"] .v2-assessment {
  margin: 17px 0 30px;
  padding: 18px;
  background: rgba(255, 253, 249, .98);
  border-color: rgba(61, 112, 73, .14);
  border-radius: 23px;
  box-shadow: 0 9px 22px rgba(35, 72, 47, .065);
}

body[data-design="v3"] .v2-assessment-heading {
  margin-bottom: 15px;
}

body[data-design="v3"] .v2-assessment-heading h2 {
  color: #153f29;
  font-size: 1.08rem;
}

body[data-design="v3"] .v2-assessment-heading > strong {
  display: none;
}

body[data-design="v3"] .v2-assessment-options {
  gap: 7px;
}

body[data-design="v3"] .v2-assessment-options button {
  min-height: 84px;
  padding: 10px 4px;
  color: #4f5e54;
  background: #faf6f0;
  border: 1px solid transparent;
  border-radius: 16px;
}

body[data-design="v3"] .v2-assessment-options strong {
  white-space: normal;
  font-size: .64rem;
  line-height: 1.15;
  text-align: center;
}

body[data-design="v3"] .v2-status-dot {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px #fff;
}

body[data-design="v3"] .v2-status-dot.is-done {
  background: #178548;
  border-color: #178548;
}

body[data-design="v3"] .v2-status-dot.is-mostly {
  background: conic-gradient(#afcbae 0 75%, #edf4eb 75% 100%);
  border-color: #afcbae;
}

body[data-design="v3"] .v2-status-dot.is-partial {
  background: conic-gradient(#f8d564 0 40%, #fff8df 40% 100%);
  border-color: #f0c445;
}

body[data-design="v3"] .v2-status-dot.is-open {
  background: #fffdf9;
  border-color: #ff8a76;
  box-shadow: none;
}

body[data-design="v3"] .v2-assessment-options button.is-selected[data-challenge-status="done"] {
  color: #fff;
  background: #195f35;
  border-color: #195f35;
}

body[data-design="v3"] .v2-assessment-options button.is-selected[data-challenge-status="mostly"] {
  color: #214d30;
  background: #d8e8d6;
  border-color: #afcbae;
}

body[data-design="v3"] .v2-assessment-options button.is-selected[data-challenge-status="partial"] {
  color: #654e05;
  background: #fff3c8;
  border-color: #f8d564;
}

body[data-design="v3"] .v2-assessment-options button.is-selected[data-challenge-status="open"] {
  color: #a54435;
  background: #ffe4e2;
  border-color: #ff8a76;
}

body[data-design="v3"] .section-heading h2 {
  color: #195f35;
  font-size: 1.45rem;
}

body[data-design="v3"] .v2-group-label {
  color: #755e53;
  letter-spacing: .12em;
}

body[data-design="v3"] .v2-task-group {
  gap: 9px;
}

body[data-design="v3"] .v2-task-card {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 92px;
  padding: 13px;
  background: #fffdf9;
  border: 1px solid rgba(61, 112, 73, .07);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(35, 72, 47, .05);
}

body[data-design="v3"] .v2-task-card .task-icon {
  width: 48px;
  height: 48px;
  color: #195f35;
  background: #e7f1e6;
  border-radius: 15px;
}

body[data-design="v3"] .v2-task-card .task-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-design="v3"] .v2-task-card .task-icon .footprint {
  fill: currentColor;
  stroke: none;
}

body[data-design="v3"] .v2-inline-status {
  gap: 5px;
}

body[data-design="v3"] .v2-inline-status button {
  grid-template-columns: 1fr;
  place-items: center;
  height: 36px;
  padding: 0;
  font-size: 0;
  border-radius: 10px;
}

body[data-design="v3"] .v2-inline-status button::before {
  width: 12px;
  height: 12px;
  background: currentColor;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7);
  content: "";
}

body[data-design="v3"] .v2-inline-status button[data-status-value="mostly"]::before {
  background: conic-gradient(currentColor 0 75%, transparent 75% 100%);
}

body[data-design="v3"] .v2-inline-status button[data-status-value="partial"]::before {
  background: conic-gradient(currentColor 0 40%, transparent 40% 100%);
}

body[data-design="v3"] .v2-inline-status button[data-status-value="open"]::before {
  background: transparent;
  box-shadow: none;
}

body[data-design="v3"] .v2-inline-status button small {
  display: none;
}

body[data-design="v3"] .v3-breath-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

body[data-design="v3"] .v3-breath-heading > span > strong,
body[data-design="v3"] .v3-breath-heading > span > small {
  display: block;
}

body[data-design="v3"] .v3-breath-heading > span > small {
  margin-top: 3px;
  color: #617166;
  font-size: .7rem;
}

body[data-design="v3"] .v3-breath-video-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 76px;
  min-height: 36px;
  padding: 0 11px;
  color: #fff;
  background: #195f35;
  border: 0;
  border-radius: 11px;
  font-size: .72rem;
  font-weight: 900;
}

body[data-design="v3"] .v3-breath-video-button:disabled {
  color: #738078;
  background: #e7ebe5;
}

body[data-design="v3"] .breathing-dialog {
  width: min(560px, calc(100% - 28px));
}

body[data-design="v3"] .breathing-video-frame {
  margin: 14px 0;
  overflow: hidden;
  background: #102b1c;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(25, 95, 53, .15);
}

body[data-design="v3"] .breathing-video-frame video {
  display: block;
  width: 100%;
  max-height: min(62vh, 580px);
  object-fit: contain;
}

body[data-design="v3"] .bottom-nav .otti-nose {
  fill: currentColor;
  stroke: none;
}

body[data-design="v3"] .v2-inline-status button[data-status-value="done"] {
  color: #195f35;
  background: #e2efe2;
}

body[data-design="v3"] .v2-inline-status button[data-status-value="mostly"] {
  color: #4f7956;
  background: #eef5ec;
}

body[data-design="v3"] .v2-inline-status button[data-status-value="partial"] {
  color: #9a7600;
  background: #fff5cf;
}

body[data-design="v3"] .v2-inline-status button[data-status-value="open"] {
  color: #a95a4b;
  background: #ffeceb;
}

body[data-design="v3"] .v2-inline-status button.is-selected[data-status-value="done"] {
  color: #fff;
  background: #195f35;
  border-color: #195f35;
}

body[data-design="v3"] .v2-inline-status button.is-selected[data-status-value="mostly"] {
  color: #214d30;
  background: #afcbae;
  border-color: #8db18c;
}

body[data-design="v3"] .v2-inline-status button.is-selected[data-status-value="partial"] {
  color: #654e05;
  background: #f8d564;
  border-color: #e6b937;
}

body[data-design="v3"] .v2-inline-status button.is-selected[data-status-value="open"] {
  color: #9f3f32;
  background: #ffe4e2;
  border-color: #ff8a76;
}

body[data-design="v3"] .coach-note {
  background: #f3e8df;
}

body[data-design="v3"] .bottom-nav {
  width: min(100%, 620px);
  min-height: 78px;
  padding: 8px 10px calc(9px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 240, .98);
  border-top-color: rgba(61, 112, 73, .12);
  box-shadow: 0 -9px 28px rgba(35, 72, 47, .075);
}

body[data-design="v3"] .bottom-nav::after {
  background: #faf6f0;
}

body[data-design="v3"] .bottom-nav button {
  min-height: 57px;
  color: #54715d;
  border-radius: 14px;
}

body[data-design="v3"] .bottom-nav button .nav-icon {
  width: 27px;
  height: 26px;
  font-family: sans-serif;
}

body[data-design="v3"] .bottom-nav button .nav-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body[data-design="v3"] .bottom-nav button small {
  color: inherit;
  font-family: inherit;
  font-size: .66rem;
  font-weight: 850;
}

body[data-design="v3"] .bottom-nav button.is-active {
  color: #195f35;
  background: #e7f1e6;
}

body[data-design="v3"] .login-screen {
  background:
    radial-gradient(circle at 12% 9%, rgba(175, 203, 174, .32), transparent 23rem),
    radial-gradient(circle at 88% 85%, rgba(255, 138, 118, .14), transparent 22rem),
    #f1ede7;
}

body[data-design="v3"] .login-card {
  background: rgba(255, 253, 249, .97);
  border-color: rgba(61, 112, 73, .13);
}

@media (max-width: 520px) {
  body[data-design="v3"] .topbar {
    padding-inline: 14px;
  }

  body[data-design="v3"] .brand > span:last-child {
    display: inline;
    font-size: .74rem;
  }

  body[data-design="v3"] .profile-button {
    padding-left: 4px;
  }

  body[data-design="v3"] .profile-button > span:first-child {
    display: none;
  }

  body[data-design="v3"] .screen[data-screen="home"] {
    padding-inline: 14px;
  }
}

@media (max-width: 390px) {
  body[data-design="v3"] .brand {
    gap: 7px;
  }

  body[data-design="v3"] .brand-mark {
    width: 38px;
    height: 38px;
  }

  body[data-design="v3"] .brand > span:last-child {
    font-size: .67rem;
    letter-spacing: .01em;
  }

  body[data-design="v3"] .v2-assessment {
    padding: 15px 11px;
  }

  body[data-design="v3"] .v2-assessment-options {
    gap: 4px;
  }

  body[data-design="v3"] .v2-assessment-options strong {
    font-size: .56rem;
  }

  body[data-design="v3"] .v2-task-card {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 11px;
  }

  body[data-design="v3"] .v2-task-card .task-icon {
    width: 44px;
    height: 44px;
  }

  body[data-design="v3"] .v2-inline-status {
    grid-template-columns: repeat(4, minmax(47px, 1fr));
    gap: 3px;
  }

  body[data-design="v3"] .v2-inline-status button {
    grid-template-columns: 1fr;
    padding: 0;
  }

  body[data-design="v3"] .v2-inline-status button::before {
    width: 10px;
    height: 10px;
  }
}

@media (min-width: 760px) {
  body[data-design="v3"] .screen[data-screen="home"] {
    padding-inline: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-design="v3"] *,
  body[data-design="v3"] *::before,
  body[data-design="v3"] *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
