/* Cohérence cardiaque — interface de respiration immersive */
body.coherence-app-page {
  --cc-ink: #f8f5ed;
  --cc-muted: rgba(238, 241, 244, 0.68);
  --cc-panel: rgba(9, 16, 37, 0.88);
  --cc-panel-soft: rgba(255, 255, 255, 0.055);
  --cc-line: rgba(215, 185, 115, 0.19);
  --cc-gold: #d7b973;
  --cc-teal: #72aaa4;
  --cc-teal-bright: #b8ddd7;
  background: #070c1d;
}

body.coherence-app-page .sticky-mobile {
  display: none !important;
}

.coherence-app-hero-v2 {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  padding: clamp(1.5rem, 3.5vw, 3.5rem) 0 clamp(2.2rem, 5vw, 4rem);
  color: var(--cc-ink);
  background:
    radial-gradient(circle at 15% 14%, rgba(119, 200, 194, 0.12), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(223, 199, 128, 0.13), transparent 28%),
    linear-gradient(145deg, #070b1b 0%, #0b1330 56%, #091126 100%);
}

.coherence-app-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.coherence-shell-v2 {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.coherence-heading-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: end;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
}

.coherence-heading-v2 .breadcrumbs {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  color: rgba(248, 245, 237, 0.56);
  font-size: 0.86rem;
}

.coherence-heading-v2 .breadcrumbs a {
  color: rgba(248, 245, 237, 0.75);
}

.coherence-heading-v2 h1 {
  max-width: 760px;
  margin: 0.25rem 0 0;
  color: var(--cc-ink);
  font-size: clamp(2rem, 4.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.coherence-heading-v2 .lead {
  max-width: 460px;
  margin: 0;
  color: rgba(248, 245, 237, 0.72);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.62;
}

.breath-studio {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(224, 202, 145, 0.2);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 46% 35%, rgba(72, 123, 148, 0.12), transparent 42%),
    rgba(5, 10, 25, 0.82);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(24px);
}

.breath-studio__topbar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 2.4vw, 1.65rem);
  border-bottom: 1px solid var(--cc-line);
  background: rgba(255, 255, 255, 0.025);
}

.breath-studio__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.breath-studio__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.breath-studio__mark::before,
.breath-studio__mark::after {
  content: none;
}

.breath-studio__flower {
  position: relative;
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 9px rgba(119, 200, 194, 0.24));
}

.breath-studio__flower-petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19px;
  height: 28px;
  margin: -14px 0 0 -9.5px;
  border: 1px solid rgba(201, 255, 247, 0.2);
  border-radius: 58% 42% 58% 42%;
  background: linear-gradient(145deg, rgba(119, 204, 194, 0.72), rgba(75, 131, 148, 0.46));
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.08);
  transform-origin: 50% 50%;
  transform: rotate(calc(var(--petal) * 45deg)) translateY(-6px);
  mix-blend-mode: screen;
}

.breath-studio__flower-core {
  position: absolute;
  inset: 29%;
  z-index: 2;
  border: 1px solid rgba(226, 255, 250, 0.56);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #f3faf7, #7fbdb6 36%, #356f80 100%);
  box-shadow: 0 0 10px rgba(114, 180, 172, 0.46), inset 0 0 6px rgba(255, 255, 255, 0.3);
}

.breath-studio__identity > div > strong,
.breath-studio__identity > div > span {
  display: block;
}

.breath-studio__identity > div > strong {
  color: var(--cc-ink);
  font-size: 0.96rem;
}

