/* Mental Health Pass 4 — Grounding and Clear My Head only. */
#mentalToolExperience.grounding-active,
#mentalToolExperience.clear-head-active {
  --mh-coral: #ff8a74;
  --mh-bright-rose: #ff637f;
  --mh-rose: #d44768;
  --mh-berry: #5f1d42;
  --mh-highlight: #ffd8cf;
  --mh-cream: #f4f1e9;
  --mh-ink: #10151d;
  --mh-gunmetal: #1b222c;
  --mh-trim: linear-gradient(135deg, var(--mh-coral) 0%, var(--mh-bright-rose) 38%, var(--mh-rose) 64%, var(--mh-berry) 100%);
  background: var(--mh-cream) !important;
  color: var(--mh-ink) !important;
}

#mentalToolExperience.grounding-active .mh-tool-top,
#mentalToolExperience.clear-head-active .mh-tool-top {
  position: sticky;
  top: -20px;
  z-index: 8;
  margin: -20px -20px 0;
  padding: 18px 20px 13px;
  border-bottom: 1px solid #d5d0c7 !important;
  background: rgba(244, 241, 233, .97) !important;
  backdrop-filter: blur(12px) !important;
}

#mentalToolExperience.grounding-active .mh-tool-top button,
#mentalToolExperience.clear-head-active .mh-tool-top button {
  min-height: 44px !important;
  color: var(--mh-ink) !important;
}

#mentalToolExperience.grounding-active .mh-tool-top span,
#mentalToolExperience.clear-head-active .mh-tool-top span,
#mentalToolExperience.grounding-active .k,
#mentalToolExperience.clear-head-active .k {
  color: var(--mh-rose) !important;
}

#mentalToolExperience.grounding-active #mentalToolContent,
#mentalToolExperience.clear-head-active #mentalToolContent {
  min-height: 100%;
  padding-top: 24px !important;
  padding-bottom: 112px !important;
  background: transparent !important;
}

#mentalToolExperience.grounding-active .grounding-screen,
#mentalToolExperience.clear-head-active .clear-head-screen {
  min-height: calc(100dvh - 208px);
}

#mentalToolExperience.grounding-active h2,
#mentalToolExperience.clear-head-active h2 {
  color: var(--mh-ink) !important;
}

#mentalToolExperience.grounding-active p,
#mentalToolExperience.clear-head-active p {
  color: #625f5d !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* Existing photography remains recognizable; contrast is local to its own image. */
#mentalToolExperience.grounding-active .grounding-feature-image,
#mentalToolExperience.clear-head-active .clear-head-feature-image {
  display: block;
  width: 100%;
  height: clamp(128px, 34vw, 156px);
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(95, 29, 66, .2) !important;
  border-radius: 20px;
  background: var(--mh-ink) !important;
  box-shadow: 0 14px 30px rgba(31, 23, 28, .14) !important;
}

#mentalToolExperience.grounding-active .grounding-feature-image img,
#mentalToolExperience.clear-head-active .clear-head-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02) brightness(1.08);
}

#mentalToolExperience.grounding-active .grounding-feature-image img { object-position: center 50%; }
#mentalToolExperience.clear-head-active .clear-head-feature-image img { object-position: center 48%; }

/* Grounding menu. Functional exercise colours remain inside the exercises. */
#mentalToolExperience.grounding-active .grounding-choice-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 11px !important;
  margin-top: 22px !important;
}

#mentalToolExperience.grounding-active .grounding-feature-image {
  height: clamp(172px, 46vw, 214px);
  margin: 0 0 22px;
}

#mentalToolExperience.grounding-active .grounding-intro { margin-bottom: 0; }

#mentalToolExperience.grounding-active .grounding-choice {
  --ground-accent: var(--mh-coral);
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  min-height: 108px !important;
  padding: 17px 50px 17px 76px !important;
  border: 1px solid #303947 !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, var(--mh-gunmetal), var(--mh-ink)) !important;
  color: #fffaf5 !important;
  box-shadow: 0 13px 28px rgba(31, 23, 28, .14), inset 0 1px rgba(255,255,255,.04) !important;
}

#mentalToolExperience.grounding-active .mh-step::before,
#mentalToolExperience.clear-head-active .clear-head-item::before,
#mentalToolExperience.clear-head-active .clear-head-choice.on::before,
#mentalToolExperience.clear-head-active .mh-result::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  border: solid transparent;
  border-width: 3px 0 0 3px;
  border-radius: inherit;
  background: var(--mh-trim) border-box;
  -webkit-mask: linear-gradient(#000 0 0) border-box, linear-gradient(#000 0 0) padding-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

#mentalToolExperience.grounding-active .grounding-choice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--mh-coral), var(--mh-rose), var(--mh-berry));
  opacity: .78;
  pointer-events: none;
}

#mentalToolExperience.grounding-active .grounding-choice-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 138, 116, .42) !important;
  border-radius: 50%;
  background: #131a22 !important;
  color: var(--mh-coral) !important;
}

#mentalToolExperience.grounding-active .grounding-choice b { color: #fffaf5 !important; font-size: 15px !important; }
#mentalToolExperience.grounding-active .grounding-choice small { color: #c7c3c1 !important; font-size: 11px !important; }
#mentalToolExperience.grounding-active .grounding-choice-arrow { color: var(--mh-coral) !important; }

/* 5-4-3-2-1 keeps its tactile count state. */
#mentalToolExperience.grounding-active .grounding-stage-progress i { background: #d8d1c8 !important; }
#mentalToolExperience.grounding-active .grounding-stage-progress i.on,
#mentalToolExperience.grounding-active .grounding-step-track i { background: var(--mh-trim) !important; }
#mentalToolExperience.grounding-active .mh-big-count { color: var(--mh-rose) !important; text-shadow: none !important; }
#mentalToolExperience.grounding-active .mh-dot {
  width: 52px !important;
  height: 52px !important;
  border-color: #555e69 !important;
  background: var(--mh-ink) !important;
  color: #fffaf5 !important;
}
#mentalToolExperience.grounding-active .mh-dot.done {
  border-color: var(--mh-bright-rose) !important;
  background: var(--mh-trim) !important;
  color: #190d14 !important;
}