.breath-studio__identity > div > span {
  margin-top: 0.1rem;
  overflow: hidden;
  color: var(--cc-muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--cc-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 245, 237, 0.78);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.studio-icon-button:hover,
.studio-icon-button:focus-visible {
  border-color: rgba(223, 199, 128, 0.5);
  background: rgba(223, 199, 128, 0.09);
  color: #fff;
  transform: translateY(-1px);
}

.studio-icon-button.is-muted {
  opacity: 0.5;
}

[data-open-sound-v2].is-muted {
  opacity: 1;
  border-color: rgba(223, 199, 128, 0.46);
  background: rgba(223, 199, 128, 0.11);
  color: var(--cc-gold);
  box-shadow: inset 0 0 0 1px rgba(223, 199, 128, 0.05);
}

[data-open-sound-v2] .sound-off-slash {
  display: none;
}

[data-open-sound-v2].is-muted .sound-on-waves {
  display: none;
}

[data-open-sound-v2].is-muted .sound-off-slash {
  display: block;
}

.studio-icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-fullscreen-v2] {
    position: relative;
    isolation: isolate;
    overflow: visible;
    animation: fullscreenButtonCue 10s 2.5s ease-in-out infinite;
  }

  [data-fullscreen-v2]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -12px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(223, 199, 128, 0.46) 0%, rgba(119, 200, 194, 0.22) 42%, transparent 72%);
    filter: blur(5px);
    opacity: 0;
    transform: scale(0.72);
    pointer-events: none;
    animation: fullscreenSpotlight 10s 2.5s ease-out infinite;
  }

  @keyframes fullscreenSpotlight {
    0%, 1% { opacity: 0; transform: scale(0.72); }
    4% { opacity: 0.95; transform: scale(1); }
    11% { opacity: 0; transform: scale(1.34); }
    12%, 100% { opacity: 0; transform: scale(1.34); }
  }

  @keyframes fullscreenButtonCue {
    0%, 1%, 12%, 100% {
      border-color: var(--cc-line);
      background: rgba(255, 255, 255, 0.04);
      color: rgba(248, 245, 237, 0.78);
      box-shadow: none;
    }
    4%, 8% {
      border-color: rgba(223, 199, 128, 0.78);
      background: rgba(223, 199, 128, 0.15);
      color: #fffaf1;
      box-shadow: 0 0 0 4px rgba(223, 199, 128, 0.08), 0 0 28px rgba(223, 199, 128, 0.3);
    }
  }

  [data-fullscreen-v2]:hover,
  [data-fullscreen-v2]:focus-visible {
    animation: none;
  }

  [data-fullscreen-v2]:hover::before,
  [data-fullscreen-v2]:focus-visible::before {
    animation: none;
    opacity: 0;
  }

.breath-studio__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  min-height: clamp(590px, 68vh, 720px);
  transition: grid-template-columns 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.breath-studio.settings-open .breath-studio__body {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 476px);
}

.breath-stage-v2 {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 3.5vw, 3.2rem) clamp(1.4rem, 3vw, 2.1rem);
  overflow: hidden;
}

.breath-stage-v2::before {
  content: "";
  position: absolute;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(119, 200, 194, 0.065);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(119, 200, 194, 0.025), 0 0 0 160px rgba(119, 200, 194, 0.015);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.breath-status-v2 {
  position: relative;
  z-index: 2;
  min-height: 104px;
  text-align: center;
}

.breath-status-v2__label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(223, 199, 128, 0.24);
  border-radius: 999px;
  color: var(--cc-gold);
  background: rgba(223, 199, 128, 0.055);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breath-status-v2 h2 {
  margin: 0.55rem 0 0;
  color: var(--cc-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.025em;
}

.breath-status-v2 p {
  margin: 0.45rem 0 0;
  color: var(--cc-muted);
  font-size: 0.9rem;
}

.breath-visual-v2 {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.breath-axis-label {
  position: absolute;
  left: calc(50% + 86px);
  color: rgba(248, 245, 237, 0.34);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breath-axis-label--top { top: 10%; }
.breath-axis-label--bottom { bottom: 10%; }

.breath-track-v2 {
  position: relative;
  width: 74px;
  height: min(39vh, 360px);
  min-height: 270px;
  border: 1px solid rgba(119, 200, 194, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(119, 200, 194, 0.14), rgba(119, 200, 194, 0.025) 48%, rgba(223, 199, 128, 0.07)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 0 34px rgba(99, 171, 180, 0.08), 0 0 70px rgba(53, 105, 139, 0.08);
}

.breath-track-v2::before {
  content: "";
  position: absolute;
  inset: 22px auto;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(168, 240, 232, 0.35), rgba(223, 199, 128, 0.28), transparent);
}

.breath-track-v2::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: inherit;
}

.breath-guide-v2 {
  --guide-position: 82%;
  --guide-scale: 0.82;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: var(--guide-position);
  width: 112px;
  height: 112px;
  transform: translate3d(-50%, -50%, 0) scale(var(--guide-scale));
  transform-origin: center;
  will-change: top, transform;
}

.breath-guide-v2__aura {
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 200, 194, 0.22), rgba(119, 200, 194, 0.06) 48%, transparent 70%);
  filter: blur(8px);
}

.breath-guide-v2__petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 82px;
  margin: -41px 0 0 -28px;
  border: 1px solid rgba(201, 255, 247, 0.18);
  border-radius: 58% 42% 58% 42%;
  background: linear-gradient(145deg, rgba(119, 204, 194, 0.7), rgba(75, 131, 148, 0.44));
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.08);
  transform-origin: 50% 50%;
  transform: rotate(calc(var(--petal) * 45deg)) translateY(-19px);
  mix-blend-mode: screen;
}