/* Guided step and timed surfaces. */
#mentalToolExperience.grounding-active .mh-step,
#mentalToolExperience.clear-head-active .clear-head-item,
#mentalToolExperience.clear-head-active .mh-result {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #303947 !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, var(--mh-gunmetal), var(--mh-ink)) !important;
  color: #fffaf5 !important;
  box-shadow: 0 14px 30px rgba(31, 23, 28, .14) !important;
}

#mentalToolExperience.grounding-active .mh-step { padding: 22px 20px 24px !important; }
#mentalToolExperience.grounding-active .mh-step-label { color: var(--mh-coral) !important; }
#mentalToolExperience.grounding-active .mh-step h3,
#mentalToolExperience.clear-head-active .clear-head-item b,
#mentalToolExperience.clear-head-active .mh-result strong { color: #fffaf5 !important; }
#mentalToolExperience.grounding-active .mh-step p,
#mentalToolExperience.clear-head-active .mh-result p { color: #c7c3c1 !important; }

#mentalToolExperience.grounding-active .grounding-prompt-grid {
  grid-template-columns: 1fr !important;
  gap: 9px !important;
}
#mentalToolExperience.grounding-active .grounding-prompt-grid .mh-choice {
  min-height: 62px !important;
  padding: 15px 44px 15px 16px !important;
  border: 1px solid #303947 !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, var(--mh-gunmetal), var(--mh-ink)) !important;
  color: #fffaf5 !important;
}
#mentalToolExperience.grounding-active .grounding-prompt-grid .mh-choice::after { color: var(--mh-coral) !important; }

#mentalToolExperience.grounding-active .grounding-active-instruction { color: var(--mh-ink) !important; }
#mentalToolExperience.grounding-active .grounding-timer {
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 99, 127, .44) !important;
  background: radial-gradient(circle at 36% 30%, rgba(255, 138, 116, .18), rgba(95, 29, 66, .16) 50%, var(--mh-ink) 76%) !important;
  box-shadow: 0 0 0 9px rgba(212, 71, 104, .06), 0 16px 34px rgba(31, 23, 28, .16) !important;
  color: #fffaf5 !important;
}

#mentalToolExperience.grounding-active .grounding-audio-toggle {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 1px solid rgba(95, 29, 66, .24) !important;
  border-radius: 999px !important;
  background: #fffaf5 !important;
  color: var(--mh-berry) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
}

#mentalToolExperience.grounding-active .grounding-audio-toggle[aria-pressed="true"] {
  border-color: var(--mh-rose) !important;
  background: #f8e4e3 !important;
  box-shadow: inset 3px 0 var(--mh-bright-rose) !important;
}

#mentalToolExperience.grounding-active .grounding-sixty-card {
  position: relative;
  isolation: isolate;
  margin-top: 18px;
  padding: 22px 18px 24px;
  overflow: hidden;
  text-align: center;
  border: 1px solid #303947;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--mh-gunmetal), var(--mh-ink));
  box-shadow: 0 16px 36px rgba(31,23,28,.16);
}

#mentalToolExperience.grounding-active .grounding-sixty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: solid transparent;
  border-width: 3px 0 0 3px;
  border-radius: inherit;
  background: var(--mh-trim) border-box;
  -webkit-mask: linear-gradient(#000 0 0) border-box, linear-gradient(#000 0 0) padding-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

#mentalToolExperience.grounding-active .grounding-sixty-step {
  display: block;
  color: var(--mh-coral);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .13em;
}

#mentalToolExperience.grounding-active .grounding-sixty-card h2 {
  margin: 12px 0 8px;
  color: #fffaf5 !important;
  font-size: 34px !important;
}

#mentalToolExperience.grounding-active .grounding-sixty-card .grounding-active-instruction {
  min-height: 40px;
  color: #d6d1cf !important;
}

#mentalToolExperience.grounding-active .grounding-sixty-card .grounding-timer {
  display: grid;
  place-items: center;
  margin: 21px auto 0;
  font-size: 46px !important;
}

#mentalToolExperience.grounding-active .grounding-sixty-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 14px;
}

#mentalToolExperience.grounding-active .grounding-sixty-actions .mh-primary,
#mentalToolExperience.grounding-active .grounding-sixty-actions .mh-secondary { margin-top: 0 !important; }

#mentalToolExperience.grounding-active .grounding-complete,
#mentalToolExperience.grounding-active .grounding-mental-task { padding-top: 8px; }

#mentalToolExperience.grounding-active .grounding-complete p,
#mentalToolExperience.grounding-active .grounding-mental-task p { margin-bottom: 22px; }

/* Shared scoped actions. */
#mentalToolExperience.grounding-active .mh-primary,
#mentalToolExperience.clear-head-active .mh-primary {
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #202936, var(--mh-ink)) !important;
  color: #fffaf5 !important;
  box-shadow: inset 3px 0 var(--mh-bright-rose), 0 12px 26px rgba(31, 23, 28, .15) !important;
}
#mentalToolExperience.grounding-active .mh-primary:disabled,
#mentalToolExperience.clear-head-active .mh-primary:disabled {
  border: 1px solid #d4cec5 !important;
  background: #e4dfd6 !important;
  color: #8c8580 !important;
  box-shadow: none !important;
}
#mentalToolExperience.grounding-active .mh-secondary,
#mentalToolExperience.clear-head-active .mh-secondary {
  min-height: 48px !important;
  border: 1px solid #bbb4ab !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #514c4a !important;
}

/* Clear My Head inputs and temporary sorting workflow. */
#mentalToolExperience.clear-head-active .mh-textarea,
#mentalToolExperience.clear-head-active .mh-input {
  width: 100%;
  border: 1px solid #bdb6ad !important;
  border-radius: 14px !important;
  background: #fffaf5 !important;
  color: var(--mh-ink) !important;
  caret-color: var(--mh-rose);
  font-size: 16px !important;
}
#mentalToolExperience.clear-head-active .mh-textarea::placeholder,
#mentalToolExperience.clear-head-active .mh-input::placeholder { color: #77716d !important; opacity: 1; }
#mentalToolExperience.clear-head-active .mh-textarea:focus,
#mentalToolExperience.clear-head-active .mh-input:focus { outline: 3px solid rgba(212, 71, 104, .24); border-color: var(--mh-rose) !important; }