.breath-guide-v2__core {
  position: absolute;
  inset: 27%;
  border: 1px solid rgba(226, 255, 250, 0.56);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #f3faf7, #7fbdb6 34%, #356f80 100%);
  box-shadow: 0 0 32px rgba(114, 180, 172, 0.5), inset 0 0 18px rgba(255, 255, 255, 0.32);
}

.breath-studio.is-running .breath-guide-v2__petal {
  animation: breathPetal 14s linear infinite;
}

@keyframes breathPetal {
  to { transform: rotate(calc(var(--petal) * 45deg + 360deg)) translateY(-19px); }
}

.breath-session-v2 {
  position: relative;
  z-index: 3;
  width: min(100%, 520px);
  margin-inline: auto;
}

.breath-session-v2__meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.breath-timer-v2 {
  color: var(--cc-ink);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
}

.breath-session-v2__cycle {
  color: var(--cc-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.breath-progress-v2 {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.breath-progress-v2 span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cc-gold), var(--cc-teal-bright));
  box-shadow: 0 0 18px rgba(119, 200, 194, 0.45);
}

.breath-actions-v2 {
  display: grid;
  grid-template-columns: 48px minmax(190px, 1fr) 48px;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.breath-start-v2 {
  min-height: 54px;
  border: 1px solid rgba(184, 221, 215, 0.34);
  border-radius: 17px;
  background: linear-gradient(135deg, #86bbb4, #639891);
  color: #071326;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(58, 112, 107, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.breath-start-v2:hover,
.breath-start-v2:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(58, 112, 107, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.breath-start-v2[data-state="pause"] {
  background: linear-gradient(135deg, #d8c18a, #b79a57);
}

.breath-settings-v2 {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 0 176px;
  border-left: 1px solid var(--cc-line);
  background: rgba(8, 14, 32, 0.78);
  overflow: hidden;
}

.breath-studio.settings-open .breath-settings-v2 {
  grid-template-columns: minmax(0, 300px) 176px;
}

.breath-settings-v2__drawer {
  display: none;
  grid-column: 1;
  min-width: 0;
  padding: 1.35rem;
  border-right: 1px solid rgba(168, 240, 232, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(119, 200, 194, 0.11), transparent 34%),
    linear-gradient(155deg, #0e1936 0%, #081126 58%, #060d20 100%);
  box-shadow: -18px 0 52px rgba(0, 0, 0, 0.34), inset 1px 0 0 rgba(255, 255, 255, 0.045);
  overflow: auto;
  scrollbar-color: rgba(119, 200, 194, 0.36) transparent;
}

.breath-studio.settings-open .breath-settings-v2__drawer {
  display: block;
  animation: settingReveal 220ms ease both;
}

@keyframes settingReveal {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

.breath-studio.settings-sound-open::after {
  content: "";
  position: absolute;
  z-index: 7;
  inset: 68px 176px 0 0;
  background: rgba(2, 6, 18, 0.58);
  pointer-events: none;
  animation: soundLibraryVeil 220ms ease both;
}

.breath-studio.settings-sound-open .breath-studio__body {
  grid-template-columns: minmax(0, 1fr) 176px;
}

.breath-studio.settings-sound-open .breath-settings-v2 {
  grid-template-columns: 0 176px;
  overflow: visible;
}

.breath-studio.settings-sound-open .breath-settings-v2__drawer {
  position: absolute;
  z-index: 9;
  top: 0;
  right: 176px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100vw - 240px));
  padding: 0;
  border: 1px solid rgba(184, 221, 215, 0.24);
  border-radius: 22px 0 0 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(114, 170, 164, 0.12), transparent 36%),
    linear-gradient(155deg, #101c39 0%, #091329 58%, #060d20 100%);
  box-shadow: -26px 0 80px rgba(0, 0, 0, 0.48), inset 1px 0 0 rgba(255, 255, 255, 0.05);
  animation: soundLibraryReveal 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.breath-studio.settings-sound-open .settings-drawer__head {
  position: relative;
  top: auto;
  width: 100%;
  flex: 0 0 auto;
  margin: 0;
  padding: 1.15rem 1.4rem 1rem;
  border-radius: 21px 0 0 0;
}

@keyframes soundLibraryVeil {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes soundLibraryReveal {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: none; }
}

.settings-drawer__head {
  position: sticky;
  z-index: 6;
  top: -1.35rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: -1.35rem -1.35rem 1.25rem;
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(168, 240, 232, 0.14);
  background: linear-gradient(180deg, rgba(15, 27, 56, 0.99), rgba(10, 20, 43, 0.965));
  box-shadow: 0 14px 28px rgba(3, 7, 18, 0.2);
  backdrop-filter: blur(20px);
}

.settings-drawer__head span,
.settings-drawer__head strong {
  display: block;
}

.settings-drawer__head span {
  margin-bottom: 0.25rem;
  color: var(--cc-gold);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.settings-drawer__head strong {
  color: var(--cc-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.settings-close-v2 {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-color: rgba(248, 245, 237, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.setting-panel-v2[hidden] { display: none; }

.setting-panel-v2__intro {
  margin: -0.45rem 0 1rem;
  color: var(--cc-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.setting-choice-list {
  display: grid;
  gap: 0.65rem;
}

.setting-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.75rem;
  width: 100%;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cc-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 170ms ease, background 170ms ease;
}

.setting-choice:hover,
.setting-choice:focus-visible {
  border-color: rgba(119, 200, 194, 0.34);
  background: rgba(119, 200, 194, 0.06);
}

.setting-choice.is-selected {
  border-color: rgba(215, 185, 115, 0.54);
  background: linear-gradient(135deg, rgba(215, 185, 115, 0.14), rgba(215, 185, 115, 0.045));
  box-shadow: inset 3px 0 0 var(--cc-gold);
}

.setting-choice strong {
  font-size: 0.91rem;
}

.setting-choice span {
  grid-column: 1;
  color: var(--cc-muted);
  font-size: 0.75rem;
}

.setting-choice em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--cc-gold);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
}

.setting-field-v2 {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.setting-field-v2[hidden],
.custom-pattern-v2[hidden] {
  display: none !important;
}

.setting-field-v2 label,
.custom-pattern-v2 label {
  color: rgba(248, 245, 237, 0.7);
  font-size: 0.75rem;
  font-weight: 800;
}

.setting-field-v2 input,
.setting-field-v2 select,
.custom-pattern-v2 input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(224, 202, 145, 0.2);
  border-radius: 11px;
  outline: none;
  background: rgba(3, 8, 21, 0.64);
  color: var(--cc-ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
}

.setting-field-v2 input:focus,
.setting-field-v2 select:focus,
.custom-pattern-v2 input:focus {
  border-color: rgba(119, 200, 194, 0.58);
  box-shadow: 0 0 0 3px rgba(119, 200, 194, 0.09);
}

.custom-pattern-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.custom-pattern-v2 label {
  display: grid;
  gap: 0.35rem;
}

.setting-toggle-v2 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.28rem 1rem;
  align-items: center;
  margin-top: 0.65rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.setting-toggle-v2:hover,
.setting-toggle-v2:focus-within {
  border-color: rgba(119, 200, 194, 0.3);
  background: linear-gradient(135deg, rgba(119, 200, 194, 0.075), rgba(255, 255, 255, 0.025));
}

.setting-toggle-v2 strong {
  color: var(--cc-ink);
  font-size: 0.87rem;
}

.setting-toggle-v2 span {
  color: var(--cc-muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.setting-toggle-v2 > input[type="checkbox"] {
  position: relative;
  width: 54px;
  min-width: 54px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  grid-column: 2;
  grid-row: 1 / span 2;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  outline: none;
  background: rgba(148, 158, 180, 0.14);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.setting-toggle-v2 > input[type="checkbox"]::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: rgba(248, 245, 237, 0.78);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms ease;
}

.setting-toggle-v2 > input[type="checkbox"]:checked {
  border-color: rgba(184, 221, 215, 0.64);
  background: linear-gradient(90deg, rgba(85, 127, 123, 0.94), rgba(117, 171, 165, 0.84));
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(119, 200, 194, 0.08);
}

.setting-toggle-v2 > input[type="checkbox"]:checked::after {
  background: #edfffc;
  transform: translateX(25px);
}

.setting-toggle-v2 > input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(168, 240, 232, 0.2), inset 0 2px 7px rgba(0, 0, 0, 0.2);
}

.setting-audio-v2 {
  width: 100%;
  height: 42px;
  margin-top: 0.9rem;
  accent-color: var(--cc-teal);
  filter: saturate(0.75) brightness(0.9);
}

.setting-audio-v2.is-empty { display: none; }

.sound-panel-v2 {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 1.4rem 1.15rem;
  display: grid;
  grid-template-rows: auto auto minmax(120px, 1fr) auto auto auto;
  gap: 0.72rem;
  overflow: hidden;
}

.sound-panel-v2[hidden] {
  display: none;
}

.sound-panel-v2 .setting-panel-v2__intro {
  margin: 0;
  font-size: 0.82rem;
}

.sound-category-tabs-v2 {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr 1.35fr;
  gap: 0.32rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background: rgba(3, 8, 21, 0.54);
}

.sound-category-tabs-v2 button {
  min-width: 0;
  min-height: 40px;
  padding: 0.48rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(248, 245, 237, 0.58);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.sound-category-tabs-v2 button:hover,
.sound-category-tabs-v2 button:focus-visible {
  color: var(--cc-ink);
  background: rgba(114, 170, 164, 0.08);
}

.sound-category-tabs-v2 button.is-active {
  border-color: rgba(215, 185, 115, 0.46);
  background: linear-gradient(145deg, rgba(215, 185, 115, 0.16), rgba(215, 185, 115, 0.055));
  color: #f5dfaa;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
}

.sound-library-v2 {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 0;
  padding-right: 0.35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(114, 170, 164, 0.45) transparent;
}

.sound-library-v2__loading,
.sound-library-v2__empty {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  color: var(--cc-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
  text-align: center;
}

.sound-group-v2 {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.sound-group-v2[hidden] {
  display: none;
}

.sound-panel-v2 .sound-group-v2__title {
  display: none;
}

.sound-group-v2__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: rgba(248, 245, 237, 0.54);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sound-group-v2__title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.075);
}

.sound-options-v2 {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.sound-option-v2 {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  color: var(--cc-ink);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sound-option-v2:hover,
.sound-option-v2:focus-within {
  border-color: rgba(119, 200, 194, 0.38);
  background: rgba(119, 200, 194, 0.07);
  transform: translateY(-1px);
}

.sound-option-v2.is-selected {
  border-color: rgba(215, 185, 115, 0.58);
  background: linear-gradient(145deg, rgba(215, 185, 115, 0.14), rgba(215, 185, 115, 0.04));
  box-shadow: inset 3px 0 0 var(--cc-gold), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sound-option-v2.is-previewing {
  border-color: rgba(114, 170, 164, 0.58);
  background: linear-gradient(145deg, rgba(114, 170, 164, 0.13), rgba(114, 170, 164, 0.035));
  box-shadow: inset 3px 0 0 var(--cc-teal), 0 10px 28px rgba(0, 0, 0, 0.16);
}

.sound-option-v2__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(119, 200, 194, 0.2);
  border-radius: 11px;
  background: rgba(119, 200, 194, 0.065);
}

.sound-option-v2__preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(119, 200, 194, 0.34);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(119, 200, 194, 0.13), rgba(119, 200, 194, 0.055));
  color: var(--cc-teal-bright);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sound-option-v2__preview::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.sound-option-v2__preview:hover,
.sound-option-v2__preview:focus-visible {
  border-color: rgba(168, 240, 232, 0.72);
  background: rgba(119, 200, 194, 0.2);
  color: #edfffc;
  box-shadow: 0 0 0 4px rgba(119, 200, 194, 0.08);
  transform: scale(1.04);
}

.sound-option-v2__preview.is-playing {
  border-color: rgba(184, 221, 215, 0.62);
  background: rgba(114, 170, 164, 0.18);
  color: var(--cc-teal-bright);
  box-shadow: 0 0 0 3px rgba(114, 170, 164, 0.08), 0 0 22px rgba(114, 170, 164, 0.2);
}

.sound-option-v2__preview.is-playing::before {
  width: 10px;
  height: 14px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 33%, transparent 33% 66%, currentColor 66% 100%);
}

.setting-audio-v2 {
  display: none;
}

.sound-option-v2__select {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sound-option-v2__select:focus-visible .sound-option-v2__copy strong {
  color: var(--cc-teal-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sound-option-v2__icon::before {
  content: "";
  width: 18px;
  height: 14px;
  background: linear-gradient(90deg,
    transparent 0 5%, var(--cc-teal) 5% 13%, transparent 13% 25%,
    var(--cc-teal-bright) 25% 34%, transparent 34% 47%, var(--cc-teal) 47% 56%,
    transparent 56% 69%, var(--cc-teal-bright) 69% 78%, transparent 78% 91%,
    var(--cc-teal) 91% 100%);
  clip-path: polygon(0 42%, 8% 42%, 8% 58%, 27% 58%, 27% 20%, 34% 20%, 34% 80%, 51% 80%, 51% 35%, 58% 35%, 58% 65%, 75% 65%, 75% 44%, 82% 44%, 82% 56%, 100% 56%, 100% 44%, 82% 44%, 82% 44%, 75% 44%, 75% 35%, 58% 35%, 58% 20%, 51% 20%, 51% 80%, 34% 80%, 34% 65%, 27% 65%, 27% 42%);
}

.sound-option-v2[data-sound-choice=""] .sound-option-v2__icon::before {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--cc-teal);
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 44%, var(--cc-teal) 45% 55%, transparent 56%);
  clip-path: none;
}

.sound-option-v2__copy {
  min-width: 0;
}

.sound-option-v2__copy strong,
.sound-option-v2__copy span {
  display: block;
}

.sound-option-v2__copy strong {
  color: var(--cc-ink);
  font-size: 0.8rem;
  line-height: 1.25;
}

.sound-option-v2__copy span {
  margin-top: 0.18rem;
  color: rgba(248, 245, 237, 0.52);
  font-size: 0.67rem;
  line-height: 1.35;
}

.sound-option-v2__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: transparent;
  font-size: 0.72rem;
  font-weight: 900;
}

.sound-option-v2.is-selected .sound-option-v2__check {
  border-color: rgba(235, 216, 169, 0.68);
  background: var(--cc-gold);
  color: #071326;
}

.sound-preview-note-v2 {
  margin: 0;
  color: rgba(248, 245, 237, 0.5);
  font-size: 0.7rem;
  line-height: 1.45;
}

.sound-preview-status-v2 {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(119, 200, 194, 0.2);
  border-radius: 11px;
  background: rgba(119, 200, 194, 0.055);
  color: rgba(226, 255, 250, 0.82);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
}

.sound-preview-status-v2:empty {
  display: none;
}

.sound-preferences-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.sound-preferences-v2 .setting-toggle-v2 {
  margin: 0;
  padding: 0.72rem 0.78rem;
}

.sound-preferences-v2 .setting-toggle-v2 strong {
  font-size: 0.76rem;
}

.sound-preferences-v2 .setting-toggle-v2 span {
  font-size: 0.64rem;
}

.sound-selection-bar-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 -1.4rem -1.15rem;
  padding: 0.8rem 1.4rem calc(0.8rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(215, 185, 115, 0.18);
  background: linear-gradient(180deg, rgba(13, 24, 50, 0.99), rgba(7, 14, 31, 0.995));
  box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.22);
}

.sound-selection-bar-v2 > span,
.sound-selection-bar-v2 small,
.sound-selection-bar-v2 strong {
  display: block;
  min-width: 0;
}

.sound-selection-bar-v2 > span {
  overflow: hidden;
}

.sound-selection-bar-v2 small {
  color: rgba(248, 245, 237, 0.48);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sound-selection-bar-v2 strong {
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--cc-ink);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sound-selection-bar-v2 button {
  min-width: 108px;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(235, 216, 169, 0.56);
  border-radius: 12px;
  background: linear-gradient(135deg, #d8c184, #b99b58);
  color: #071326;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 170ms ease, filter 170ms ease;
}

.sound-selection-bar-v2 button:hover,
.sound-selection-bar-v2 button:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.settings-tabs-v2 {
  display: flex;
  grid-column: 2;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 1rem 0.7rem;
}

.settings-tabs-v2__hint {
  display: grid;
  gap: 0.12rem;
  margin: 0 0 0.2rem;
  padding: 0 0.35rem 0.45rem;
  text-align: left;
}

.settings-tabs-v2__hint strong {
  color: var(--cc-ink);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-tabs-v2__hint span {
  color: rgba(248, 245, 237, 0.54);
  font-size: 0.68rem;
}

.settings-tab-v2 {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
  overflow: hidden;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-height: 106px;
  padding: 0.75rem 0.65rem;
  border: 1px solid rgba(224, 202, 145, 0.2);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  color: rgba(248, 245, 237, 0.84);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.settings-tab-v2:hover,
.settings-tab-v2:focus-visible,
.settings-tab-v2.is-active {
  border-color: rgba(119, 200, 194, 0.52);
  background: linear-gradient(145deg, rgba(119, 200, 194, 0.13), rgba(119, 200, 194, 0.045));
  color: var(--cc-ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(-2px);
}

.settings-tab-v2.is-active {
  border-color: rgba(215, 185, 115, 0.54);
  background: linear-gradient(145deg, rgba(215, 185, 115, 0.12), rgba(215, 185, 115, 0.035));
  box-shadow: inset -2px 0 0 var(--cc-gold);
}

.settings-tab-v2__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  grid-row: 1;
  border: 1px solid rgba(119, 200, 194, 0.22);
  border-radius: 11px;
  background: rgba(119, 200, 194, 0.07);
  color: var(--cc-teal-bright);
}

.settings-tab-v2__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-tab-v2__copy {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.settings-tab-v2__copy strong,
.settings-tab-v2__copy > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-tab-v2__copy strong {
  color: var(--cc-ink);
  font-size: 0.78rem;
  line-height: 1.15;
}

.settings-tab-v2__copy > span {
  margin-top: 0.18rem;
  color: var(--cc-gold);
  font-size: 0.72rem;
  font-weight: 850;
}

.settings-tab-v2__action {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.1rem;
  padding-top: 0.48rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(248, 245, 237, 0.66);
  font-size: 0.65rem;
  font-weight: 800;
}

.settings-tab-v2__action svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.settings-tab-v2:hover .settings-tab-v2__action svg,
.settings-tab-v2:focus-visible .settings-tab-v2__action svg {
  transform: translateX(2px);
}

.breath-studio.is-running .settings-tab-v2 {
  opacity: 0.44;
  cursor: not-allowed;
}

.breath-studio:fullscreen {
  border: 0;
  border-radius: 0;
  background: #070c1d;
}

.breath-studio:fullscreen .breath-studio__topbar {
  padding-top: max(0.8rem, env(safe-area-inset-top));
  padding-right: max(clamp(1rem, 2.4vw, 1.65rem), env(safe-area-inset-right));
  padding-left: max(clamp(1rem, 2.4vw, 1.65rem), env(safe-area-inset-left));
}

.breath-studio:fullscreen [data-share-session] {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
}

.breath-studio:fullscreen .breath-studio__body {
  min-height: calc(100vh - 68px);
}

.coherence-app-info-v2 {
  background: linear-gradient(180deg, #f6f8fa 0%, #edf2f5 100%);
}

.coherence-app-info-v2 .coherence-app-steps article {
  border-radius: 18px;
}

@media (max-width: 880px) {
  .coherence-shell-v2:has(.breath-studio.settings-sound-open) {
    z-index: 80;
  }

  .breath-studio {
    overflow: visible;
    backdrop-filter: none;
  }

  .coherence-heading-v2 {
    grid-template-columns: 1fr;
  }

  .coherence-heading-v2 .lead {
    max-width: 680px;
  }

  .breath-studio__body,
  .breath-studio.settings-open .breath-studio__body {
    display: block;
    min-height: clamp(610px, calc(100svh - 150px), 760px);
  }

  .breath-stage-v2 {
    min-height: inherit;
    padding-bottom: 112px;
  }

  .breath-settings-v2 {
    position: absolute;
    inset: auto 0 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    border: 0;
    background: transparent;
    overflow: visible;
    pointer-events: none;
  }

  .breath-settings-v2__drawer {
    position: fixed;
    z-index: 61;
    right: 10px;
    bottom: calc(84px + max(10px, env(safe-area-inset-bottom)));
    left: 10px;
    order: 1;
    width: auto;
    max-height: min(58svh, 520px);
    margin: 0;
    padding: 1.2rem;
    border: 1px solid rgba(168, 240, 232, 0.27);
    border-radius: 22px;
    background:
      radial-gradient(circle at 100% 0%, rgba(119, 200, 194, 0.13), transparent 35%),
      linear-gradient(155deg, #111d3c 0%, #09132b 56%, #060d20 100%);
    box-shadow:
      0 0 0 100vmax rgba(2, 6, 18, 0.66),
      0 -28px 80px rgba(0, 0, 0, 0.62),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
    pointer-events: auto;
  }

  .settings-drawer__head {
    top: -1.2rem;
    margin: -1.2rem -1.2rem 1rem;
    padding: 1.05rem 1.2rem 0.9rem;
    border-radius: 21px 21px 0 0;
  }

  .breath-studio.settings-open .breath-settings-v2__drawer {
    animation-name: settingRevealMobile;
  }

  @keyframes settingRevealMobile {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }

  .settings-tabs-v2 {
    position: fixed;
    z-index: 62;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0;
    padding: 0.45rem;
    border: 1px solid rgba(224, 202, 145, 0.18);
    border-radius: 20px;
    background: rgba(9, 16, 37, 0.94);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(22px);
    pointer-events: auto;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .breath-studio:not(.is-in-view) .settings-tabs-v2 {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
  }

  .breath-studio:not(.is-in-view) .breath-settings-v2__drawer {
    display: none;
  }

  .settings-tabs-v2__hint {
    display: none;
  }

  .settings-tab-v2 {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 68px;
    gap: 0.18rem;
    padding: 0.42rem;
    text-align: center;
  }

  .settings-tab-v2.is-active {
    box-shadow: inset 0 -2px 0 var(--cc-gold);
  }

  .settings-tab-v2__icon {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
  }

  .settings-tab-v2__icon svg {
    width: 18px;
    height: 18px;
  }

  .settings-tab-v2__copy strong { font-size: 0.69rem; }
  .settings-tab-v2__copy > span { margin-top: 0.12rem; font-size: 0.62rem; }
  .settings-tab-v2__action { display: none; }

  .breath-studio.settings-sound-open::after {
    content: none;
  }

  .breath-studio.settings-sound-open .breath-settings-v2__drawer {
    position: fixed;
    z-index: 61;
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    bottom: calc(84px + max(10px, env(safe-area-inset-bottom)));
    left: 10px;
    display: flex;
    width: auto;
    max-height: none;
    padding: 0;
    border-radius: 22px;
    box-shadow:
      0 0 0 100vmax rgba(2, 6, 18, 0.72),
      0 -28px 80px rgba(0, 0, 0, 0.62),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
    animation-name: settingRevealMobile;
  }

  .breath-studio.settings-sound-open .settings-drawer__head {
    width: 100%;
    margin: 0;
    padding: 1rem 1rem 0.85rem;
    border-radius: 21px 21px 0 0;
  }

  .sound-panel-v2 {
    padding: 0 0.9rem 1rem;
    grid-template-rows: auto auto minmax(100px, 1fr) auto auto auto;
    gap: 0.58rem;
  }

  .sound-category-tabs-v2 {
    grid-template-columns: 0.72fr 1.18fr 1.3fr;
  }

  .sound-category-tabs-v2 button {
    min-height: 42px;
    padding-inline: 0.35rem;
    font-size: 0.61rem;
  }

  .sound-preferences-v2 {
    grid-template-columns: 1fr;
    gap: 0.42rem;
  }

  .sound-preferences-v2 .setting-toggle-v2 {
    padding: 0.58rem 0.7rem;
  }

  .sound-selection-bar-v2 {
    margin: 0 -0.9rem -1rem;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .coherence-app-hero-v2 {
    min-height: auto;
    padding: 0.85rem 0 1.3rem;
  }

  .coherence-shell-v2 {
    width: min(100% - 16px, 1240px);
  }

  .coherence-heading-v2 {
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding-inline: 0.35rem;
  }

  .coherence-heading-v2 .breadcrumbs { display: none; }

  .coherence-heading-v2 h1 {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
    line-height: 1.02;
  }

  .coherence-heading-v2 .lead {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .breath-studio {
    border-radius: 24px;
  }

  .breath-studio__topbar {
    min-height: 58px;
    padding: 0.6rem 0.75rem;
  }

  .breath-studio__mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .breath-studio__flower {
    width: 34px;
    height: 34px;
  }

  .breath-studio__identity > div > strong { font-size: 0.85rem; }
  .breath-studio__identity > div > span { max-width: 190px; font-size: 0.69rem; }

  .breath-studio__body,
  .breath-studio.settings-open .breath-studio__body {
    min-height: min(700px, calc(100svh - 118px));
  }

  .breath-stage-v2 {
    grid-template-rows: auto minmax(245px, 1fr) auto;
    padding: 1.1rem 0.85rem 102px;
  }

  .breath-stage-v2::before {
    display: none;
  }

  .breath-status-v2 {
    min-height: 87px;
  }

  .breath-status-v2 h2 {
    margin-top: 0.4rem;
    font-size: clamp(1.85rem, 10vw, 2.7rem);
  }

  .breath-status-v2 p {
    max-width: 280px;
    margin: 0.35rem auto 0;
    font-size: 0.78rem;
  }

  .breath-visual-v2 { min-height: 245px; }

  .breath-track-v2 {
    width: 64px;
    height: min(35svh, 310px);
    min-height: 235px;
  }

  .breath-guide-v2 {
    width: 94px;
    height: 94px;
  }

  .breath-guide-v2__petal {
    width: 48px;
    height: 69px;
    margin: -34.5px 0 0 -24px;
    transform: rotate(calc(var(--petal) * 45deg)) translateY(-16px);
  }

  .breath-studio.is-running .breath-guide-v2__petal {
    animation: none;
  }

  .breath-axis-label { display: none; }

  .breath-session-v2__meta { margin-bottom: 0.45rem; }
  .breath-session-v2__cycle { font-size: 0.72rem; }

  .breath-actions-v2 {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0.55rem;
    margin-top: 0.8rem;
  }

  .breath-start-v2 { min-height: 50px; }

  .studio-icon-button {
    width: 44px;
    height: 44px;
  }

  .settings-drawer__head { margin-bottom: 1rem; }
  .settings-drawer__head strong { font-size: 1.25rem; }

  .coherence-app-info-v2 {
    padding-top: 2.6rem;
  }
}

@media (max-height: 720px) and (max-width: 880px) {
  .coherence-heading-v2 .lead { display: none; }
  .breath-studio__body,
  .breath-studio.settings-open .breath-studio__body { min-height: 570px; }
  .breath-track-v2 { height: 245px; min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .breath-guide-v2__petal,
  .breath-studio.is-running .breath-guide-v2__petal {
    animation: none;
  }

  .breath-studio__body,
  .breath-guide-v2,
  .breath-start-v2,
  .studio-icon-button {
    transition: none;
  }

  [data-fullscreen-v2],
  [data-fullscreen-v2]::before {
    animation: none;
  }
}