#mentalToolExperience.clear-head-active .clear-head-progress { color: var(--mh-rose) !important; font-size: 11px !important; }
#mentalToolExperience.clear-head-active .clear-head-categories,
#mentalToolExperience.clear-head-active .clear-head-choice-grid { gap: 9px; }
#mentalToolExperience.clear-head-active .clear-head-category,
#mentalToolExperience.clear-head-active .clear-head-choice {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 58px;
  border: 1px solid #303947 !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, var(--mh-gunmetal), var(--mh-ink)) !important;
  color: #fffaf5 !important;
  font-size: 11px !important;
}
#mentalToolExperience.clear-head-active .clear-head-category.on,
#mentalToolExperience.clear-head-active .clear-head-choice.on {
  border-color: var(--mh-bright-rose) !important;
  background: linear-gradient(145deg, #28202a, var(--mh-ink)) !important;
  box-shadow: inset 3px 0 var(--mh-bright-rose) !important;
}

/* Category meaning stays textual; subdued markers distinguish function without becoming section identity. */
#mentalToolExperience.clear-head-active .clear-head-category[data-cat="act"] { border-left-color: #b7a96d !important; }
#mentalToolExperience.clear-head-active .clear-head-category[data-cat="later"] { border-left-color: #8f879a !important; }
#mentalToolExperience.clear-head-active .clear-head-category[data-cat="control"] { border-left-color: #7e8b91 !important; }

#mentalToolExperience.clear-head-active .clear-head-sorted-row,
#mentalToolExperience.clear-head-active .clear-head-review {
  border: 1px solid #d7d0c7 !important;
  border-radius: 14px !important;
  background: #fffaf5 !important;
}
#mentalToolExperience.clear-head-active .clear-head-sorted-row span,
#mentalToolExperience.clear-head-active .clear-head-review h3,
#mentalToolExperience.clear-head-active .clear-head-review ul { color: var(--mh-ink) !important; }
#mentalToolExperience.clear-head-active .clear-head-sorted-row button { color: var(--mh-rose) !important; }
#mentalToolExperience.clear-head-active .clear-head-review p { color: #625f5d !important; }
#mentalToolExperience.clear-head-active .mh-result b { color: var(--mh-coral) !important; }

@media (max-width: 390px) {
  #mentalToolExperience.grounding-active,
  #mentalToolExperience.clear-head-active { padding-inline: 16px !important; }
  #mentalToolExperience.grounding-active .mh-tool-top,
  #mentalToolExperience.clear-head-active .mh-tool-top { margin-inline: -16px; padding-inline: 16px; }
  #mentalToolExperience.grounding-active h2,
  #mentalToolExperience.clear-head-active h2 { font-size: 38px !important; }
}

@media (max-width: 360px) {
  #mentalToolExperience.grounding-active .grounding-choice { padding-left: 70px !important; padding-right: 42px !important; }
  #mentalToolExperience.grounding-active .mh-dot { width: 48px !important; height: 48px !important; }
  #mentalToolExperience.grounding-active .grounding-timer { width: 138px; height: 138px; font-size: 44px !important; }
  #mentalToolExperience.clear-head-active .clear-head-category,
  #mentalToolExperience.clear-head-active .clear-head-choice { min-height: 60px; }
}

/* Grounding premium rebuild — route-scoped. Clear My Head and every other
   Mental surface retain their established presentation. */
html.grounding-open,
body.grounding-open { overflow: hidden; overscroll-behavior: none; }

#mentalToolExperience.grounding-active {
  --ground-coral: #ff681f;
  --ground-coral-soft: #ff8a74;
  --ground-cream: #f4f1e9;
  --ground-face: #fffaf0;
  --ground-ink: #10151d;
  --ground-muted: #625f5d;
  position: fixed !important;
  inset: 0 !important;
  z-index: 22000 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 96% 11%, rgba(255,104,31,.08), transparent 28%),
    linear-gradient(180deg, #f7f3eb 0%, var(--ground-cream) 52%, #eee7dc 100%) !important;
  color: var(--ground-ink) !important;
  box-sizing: border-box;
}

#mentalToolExperience.grounding-active .mh-tool-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  display: grid !important;
  grid-template-columns: 92px minmax(0,1fr) 92px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: calc(68px + env(safe-area-inset-top)) !important;
  margin: 0 !important;
  padding: env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left)) !important;
  border-bottom: 1px solid rgba(16,21,29,.15) !important;
  background: rgba(244,241,233,.96) !important;
  backdrop-filter: blur(16px) !important;
  box-sizing: border-box;
}

#mentalToolExperience.grounding-active .mh-tool-top button {
  width: 92px;
  min-width: 0;
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #3d3a3a !important;
  font: 900 12px/1 Arial,Helvetica,sans-serif !important;
  letter-spacing: .045em !important;
}

#mentalToolExperience.grounding-active #closeMentalTool { text-align: left; }
#mentalToolExperience.grounding-active #groundingClose { text-align: right; }
#mentalToolExperience.grounding-active #mentalToolLabel {
  display: grid;
  min-width: 0;
  justify-items: center;
  color: var(--ground-ink) !important;
  font-family: Arial,Helvetica,sans-serif;
  line-height: 1.05;
  text-align: center;
}
#mentalToolExperience.grounding-active #mentalToolLabel b {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}
#mentalToolExperience.grounding-active #mentalToolLabel small {
  margin-top: 4px;
  color: #746f6b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

#mentalToolExperience.grounding-active #mentalToolContent {
  width: min(100%,430px);
  min-height: calc(100dvh - 68px);
  margin: 0 auto;
  padding: 22px 20px max(42px,env(safe-area-inset-bottom)) !important;
  background: transparent !important;
  box-sizing: border-box;
}

#mentalToolExperience.grounding-active .grounding-screen {
  min-height: calc(100dvh - 132px) !important;
  padding-bottom: 18px;
}

#mentalToolExperience.grounding-active .grounding-feature-image {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(198px,55vw,238px) !important;
  margin: 0 0 24px !important;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(90,72,60,.22) !important;
  border-radius: 25px !important;
  background: linear-gradient(145deg,#fffdf6,#e3d8ca) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.98),
    inset -3px -4px 0 rgba(83,67,55,.12),
    0 17px 34px rgba(50,38,31,.18) !important;
  box-sizing: border-box;
}

#mentalToolExperience.grounding-active .grounding-feature-image::after {
  content:"";
  position:absolute;
  inset:7px;
  border:1px solid rgba(255,104,31,.48);
  border-radius:18px;
  pointer-events:none;
}

#mentalToolExperience.grounding-active .grounding-feature-image picture,
#mentalToolExperience.grounding-active .grounding-feature-image img {
  display:block;
  width:100%;
  height:100%;
  border-radius:18px;
}
#mentalToolExperience.grounding-active .grounding-feature-image img {
  object-fit:cover;
  object-position:58% 50% !important;
  filter:none !important;
}

#mentalToolExperience.grounding-active .grounding-intro { margin: 0 0 22px; }
#mentalToolExperience.grounding-active .k {
  margin: 0 !important;
  color: var(--ground-coral) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: .13em !important;
}
#mentalToolExperience.grounding-active h2 {
  margin: 9px 0 12px !important;
  color: var(--ground-ink) !important;
  font: 950 clamp(36px,10.5vw,48px)/.94 Arial,Helvetica,sans-serif !important;
  letter-spacing: -.045em !important;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  scroll-margin-top: 92px;
}
#mentalToolExperience.grounding-active p {
  margin: 0;
  color: var(--ground-muted) !important;
  font-size: 15px !important;
  line-height: 1.52 !important;
}

#mentalToolExperience.grounding-active .grounding-choice-grid {
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:12px !important;
  margin:0 !important;
}
#mentalToolExperience.grounding-active .grounding-choice {
  position:relative !important;
  display:grid !important;
  grid-template-columns:52px minmax(0,1fr) 44px !important;
  grid-template-rows:auto auto !important;
  column-gap:14px !important;
  align-items:center !important;
  width:100% !important;
  min-height:104px !important;
  padding:17px 13px 17px 17px !important;
  overflow:hidden !important;
  border:1px solid rgba(91,73,61,.22) !important;
  border-radius:21px !important;
  background:linear-gradient(145deg,#fffdf6 0%,var(--ground-face) 56%,#eadfd2 100%) !important;
  color:var(--ground-ink) !important;
  text-align:left !important;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.98),
    inset -3px -4px 0 rgba(83,67,55,.10),
    0 12px 24px rgba(53,40,32,.12) !important;
  box-sizing:border-box;
}
#mentalToolExperience.grounding-active .grounding-choice::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--ground-coral-soft),var(--ground-coral));
  opacity:.72;
}
#mentalToolExperience.grounding-active .grounding-choice-icon {
  position:static !important;
  grid-row:1/3;
  width:48px;
  height:48px;
  transform:none !important;
  border:1px solid rgba(255,104,31,.3) !important;
  background:linear-gradient(145deg,#fffdf6,#e7dacb) !important;
  color:var(--ground-coral) !important;
  box-shadow:inset 1px 1px #fff,0 5px 11px rgba(71,49,38,.12);
}
#mentalToolExperience.grounding-active .grounding-choice-icon svg { width:24px;height:24px; }
#mentalToolExperience.grounding-active .grounding-choice b {
  grid-column:2;
  align-self:end;
  color:var(--ground-ink) !important;
  font-size:17px !important;
  line-height:1.15 !important;
  letter-spacing:.01em;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
#mentalToolExperience.grounding-active .grounding-choice small {
  grid-column:2;
  align-self:start;
  margin-top:6px;
  color:#625d59 !important;
  font-size:14px !important;
  line-height:1.35 !important;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
#mentalToolExperience.grounding-active .grounding-choice-arrow {
  position:static !important;
  grid-column:3;
  grid-row:1/3;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  transform:none !important;
  border:1px solid rgba(255,104,31,.24);
  border-radius:50%;
  background:#fbefe4;
  color:var(--ground-coral) !important;
  font-size:19px;
}
#mentalToolExperience.grounding-active .grounding-choice:active { transform:translateY(1px);box-shadow:inset 1px 2px 5px rgba(70,50,39,.12) !important; }

#mentalToolExperience.grounding-active .grounding-stage-progress {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:7px;
  margin:3px 0 24px;
}
#mentalToolExperience.grounding-active .grounding-stage-progress i {
  height:5px;
  border-radius:999px;
  background:#d9d0c5 !important;
  box-shadow:inset 0 1px 2px rgba(45,35,29,.14);
}
#mentalToolExperience.grounding-active .grounding-stage-progress i.on { background:var(--ground-coral) !important; }
#mentalToolExperience.grounding-active .mh-big-count {
  margin:22px 0 12px;
  color:var(--ground-ink) !important;
  font-size:40px !important;
  text-shadow:none !important;
}
#mentalToolExperience.grounding-active .mh-tap-row { display:flex;flex-wrap:wrap;gap:10px !important;margin:14px 0 22px !important; }
#mentalToolExperience.grounding-active .mh-dot {
  width:52px !important;
  height:52px !important;
  border:1px solid #bcb2a7 !important;
  background:linear-gradient(145deg,#fffdf6,#e4d8cb) !important;
  color:var(--ground-ink) !important;
  box-shadow:inset 1px 1px #fff,0 7px 13px rgba(53,40,32,.12);
}
#mentalToolExperience.grounding-active .mh-dot.done {
  border-color:var(--ground-coral) !important;
  background:#f8e1d6 !important;
  color:#64230c !important;
  box-shadow:inset 0 0 0 2px var(--ground-coral),0 7px 13px rgba(116,55,29,.14) !important;
}

#mentalToolExperience.grounding-active .mh-step,
#mentalToolExperience.grounding-active .grounding-sixty-card,
#mentalToolExperience.grounding-active .grounding-prompt-grid .mh-choice {
  position:relative !important;
  overflow:hidden !important;
  border:1px solid rgba(91,73,61,.22) !important;
  background:linear-gradient(145deg,#fffdf6 0%,var(--ground-face) 60%,#eadfd2 100%) !important;
  color:var(--ground-ink) !important;
  box-shadow:inset 1px 1px 0 #fff, inset -3px -4px 0 rgba(83,67,55,.09),0 14px 28px rgba(53,40,32,.13) !important;
}
#mentalToolExperience.grounding-active .mh-step {
  margin-top:18px !important;
  padding:23px 20px 25px !important;
  border-radius:22px !important;
}
#mentalToolExperience.grounding-active .mh-step::before { width:4px;background:var(--ground-coral) !important; }
#mentalToolExperience.grounding-active .mh-step-label,
#mentalToolExperience.grounding-active .grounding-sixty-step { color:var(--ground-coral) !important;font-size:12px !important; }
#mentalToolExperience.grounding-active .mh-step h3 { color:var(--ground-ink) !important;font-size:26px !important;line-height:1.05; }
#mentalToolExperience.grounding-active .mh-step p { color:var(--ground-muted) !important; }
#mentalToolExperience.grounding-active .grounding-step-track { height:6px;background:#d9d0c5; }
#mentalToolExperience.grounding-active .grounding-step-track i { background:var(--ground-coral) !important; }

#mentalToolExperience.grounding-active .grounding-prompt-grid { display:grid !important;grid-template-columns:1fr !important;gap:11px !important;margin:20px 0 0; }
#mentalToolExperience.grounding-active .grounding-prompt-grid .mh-choice {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 50px !important;
  align-items:center !important;
  column-gap:12px !important;
  min-height:68px !important;
  padding:12px 12px 12px 17px !important;
  border-radius:17px !important;
  color:var(--ground-ink) !important;
  font-size:16px !important;
  line-height:1.35;
  text-align:left;
}
#mentalToolExperience.grounding-active .grounding-prompt-grid .mh-choice::after { content:none !important; }
#mentalToolExperience.grounding-active .grounding-prompt-grid .mh-choice b {
  min-width:0;
  color:var(--ground-ink) !important;
  font-size:16px !important;
  line-height:1.3 !important;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
#mentalToolExperience.grounding-active .grounding-prompt-state {
  display:grid;
  grid-template-rows:1fr auto;
  place-items:center;
  width:44px;
  min-width:44px;
  min-height:44px;
  border:1px solid rgba(255,104,31,.25);
  border-radius:50%;
  background:#fbefe4;
  color:var(--ground-coral);
  box-sizing:border-box;
}
#mentalToolExperience.grounding-active .grounding-prompt-state i {
  align-self:center;
  font-size:20px;
  font-style:normal;
  font-weight:950;
  line-height:1;
}
#mentalToolExperience.grounding-active .grounding-prompt-state small {
  margin-top:-8px;
  padding-bottom:5px;
  color:#753018;
  font-size:8px;
  font-weight:950;
  line-height:1;
  letter-spacing:.05em;
}
#mentalToolExperience.grounding-active .grounding-prompt-grid .mh-choice.is-complete {
  border-color:rgba(255,104,31,.74) !important;
  background:linear-gradient(145deg,#fffdf6 0%,#fae8de 66%,#ead8cd 100%) !important;
  box-shadow:inset 4px 0 var(--ground-coral),inset 1px 1px #fff,0 12px 24px rgba(87,46,29,.13) !important;
}
#mentalToolExperience.grounding-active .grounding-prompt-grid .mh-choice.is-complete .grounding-prompt-state {
  border-color:var(--ground-coral);
  background:#f8d9ca;
}
#mentalToolExperience.grounding-active .grounding-mental-progress {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:48px;
  margin:18px 0 11px;
  padding:10px 13px;
  border:1px solid rgba(91,73,61,.2);
  border-radius:14px;
  background:rgba(255,250,240,.7);
  box-shadow:inset 1px 1px rgba(255,255,255,.9);
  box-sizing:border-box;
}
#mentalToolExperience.grounding-active .grounding-mental-progress b {
  color:var(--ground-ink);
  font-size:13px;
  letter-spacing:.055em;
}
#mentalToolExperience.grounding-active .grounding-mental-progress span {
  color:#7b5040;
  font-size:11px;
  font-weight:900;
  letter-spacing:.055em;
  text-align:right;
}
#mentalToolExperience.grounding-active .grounding-mental-finish { margin-top:18px !important; }
#mentalToolExperience.grounding-active .sr-only {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

#mentalToolExperience.grounding-active .grounding-sixty-card {
  margin-top:16px;
  padding:23px 19px 25px;
  border-radius:24px;
}
#mentalToolExperience.grounding-active .grounding-sixty-card::before { display:none; }
#mentalToolExperience.grounding-active .grounding-sixty-card h2 { color:var(--ground-ink) !important;font-size:35px !important; }
#mentalToolExperience.grounding-active .grounding-sixty-card .grounding-active-instruction { color:var(--ground-muted) !important;font-size:16px !important; }
#mentalToolExperience.grounding-active .grounding-timer {
  width:150px;
  height:150px;
  border:1px solid rgba(255,104,31,.5) !important;
  background:radial-gradient(circle at 38% 31%,#3b3a3b 0%,#1b1b1d 58%,#0e1013 100%) !important;
  color:#fffaf0 !important;
  box-shadow:0 0 0 8px rgba(255,104,31,.08),inset 0 2px rgba(255,255,255,.08),0 15px 28px rgba(31,24,21,.21) !important;
}
#mentalToolExperience.grounding-active .grounding-audio-toggle {
  min-height:48px;
  margin-top:15px;
  border:1px solid rgba(91,73,61,.24) !important;
  background:linear-gradient(145deg,#fffdf6,#eadfd2) !important;
  color:#5d3425 !important;
  font-size:13px !important;
}
#mentalToolExperience.grounding-active .grounding-audio-toggle[aria-pressed="true"] { border-color:var(--ground-coral) !important;background:#f8e1d6 !important;box-shadow:inset 4px 0 var(--ground-coral) !important; }
#mentalToolExperience.grounding-active .grounding-sound-controls {
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
  margin-top:15px;
}
#mentalToolExperience.grounding-active .grounding-sound-controls .grounding-audio-toggle { margin-top:0; }
#mentalToolExperience.grounding-active .grounding-voice-toggle[disabled] { opacity:.72; }

#mentalToolExperience.grounding-active .mh-primary,
#mentalToolExperience.grounding-active .mh-secondary {
  width:100%;
  min-height:56px !important;
  margin-top:13px !important;
  border-radius:16px !important;
  font-size:15px !important;
  font-weight:950 !important;
  letter-spacing:.035em !important;
}
#mentalToolExperience.grounding-active .mh-primary {
  border:1px solid #2a2422 !important;
  background:linear-gradient(145deg,#342824,#17181c) !important;
  color:#fffaf0 !important;
  box-shadow:inset 4px 0 var(--ground-coral),0 12px 25px rgba(53,36,29,.2) !important;
}
#mentalToolExperience.grounding-active .mh-primary:disabled { border-color:#d3cbc1 !important;background:#e2ddd5 !important;color:#847d77 !important;box-shadow:none !important; }
#mentalToolExperience.grounding-active .mh-secondary { border:1px solid #bcb3aa !important;background:linear-gradient(145deg,#fffdf6,#e9dfd3) !important;color:#403c3a !important; }

#mentalToolExperience.grounding-active .grounding-complete { display:flex;min-height:calc(100dvh - 132px) !important;flex-direction:column;justify-content:center;padding-block:28px; }
#mentalToolExperience.grounding-active .grounding-complete-mark {
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  margin:0 0 22px;
  border:1px solid rgba(255,104,31,.42);
  border-radius:50%;
  background:linear-gradient(145deg,#fffdf6,#ead6c8);
  color:var(--ground-coral);
  font-size:25px;
  box-shadow:inset 1px 1px #fff,0 10px 22px rgba(76,46,32,.15);
}

#mentalToolExperience.grounding-active :focus-visible,
.rebuild-mood-overlay.grounding-after-mood :focus-visible,
.rebuild-mood-overlay.grounding-result :focus-visible { outline:3px solid var(--ground-coral,#ff681f) !important;outline-offset:3px; }

.rebuild-mood-overlay.grounding-after-mood,
.rebuild-mood-overlay.grounding-result { z-index:23000 !important; }
.rebuild-mood-overlay.grounding-after-mood .rebuild-mood-top,
.rebuild-mood-overlay.grounding-result .rebuild-mood-top {
  display:grid;
  grid-template-columns:92px minmax(0,1fr) 92px;
  align-items:center;
  min-height:calc(68px + env(safe-area-inset-top));
  padding-top:env(safe-area-inset-top);
}
.rebuild-mood-overlay.grounding-after-mood #rebuildMoodActivity,
.rebuild-mood-overlay.grounding-result #rebuildMoodActivity { display:grid;justify-items:center;color:#10151d !important; }
.rebuild-mood-overlay.grounding-after-mood #rebuildMoodActivity b,
.rebuild-mood-overlay.grounding-result #rebuildMoodActivity b { font-size:12px;letter-spacing:.08em; }
.rebuild-mood-overlay.grounding-after-mood #rebuildMoodActivity small,
.rebuild-mood-overlay.grounding-result #rebuildMoodActivity small { margin-top:4px;color:#746f6b;font-size:12px;letter-spacing:.12em; }
.rebuild-mood-overlay.grounding-after-mood .quick-reset-compass-track::after { background:linear-gradient(90deg,#b8411b,#ff681f); }
.rebuild-mood-overlay.grounding-after-mood .quick-reset-compass-stops span.is-active { background:#ff681f; }
.rebuild-mood-overlay.grounding-result { --ground-coral:#ff681f; }
.rebuild-mood-overlay.grounding-result #rebuildMoodContent { width:min(calc(100% - 32px),390px);margin:0 auto; }
.rebuild-mood-overlay.grounding-result .grounding-saved-result {
  display:grid;
  gap:6px;
  margin:22px 0 14px;
  padding:22px;
  border:1px solid rgba(91,73,61,.2);
  border-radius:22px;
  background:linear-gradient(145deg,#fffdf6,#eadfd2);
  box-shadow:inset 1px 1px #fff,inset -3px -4px rgba(83,67,55,.09),0 14px 28px rgba(53,40,32,.13);
}
.rebuild-mood-overlay.grounding-result .grounding-saved-result span { color:#6b625e;font-size:12px;font-weight:900;letter-spacing:.12em; }
.rebuild-mood-overlay.grounding-result .grounding-saved-result strong { color:#10151d;font-size:34px;line-height:1; }
.rebuild-mood-overlay.grounding-result .grounding-saved-result small { color:#ff681f;font-size:13px;font-weight:900; }
.rebuild-mood-overlay.grounding-result .grounding-saved-note { color:#5d5753 !important;font-size:15px !important; }
.rebuild-mood-overlay.grounding-result .rebuild-mood-secondary {
  width:100%;min-height:54px;margin-top:10px;border:1px solid #bcb3aa;border-radius:16px;background:linear-gradient(145deg,#fffdf6,#e9dfd3);color:#403c3a;font-size:15px;font-weight:950;
}

@media (max-width:360px) {
  #mentalToolExperience.grounding-active #mentalToolContent { padding-inline:14px !important; }
  #mentalToolExperience.grounding-active .mh-tool-top,
  .rebuild-mood-overlay.grounding-after-mood .rebuild-mood-top,
  .rebuild-mood-overlay.grounding-result .rebuild-mood-top { grid-template-columns:82px minmax(0,1fr) 82px !important;padding-inline:14px !important; }
  #mentalToolExperience.grounding-active .mh-tool-top button { width:82px; }
  #mentalToolExperience.grounding-active .grounding-feature-image { height:194px !important; }
  #mentalToolExperience.grounding-active .grounding-choice { grid-template-columns:48px minmax(0,1fr) 44px !important;column-gap:10px !important;padding-left:14px !important;padding-right:10px !important; }
  #mentalToolExperience.grounding-active .grounding-choice-icon { width:44px;height:44px; }
  #mentalToolExperience.grounding-active .grounding-choice b { font-size:16px !important; }
  #mentalToolExperience.grounding-active .grounding-choice small { font-size:13px !important; }
  #mentalToolExperience.grounding-active .grounding-mental-progress { align-items:flex-start;flex-direction:column;gap:4px; }
  #mentalToolExperience.grounding-active .grounding-mental-progress span { text-align:left; }
}

@media (orientation:landscape) and (max-height:520px) {
  #mentalToolExperience.grounding-active #mentalToolContent { width:min(100%,720px);padding-top:16px !important; }
  #mentalToolExperience.grounding-active .grounding-screen:not(.grounding-complete) { min-height:auto !important; }
  #mentalToolExperience.grounding-active .grounding-feature-image { height:190px !important; }
  #mentalToolExperience.grounding-active .grounding-choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

@media (prefers-reduced-motion:reduce) {
  #mentalToolExperience.grounding-active *,
  .rebuild-mood-overlay.grounding-after-mood * { scroll-behavior:auto !important;transition:none !important;animation:none !important; }
}

@media (forced-colors:active) {
  #mentalToolExperience.grounding-active,
  #mentalToolExperience.grounding-active .mh-tool-top,
  #mentalToolExperience.grounding-active .grounding-choice,
  #mentalToolExperience.grounding-active .mh-step,
  #mentalToolExperience.grounding-active .grounding-sixty-card,
  #mentalToolExperience.grounding-active .grounding-prompt-grid .mh-choice,
  #mentalToolExperience.grounding-active .grounding-prompt-state,
  #mentalToolExperience.grounding-active .grounding-mental-progress,
  #mentalToolExperience.grounding-active .mh-primary,
  #mentalToolExperience.grounding-active .mh-secondary,
  .rebuild-mood-overlay.grounding-result .grounding-saved-result,
  .rebuild-mood-overlay.grounding-result .rebuild-mood-secondary { background:Canvas !important;color:CanvasText !important;box-shadow:none !important;border:2px solid CanvasText !important; }
  #mentalToolExperience.grounding-active .grounding-choice::before,
  #mentalToolExperience.grounding-active .grounding-stage-progress i.on { background:Highlight !important; }
}

/* Grounding active instrument + completion coherence — route-scoped Part 2. */
#mentalToolExperience.grounding-active .grounding-active-instrument,
#mentalToolExperience.grounding-active .grounding-completion-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: min(600px, calc(100dvh - 152px));
  padding: clamp(22px, 6.2vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(82, 62, 49, .29);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 7%, rgba(255,255,255,.96), transparent 27%),
    linear-gradient(145deg, #fffdf6 0%, #f9f2e8 48%, #e8dccf 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,1),
    inset -4px -5px 0 rgba(86, 65, 51, .105),
    0 3px 0 rgba(255,255,255,.72),
    0 19px 35px rgba(53, 40, 32, .17),
    8px 11px 0 rgba(102, 75, 59, .035);
  box-sizing: border-box;
}

#mentalToolExperience.grounding-active .grounding-active-instrument::before,
#mentalToolExperience.grounding-active .grounding-completion-shell::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 0;
  border: 1px solid rgba(255, 104, 31, .34);
  border-radius: 21px;
  box-shadow: inset 1px 1px rgba(255,255,255,.72);
  pointer-events: none;
}

#mentalToolExperience.grounding-active .grounding-active-instrument::after,
#mentalToolExperience.grounding-active .grounding-completion-shell::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 0;
  width: 46%;
  height: 4px;
  border-radius: 28px 0 999px 0;
  background: linear-gradient(90deg, var(--ground-coral), rgba(255,138,116,.42), transparent);
  pointer-events: none;
}

#mentalToolExperience.grounding-active .grounding-active-instrument > *,
#mentalToolExperience.grounding-active .grounding-completion-shell > * {
  position: relative;
  z-index: 1;
}

#mentalToolExperience.grounding-active .grounding-sensory-screen,
#mentalToolExperience.grounding-active .grounding-guided-screen,
#mentalToolExperience.grounding-active .grounding-mental-list,
#mentalToolExperience.grounding-active .grounding-mental-task,
#mentalToolExperience.grounding-active .grounding-sixty-screen {
  display: flex;
  align-items: flex-start;
  padding-block: 3px 22px;
}

#mentalToolExperience.grounding-active .grounding-active-instrument .grounding-stage-progress {
  margin: 18px 0 23px;
}

#mentalToolExperience.grounding-active .grounding-active-instrument h2 {
  max-width: 100% !important;
}

#mentalToolExperience.grounding-active .grounding-sensory-progress {
  display: grid;
  place-items: center;
  margin: 24px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 70, 55, .18);
  border-radius: 16px;
  background: rgba(255, 250, 240, .72);
  box-shadow: inset 1px 1px rgba(255,255,255,.94);
}

#mentalToolExperience.grounding-active .grounding-sensory-progress .mh-big-count {
  margin: 0;
  line-height: .9;
}

#mentalToolExperience.grounding-active .grounding-active-instrument--sensory .mh-tap-row {
  justify-content: center;
  margin: 12px 0 4px !important;
}

#mentalToolExperience.grounding-active .grounding-active-instrument--sensory .mh-dot {
  width: 48px !important;
  height: 48px !important;
}

#mentalToolExperience.grounding-active .grounding-instrument-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 22px;
}

#mentalToolExperience.grounding-active .grounding-instrument-actions .mh-primary,
#mentalToolExperience.grounding-active .grounding-instrument-actions .mh-secondary {
  margin-top: 0 !important;
}

#mentalToolExperience.grounding-active .grounding-active-instrument--guided .mh-step {
  margin-top: 22px !important;
}

#mentalToolExperience.grounding-active .grounding-active-instrument--guided {
  min-height: min(520px, calc(100dvh - 152px));
}

#mentalToolExperience.grounding-active .grounding-active-instrument--guided .grounding-audio-toggle {
  margin-top: 19px;
}

#mentalToolExperience.grounding-active .grounding-active-instrument--mental {
  min-height: auto;
}

#mentalToolExperience.grounding-active .grounding-active-instrument--mental .grounding-prompt-grid {
  margin-bottom: 2px;
}

#mentalToolExperience.grounding-active .grounding-active-instrument--mental-task {
  justify-content: flex-start;
  min-height: min(540px, calc(100dvh - 152px));
}

#mentalToolExperience.grounding-active .grounding-mental-anchor {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  width: 100%;
  margin: 42px 0 24px;
}

#mentalToolExperience.grounding-active .grounding-mental-anchor span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,104,31,.44));
}

#mentalToolExperience.grounding-active .grounding-mental-anchor span:last-child {
  background: linear-gradient(90deg, rgba(255,104,31,.44), transparent);
}

#mentalToolExperience.grounding-active .grounding-mental-anchor i {
  width: 18px;
  height: 18px;
  margin: auto;
  border: 7px solid #f7d6c5;
  border-radius: 50%;
  background: var(--ground-coral);
  box-shadow: 0 0 0 1px rgba(255,104,31,.48), 0 7px 16px rgba(100,48,25,.18);
}

#mentalToolExperience.grounding-active .grounding-active-instrument--sixty {
  min-height: auto;
}

#mentalToolExperience.grounding-active .grounding-active-instrument--sixty .grounding-sixty-card {
  margin-top: 0;
}

#mentalToolExperience.grounding-active .grounding-active-instrument--sixty .grounding-sixty-actions {
  margin-top: 16px;
  padding-top: 0;
}

#mentalToolExperience.grounding-active .grounding-complete {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100dvh - 132px) !important;
  padding-block: 3px 22px;
}

#mentalToolExperience.grounding-active .grounding-completion-shell {
  align-items: center;
  justify-content: center;
  text-align: center;
}

#mentalToolExperience.grounding-active .grounding-completion-focal {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 26px;
  border: 1px solid rgba(99, 74, 58, .23);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 31%, rgba(255,255,255,.98) 0%, #f5eadf 42%, #ddcbbb 100%);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,.92),
    inset -5px -6px 0 rgba(77,57,46,.08),
    0 0 0 9px rgba(255,104,31,.055),
    0 17px 29px rgba(64,45,35,.17);
}

#mentalToolExperience.grounding-active .grounding-completion-ring,
#mentalToolExperience.grounding-active .grounding-completion-centre {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#mentalToolExperience.grounding-active .grounding-completion-ring--outer {
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255,104,31,.4);
  box-shadow: inset 0 0 0 8px rgba(255,104,31,.035);
}

#mentalToolExperience.grounding-active .grounding-completion-ring--inner {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,104,31,.68);
  background: rgba(255,250,240,.45);
}

#mentalToolExperience.grounding-active .grounding-completion-centre {
  width: 22px;
  height: 22px;
  border: 7px solid #f7d1bf;
  background: var(--ground-coral);
  box-shadow: 0 0 0 1px rgba(132,52,17,.22), 0 7px 15px rgba(93,43,22,.19);
}

#mentalToolExperience.grounding-active .grounding-completion-copy {
  width: min(100%, 300px);
}

#mentalToolExperience.grounding-active .grounding-completion-copy h2 {
  margin: 10px 0 14px !important;
  font-size: clamp(37px, 10vw, 44px) !important;
}

#mentalToolExperience.grounding-active .grounding-completion-copy p {
  margin: 0 auto;
  color: #5c5652 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

#mentalToolExperience.grounding-active .grounding-completion-actions {
  width: min(100%, 310px);
  margin-top: 26px;
  padding-top: 0;
}

@media (max-width: 360px) {
  #mentalToolExperience.grounding-active .grounding-active-instrument,
  #mentalToolExperience.grounding-active .grounding-completion-shell {
    min-height: min(600px, calc(100dvh - 146px));
    padding: 20px 18px;
    border-radius: 25px;
  }
  #mentalToolExperience.grounding-active .grounding-active-instrument::before,
  #mentalToolExperience.grounding-active .grounding-completion-shell::before { border-radius: 18px; }
  #mentalToolExperience.grounding-active .grounding-active-instrument--mental,
  #mentalToolExperience.grounding-active .grounding-active-instrument--sixty { min-height: auto; }
  #mentalToolExperience.grounding-active .grounding-completion-focal { width: 116px;height: 116px;margin-bottom: 22px; }
  #mentalToolExperience.grounding-active .grounding-completion-ring--outer { width: 80px;height: 80px; }
  #mentalToolExperience.grounding-active .grounding-completion-ring--inner { width: 50px;height: 50px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  #mentalToolExperience.grounding-active .grounding-active-instrument,
  #mentalToolExperience.grounding-active .grounding-completion-shell { min-height: auto; }
}

@media (forced-colors: active) {
  #mentalToolExperience.grounding-active .grounding-active-instrument,
  #mentalToolExperience.grounding-active .grounding-completion-shell,
  #mentalToolExperience.grounding-active .grounding-sensory-progress,
  #mentalToolExperience.grounding-active .grounding-completion-focal,
  #mentalToolExperience.grounding-active .grounding-completion-ring,
  #mentalToolExperience.grounding-active .grounding-completion-centre {
    border: 2px solid CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }
  #mentalToolExperience.grounding-active .grounding-active-instrument::before,
  #mentalToolExperience.grounding-active .grounding-completion-shell::before { border-color: Highlight !important; }
  #mentalToolExperience.grounding-active .grounding-active-instrument::after,
  #mentalToolExperience.grounding-active .grounding-completion-shell::after,
  #mentalToolExperience.grounding-active .grounding-mental-anchor span { background: Highlight !important; }
}
