.rebuild-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Recovery hub hierarchy: urgent support first, deeper areas behind clear entry cards. */
#recovery .recoveryTop {
  margin-top: 8px;
  padding: 16px 17px 14px;
}

#recovery .recoveryTop > h1 {
  margin-top: 6px;
  font-size: clamp(24px, 6.6vw, 30px);
}

#recovery .recovery-page-intro {
  margin: 6px 0 11px;
  font-size: 10px;
}

#recovery .sober-priority {
  min-height: 50px;
  padding: 9px 11px;
}

#recovery .sober-priority b {
  font-size: 34px;
}

#recovery .sober-priority small {
  margin-top: 4px;
  font-size: 7px;
}

#recovery .sober-priority-mark,
#recovery .sober-priority.is-empty .sober-priority-mark {
  width: 31px;
  height: 31px;
  font-size: 15px;
}

#recovery .recovery-support {
  padding: 14px 15px 9px;
}

#recovery .recovery-support-card {
  min-height: 176px;
}

#recovery .recovery-hub {
  display: grid;
  gap: 11px;
  padding: 5px 15px 8px;
  background: var(--recovery-cream);
}

#recovery .recovery-hub-card {
  width: 100%;
  min-height: 112px;
  box-sizing: border-box;
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  border-radius: 18px;
  padding: 15px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  gap: 13px;
  align-items: center;
  background:
    linear-gradient(112deg, var(--recovery-gunmetal), var(--recovery-gunmetal-deep)) padding-box,
    var(--recovery-frame-gradient) border-box;
  color: #fffdf9;
  box-shadow: var(--recovery-frame-bloom);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

#recovery .recovery-hub-card:focus-visible,
#recovery .recovery-support-card:focus-visible {
  outline: 3px solid var(--recovery-highlight);
  outline-offset: 3px;
}

#recovery .recovery-hub-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(216, 201, 255, .25);
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #242b3c, #0d121a);
  color: var(--recovery-highlight);
}

#recovery .recovery-hub-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#recovery .recovery-hub-copy {
  min-width: 0;
}

#recovery .recovery-hub-copy small,
#recovery .recovery-hub-copy b,
#recovery .recovery-hub-copy em {
  display: block;
}

#recovery .recovery-hub-copy small {
  margin-bottom: 5px;
  color: var(--recovery-highlight);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: .12em;
}

#recovery .recovery-hub-copy b {
  color: #fffdf9;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -.025em;
}

#recovery .recovery-hub-copy em {
  margin-top: 7px;
  color: #bfc1ca;
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
}

#recovery .recovery-hub-card > strong {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(216, 201, 255, .18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .055);
  color: var(--recovery-highlight);
  font-size: 18px;
}

#recovery .daily-practice {
  padding: 26px 15px 110px;
}

html.recovery-journey-open,
html.recovery-journey-open body {
  overflow: hidden;
}

#recovery .recovery-journey-experience {
  position: fixed;
  inset: 0;
  z-index: 92;
  overflow: auto;
  background: #20232b;
  color: #17191f;
}

#recovery .recovery-journey-experience[hidden] {
  display: none;
}

#recovery .recovery-journey-shell {
  width: min(430px, 100%);
  min-height: 100%;
  margin: 0 auto;
  background: var(--recovery-cream);
}

#recovery .recovery-journey-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 62px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(112, 69, 184, .2);
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 78px;
  align-items: center;
  background: rgba(13, 17, 24, .97);
  box-shadow: 0 7px 20px rgba(41, 52, 86, .15);
}

#recovery .recovery-journey-bar button {
  min-height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fffdf9;
  font: 950 8px/1 Arial, sans-serif;
  letter-spacing: .08em;
  text-align: left;
}

#recovery .recovery-journey-bar button:last-child {
  text-align: right;
}

#recovery .recovery-journey-bar > span {
  min-width: 0;
  text-align: center;
}

#recovery .recovery-journey-bar b,
#recovery .recovery-journey-bar small {
  display: block;
}

#recovery .recovery-journey-bar b {
  color: #fffdf9;
  font-size: 9px;
  letter-spacing: .08em;
}

#recovery .recovery-journey-bar small {
  margin-top: 3px;
  color: var(--recovery-highlight);
  font-size: 7px;
  letter-spacing: .09em;
}

#recovery .recovery-journey-experience .recovery-journey {
  padding-top: 28px;
  padding-bottom: max(42px, env(safe-area-inset-bottom));
}

#recovery .recovery-journey-experience .recovery-milestone-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

#recovery .recovery-journey-experience .recovery-milestone {
  min-height: 92px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 13px;
  align-content: center;
  justify-content: initial;
}

#recovery .recovery-journey-experience .recovery-milestone-mark {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
}

#recovery .recovery-journey-experience .recovery-milestone b,
#recovery .recovery-journey-experience .recovery-milestone small,
#recovery .recovery-journey-experience .recovery-milestone em {
  grid-column: 2;
}

#recovery .recovery-journey-experience .recovery-milestone em {
  margin-top: 5px;
  color: #6b6e77;
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
}

#recovery .recovery-journey-experience .recovery-milestone.next em {
  color: #c8c3d2;
}

.recovery-tools-experience .rt-tools-hub {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}

.recovery-tools-experience .rt-tools-home-hero {
  height: 220px;
  margin: -26px -18px 24px;
  overflow: hidden;
  border-bottom: 3px solid transparent;
  background: var(--recovery-frame-gradient) border-box;
}

.recovery-tools-experience .rt-tools-home-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 370px) {
  .recovery-tools-experience .rt-tools-home-hero {
    height: 198px;
  }
}

.recovery-tools-experience .rt-tools-hub button {
  min-height: 92px;
  border: 2px solid transparent;
  border-left-width: 3px;
  border-radius: 17px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  background:
    linear-gradient(145deg, #202536, #10141d) padding-box,
    linear-gradient(110deg, #b47aff, #985cff 38%, #7045b8 68%, #293456) border-box;
  color: #fffdf9;
  box-shadow: 0 9px 21px rgba(41, 52, 86, .18), inset 0 1px 0 rgba(255, 255, 255, .07);
  font: inherit;
  text-align: left;
}

.recovery-tools-experience .rt-tools-hub b,
.recovery-tools-experience .rt-tools-hub small {
  display: block;
}

.recovery-tools-experience .rt-tools-hub b {
  font-size: 16px;
}

.recovery-tools-experience .rt-tools-hub small {
  margin-top: 7px;
  color: #c8c3d2;
  font-size: 10px;
  line-height: 1.4;
}

.recovery-tools-experience .rt-tools-hub strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #d8c9ff;
  font-size: 20px;
  text-align: right;
}

@media (max-width: 370px) {
  #recovery .recovery-hub-card {
    grid-template-columns: 43px minmax(0, 1fr) 27px;
    gap: 10px;
    padding: 13px;
  }

  #recovery .recovery-hub-icon {
    width: 43px;
    height: 43px;
  }

  #recovery .recovery-hub-copy b {
    font-size: 15px;
  }
}

.rebuild-sos-trigger {
  min-width: 45px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(239, 91, 50, .52);
  border-radius: 11px;
  background: rgba(239, 91, 50, .07);
  color: #bd422a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .09em;
}

.rebuild-sos-trigger:focus-visible {
  outline: 3px solid rgba(239, 91, 50, .38);
  outline-offset: 3px;
}

.profile-icon-button {
  position: relative;
  isolation: isolate;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #171c1a, #080b0a) padding-box,
    linear-gradient(145deg, #ef5b32 0 42%, #20d5ef 66%, #193a48 100%) border-box;
  color: #fff;
  box-shadow:
    0 6px 16px rgba(17,25,32, .2),
    inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .18s ease, box-shadow .18s ease;
}

.profile-icon-button::after {
  content: '';
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border: 2px solid #f4f2ed;
  border-radius: 50%;
  background: #193a48;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.profile-icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4));
}

.profile-icon-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 9px 20px rgba(17,25,32, .24),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.profile-icon-button:active {
  transform: scale(.96);
}

.profile-icon-button:focus-visible {
  outline: 3px solid #20d5ef;
  outline-offset: 3px;
}

.profile-experience {
  position: fixed;
  inset: 0;
  z-index: 170;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #202622;
  color: #fff;
}

.profile-experience[hidden] {
  display: none;
}

.profile-shell {
  width: min(430px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background: #080b0f;
  display: flex;
  flex-direction: column;
}

.profile-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 64px;
  padding: 10px 16px;
  background: rgba(8, 11, 15, .96);
  border-bottom: 1px solid #272e34;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  backdrop-filter: blur(12px);
}

.profile-bar button {
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
}

.profile-bar button:first-child {
  text-align: left;
}

.profile-bar button:last-child {
  text-align: right;
}

.profile-bar-title {
  text-align: center;
}

.profile-bar-title b,
.profile-bar-title small {
  display: block;
}

.profile-bar-title b {
  font-size: 10px;
  letter-spacing: .14em;
}

.profile-bar-title small {
  margin-top: 3px;
  color: #737b83;
  font-size: 8px;
  letter-spacing: .08em;
}

.profile-screen {
  flex: 1;
  padding: 28px 18px max(36px, env(safe-area-inset-bottom));
}

.profile-eyebrow {
  color: #9697db;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .15em;
}

.profile-screen h1 {
  margin: 9px 0 12px;
  color: #fff;
  font-size: 50px;
  line-height: .86;
  letter-spacing: -.07em;
}

.profile-lead {
  max-width: 350px;
  margin: 0;
  color: #aeb6b0;
  font-size: 13px;
  line-height: 1.55;
}

.profile-settings-section {
  margin-top: 32px;
}

.profile-section-heading {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #303840;
  color: #20d5ef;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
}

.profile-name-form .profile-primary {
  min-height: 48px;
}

.profile-setting-card {
  padding: 18px;
  border: 1px solid #303840;
  background: #11171d;
}

.profile-setting-card > strong {
  color: #fff;
  font-size: 15px;
}

.profile-setting-card > p {
  margin: 8px 0 0;
  color: #aeb6b0;
  font-size: 11px;
  line-height: 1.5;
}

.profile-linked-setting + .profile-linked-setting {
  margin-top: 12px;
}

.profile-linked-setting .profile-secondary {
  width: 100%;
  margin-top: 14px;
}

.profile-experience .profile-bar button,
.profile-settings-section a[href^="tel:"] {
  min-width: 44px;
  min-height: 44px !important;
}

.profile-settings-section a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  vertical-align: middle;
}

.profile-contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.profile-contact-form .profile-primary,
.profile-contact-form .profile-helper {
  margin-top: 0;
}

.profile-call-contact {
  min-height: 52px;
  margin-top: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #193a48;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
}

.profile-call-contact[hidden],
.profile-setting-card .profile-danger[hidden] {
  display: none;
}

.profile-helper a {
  color: #20d5ef;
  font-weight: 850;
}

.profile-feedback-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #aeb6b0;
  font-size: 11px;
  line-height: 1.7;
}

.profile-feedback-list li + li {
  margin-top: 5px;
}

.profile-feedback-list li::marker {
  color: #20d5ef;
}

.profile-settings-section .profile-summary-card {
  margin-top: 0;
}

.profile-info-item {
  border-bottom: 1px solid #272e34;
}

.profile-info-item summary {
  min-height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
}

.profile-info-item summary::-webkit-details-marker {
  display: none;
}

.profile-info-item summary::after {
  content: '+';
  color: #20d5ef;
  font-size: 19px;
}

.profile-info-item[open] summary::after {
  content: '−';
}

.profile-info-item > p {
  margin: 0 0 13px;
  color: #aeb6b0;
  font-size: 11px;
  line-height: 1.6;
}

.profile-info-item a {
  color: #20d5ef;
  font-weight: 850;
}

.profile-data-section .profile-danger {
  margin-top: 0;
}

.profile-version {
  margin: 32px 0 0;
  color: #737b83;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-align: center;
}

.profile-empty-card,
.profile-summary-card {
  margin-top: 24px;
  border-radius: 24px;
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.profile-empty-card {
  border: 1px solid #303840;
  background: linear-gradient(145deg, #1d2732, #11171e);
}

.profile-summary-card {
  background: linear-gradient(145deg, #193a48, #111920 58%, #10382f);
}

.profile-empty-card small,
.profile-summary-card small {
  display: block;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
}

.profile-empty-card small {
  color: #82a9ff;
}

.profile-summary-card small {
  color: #20d5ef;
}

.profile-empty-card strong,
.profile-summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: .95;
  letter-spacing: -.045em;
}

.profile-summary-card strong {
  font-size: 62px;
  line-height: .82;
  letter-spacing: -.075em;
}

.profile-summary-card em {
  display: block;
  margin-top: 10px;
  color: #d4f6e7;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
}

.profile-summary-started {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.profile-summary-started span {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.profile-form {
  margin-top: 22px;
}

.profile-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 10px;
}

.profile-field {
  display: block;
}

.profile-field > span {
  display: block;
  margin-bottom: 7px;
  color: #8b949d;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .11em;
}

.profile-field input {
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  border: 1px solid #39434c;
  border-radius: 0;
  padding: 0 13px;
  background: #141a20;
  color: #fff;
  color-scheme: dark;
  font: inherit;
  font-size: 13px;
}

.profile-field input:focus {
  outline: 2px solid #20d5ef;
  outline-offset: 2px;
}

.profile-helper,
.profile-privacy {
  margin: 12px 0 0;
  color: #7f8992;
  font-size: 10px;
  line-height: 1.5;
}

.profile-helper.is-saved {
  color: #20d5ef;
}

.profile-error {
  margin: 13px 0 0;
  border-left: 3px solid #71588f;
  padding: 11px 12px;
  background: #191728;
  color: #cbc9ed;
  font-size: 10px;
  line-height: 1.45;
}

.profile-error[hidden] {
  display: none;
}

.profile-primary,
.profile-secondary,
.profile-danger {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  padding: 0 16px;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
}

.profile-primary {
  border: 0;
  background: linear-gradient(135deg, #234f86 0%, #4b4b9d 54%, #71588f 100%);
  color: #f4f3ee;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .15),
    0 8px 20px rgba(28, 37, 84, .28);
}

.profile-secondary {
  border: 1px solid #39434c;
  background: #141a20;
  color: #fff;
}

.profile-danger {
  border: 1px solid #514d79;
  background: transparent;
  color: #b6b2de;
}

.profile-confirm {
  margin-top: 16px;
  border: 1px solid #514d79;
  padding: 16px;
  background: #171623;
}

.profile-confirm p {
  margin: 0;
  color: #b9b7ce;
  font-size: 11px;
  line-height: 1.5;
}

.profile-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.profile-confirm-actions button {
  min-height: 46px;
  border: 1px solid #45435f;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 950;
}

.profile-confirm-actions button:last-child {
  border-color: #5a5599;
  background: linear-gradient(135deg, #234f86 0%, #4b4b9d 54%, #71588f 100%);
}

html.profile-open,
html.profile-open body {
  overflow: hidden;
}

html.profile-open .nav,
html.profile-open .top {
  visibility: hidden;
}

#recovery .sober-priority {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

#recovery .sober-priority.is-empty b {
  font-size: 66px;
  letter-spacing: -.06em;
}

#recovery .sober-priority.is-empty .sober-priority-mark {
  background: #7045b8;
}

#recovery .recovery-journey.is-empty .recovery-next {
  background: linear-gradient(145deg, #35413a, #202824);
}

#recovery .recovery-journey.is-empty .recovery-next-icon {
  color: #a96bff;
}

#recovery .recovery-journey button:disabled {
  cursor: default;
  opacity: 1;
}

#recovery .recovery-journey.is-empty .recovery-milestone {
  opacity: .58;
}

@media (min-width: 700px) {
  .profile-shell {
    box-shadow: 0 0 60px rgba(0, 0, 0, .3);
  }
}

@media (max-width: 370px) {
  .profile-screen h1 {
    font-size: 43px;
  }

  .profile-field-grid {
    grid-template-columns: 1fr;
  }
}

/* Recovery Pass 2: Milestone Detail only. The overlay sits outside #recovery,
   so it owns the same Recovery tokens locally without changing global tokens. */
.milestone-experience {
  --recovery-indigo: #293456;
  --recovery-violet: #7045b8;
  --recovery-purple: #985cff;
  --recovery-highlight: #d8c9ff;
  --recovery-frame-violet: #b47aff;
  --recovery-frame-gradient: linear-gradient(110deg, var(--recovery-frame-violet) 0%, var(--recovery-purple) 38%, var(--recovery-violet) 68%, var(--recovery-indigo) 100%);
  --recovery-frame-gradient-selected: linear-gradient(110deg, var(--recovery-highlight) 0%, var(--recovery-frame-violet) 20%, var(--recovery-purple) 46%, var(--recovery-violet) 72%, var(--recovery-indigo) 100%);
  --recovery-luminous-gradient: linear-gradient(110deg, var(--recovery-indigo) 0%, var(--recovery-violet) 48%, var(--recovery-purple) 100%);
  --recovery-frame-width: 3px;
  --recovery-frame-bloom: -2px -2px 7px rgba(152, 92, 255, .3), 0 9px 20px rgba(61, 37, 101, .17), inset 0 1px 0 rgba(255, 255, 255, .06);
  background: #f4f1e9;
  color: #17191f;
}

.milestone-experience .milestone-shell {
  background: #f4f1e9;
  color: #17191f;
}

.milestone-experience .milestone-bar {
  border-bottom-color: rgba(41, 52, 86, .18);
  background: rgba(244, 241, 233, .96);
}

.milestone-experience .milestone-bar button {
  color: #202431;
}

.milestone-experience .milestone-bar-title b {
  color: #202431;
}

.milestone-experience .milestone-bar-title small {
  color: #655278;
  font-size: 9px;
}

.milestone-experience .milestone-screen {
  padding: 27px 17px max(42px, env(safe-area-inset-bottom));
}

.milestone-experience .milestone-eyebrow {
  color: #643aa8;
  font-size: 10px;
}

.milestone-experience .milestone-heading {
  color: #17191f;
}

.milestone-experience .milestone-status {
  min-height: 30px;
  border: 1px solid rgba(112, 69, 184, .28);
  background: rgba(112, 69, 184, .1);
  color: #573494;
  font-size: 9px;
}

.milestone-experience .milestone-status.reached {
  border-color: rgba(152, 92, 255, .42);
  background: rgba(152, 92, 255, .15);
  color: #512a90;
}

.milestone-experience .milestone-live-card,
.milestone-experience .milestone-target-card {
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  background:
    linear-gradient(145deg, #151a22 0%, #20283a 54%, #0d1118 100%) padding-box,
    var(--recovery-frame-gradient) border-box;
  box-shadow: var(--recovery-frame-bloom);
}

.milestone-experience .milestone-live-card::after {
  border-color: rgba(180, 122, 255, .08);
}

.milestone-experience .milestone-live-card small {
  color: var(--recovery-highlight);
  font-size: 9px;
}

.milestone-experience .milestone-live-card strong {
  color: #faf8f4;
  font-variant-numeric: tabular-nums;
}

.milestone-experience .milestone-live-card em {
  color: #d7d3df;
  font-size: 10px;
}

.milestone-experience .milestone-stat {
  min-width: 0;
  border-color: rgba(71, 82, 112, .24);
  background: linear-gradient(145deg, #fdfcf8, #e8e5df);
  color: #202431;
  box-shadow: 0 7px 17px rgba(37, 42, 55, .07), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.milestone-experience .milestone-stat b {
  min-width: 0;
  font-size: clamp(16px, 4.8vw, 20px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.milestone-experience .milestone-stat small {
  color: #626978;
  font-size: 9px;
}

.milestone-experience .milestone-target-card.reached {
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  background:
    linear-gradient(145deg, #171b25 0%, #29213b 58%, #10131b 100%) padding-box,
    var(--recovery-frame-gradient-selected) border-box;
}

.milestone-experience .milestone-target-card > small,
.milestone-experience .milestone-target-card.reached > small {
  color: var(--recovery-highlight);
  font-size: 9px;
}

.milestone-experience .milestone-target-card h2 {
  color: #faf8f4;
}

.milestone-experience .milestone-target-card p {
  color: #c4c3cc;
  font-size: 11px;
  line-height: 1.45;
}

.milestone-experience .milestone-target-maths {
  border-top-color: rgba(216, 201, 255, .18);
}

.milestone-experience .milestone-target-maths b {
  color: #f7f5f1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.milestone-experience .milestone-target-maths small {
  color: #b8b5c3;
  font-size: 9px;
}

.milestone-experience .milestone-detail-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(216, 201, 255, .15);
}

.milestone-experience .milestone-detail-progress i {
  border-radius: inherit;
  background: var(--recovery-luminous-gradient);
  box-shadow: 0 0 10px rgba(152, 92, 255, .32);
}

.milestone-experience .milestone-detail-copy {
  gap: 10px;
  color: #c4c1cc;
  font-size: 9px;
  line-height: 1.35;
}

.milestone-experience .milestone-detail-copy span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.milestone-experience .milestone-detail-copy span:last-child {
  text-align: right;
}

.milestone-experience .milestone-perspective {
  border-left-color: var(--recovery-violet);
  border-radius: 0 13px 13px 0;
  background: linear-gradient(120deg, rgba(112, 69, 184, .12), rgba(41, 52, 86, .06));
  color: #414654;
  font-size: 12px;
}

.milestone-experience .milestone-close-primary {
  min-height: 54px;
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  border-radius: 27px;
  background:
    linear-gradient(115deg, #1b2130, #101520) padding-box,
    var(--recovery-frame-gradient) border-box;
  color: #fff;
  box-shadow: var(--recovery-frame-bloom);
}

@media (max-width: 370px) {
  .milestone-experience .milestone-screen {
    padding-right: 14px;
    padding-left: 14px;
  }

  .milestone-experience .milestone-live-card,
  .milestone-experience .milestone-target-card {
    padding: 18px;
  }

  .milestone-experience .milestone-stat-grid {
    gap: 7px;
  }

  .milestone-experience .milestone-stat {
    padding: 11px 9px;
  }
}

/* End Recovery Pass 2 */

.rebuild-sos-experience {
  position: fixed;
  inset: 0;
  z-index: 10030;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #d8cec5;
  color: #493d3a;
}

.rebuild-sos-experience[hidden] {
  display: none;
}

.rebuild-sos-shell {
  width: min(430px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 8% 8%, rgba(237, 190, 180, .52), transparent 32%),
    radial-gradient(ellipse at 94% 36%, rgba(208, 190, 221, .42), transparent 34%),
    linear-gradient(180deg, #fff9f4 0%, #f8eee8 48%, #f4ebe5 100%);
}

.rebuild-sos-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 65px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(116, 86, 78, .1);
  display: grid;
  grid-template-columns: 76px 1fr 44px;
  align-items: center;
  background: rgba(255, 249, 244, .9);
  backdrop-filter: blur(16px);
}

.rebuild-sos-bar button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #6d5750;
  text-align: left;
  font-size: 9px;
  font-weight: 950;
}

.rebuild-sos-bar > span {
  text-align: center;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
}

.rebuild-sos-bar-mark {
  border: 1px solid rgba(239, 91, 50, .44);
  border-radius: 8px;
  padding: 6px 4px;
  color: #ff9176;
}

.rebuild-sos-bar-urgent {
  border: 1px solid rgba(239, 91, 50, .55);
  border-radius: 8px;
  padding: 7px 4px;
  color: #a94f46;
  text-align: center;
  font-size: 9px;
  font-weight: 950;
  text-decoration: none;
}

.rebuild-sos-content {
  padding: 26px 23px 48px;
}

.rebuild-sos-welcome {
  position: relative;
  margin: 0 -7px 27px;
  border: 1px solid rgba(143, 102, 91, .1);
  border-radius: 30px;
  padding: 28px 23px 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 18px 50px rgba(110, 76, 66, .08);
}

.rebuild-sos-welcome::after {
  content: '';
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 174, 186, .22), transparent 68%);
  pointer-events: none;
}

.rebuild-sos-heart {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1d7d0;
  color: #9d665d;
  font-size: 24px;
}

.rebuild-sos-eyebrow,
.rebuild-sos-card-label {
  display: block;
  color: #9e6e63;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .13em;
}

.rebuild-sos-welcome > h1 {
  margin: 17px 0 12px;
  color: #4e403c;
  font-size: clamp(32px, 8.6vw, 39px);
  font-weight: 720;
  line-height: 1.11;
  letter-spacing: -.045em;
}

.rebuild-sos-lead {
  margin: 0 0 30px;
  color: #75635e;
  font-size: 13px;
  line-height: 1.7;
}

.rebuild-sos-sound {
  width: 100%;
  min-height: 57px;
  margin-top: 19px;
  border: 1px solid rgba(139, 102, 91, .12);
  border-radius: 18px;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, .55);
  color: #5c4944;
  text-align: left;
}

.rebuild-sos-sound > span {
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ead8e7;
  color: #856b8b;
  font-size: 17px;
}

.rebuild-sos-sound b { font-size: 12px; }
.rebuild-sos-sound small { color: #907d76; font-size: 9px; }
.rebuild-sos-sound[aria-pressed="true"] { background: #f3e8f1; }

.rebuild-sos-progress {
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  color: #8a7670;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .09em;
}

.rebuild-sos-progress > span:last-of-type {
  color: #9e6e63;
}

.rebuild-sos-progress-track {
  height: 3px;
  grid-column: 1 / -1;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(126, 93, 84, .13);
}

.rebuild-sos-progress-track i {
  width: 25%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #d49e91, #baa2cc);
  transition: width .25s ease;
}

.rebuild-sos-card {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  padding: 30px 4px 24px;
  background: transparent;
}

.rebuild-sos-card[hidden] {
  display: none;
}

.rebuild-sos-pause {
  background: transparent;
}

.rebuild-sos-ground {
  border-color: rgba(188, 161, 244, .34);
}

.rebuild-sos-ground .rebuild-sos-card-label {
  color: #8d769f;
}

.rebuild-sos-breathe {
  border-color: rgba(117, 217, 205, .34);
}

.rebuild-sos-breathe .rebuild-sos-card-label {
  color: #7b8f88;
}

.rebuild-sos-contact {
  border-color: rgba(169, 160, 228, .34);
}

.rebuild-sos-contact .rebuild-sos-card-label {
  color: #89749a;
}

.rebuild-sos-card h2,
.rebuild-sos-emergency h2 {
  margin: 13px 0 10px;
  color: #4f413d;
  font-size: 25px;
  font-weight: 710;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.rebuild-sos-card p,
.rebuild-sos-emergency p {
  margin: 0;
  color: #75635e;
  font-size: 13px;
  line-height: 1.7;
}

.rebuild-sos-timer {
  margin: 30px 0 20px;
  color: #815e56;
  font-size: 53px;
  font-weight: 650;
  letter-spacing: -.045em;
}

.rebuild-sos-step-link {
  width: 100%;
  min-height: 39px;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: #88736c;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .01em;
}

.rebuild-sos-primary,
.rebuild-sos-secondary {
  width: 100%;
  min-height: 52px;
  margin-top: 13px;
  border: 1px solid rgba(126, 92, 83, .14);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .62);
  color: #594844;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .005em;
  text-decoration: none;
}

.rebuild-sos-primary {
  border-color: rgba(177, 122, 106, .3);
  background: linear-gradient(135deg, #c98878, #a86f64);
  color: #fffaf7;
  box-shadow: 0 10px 25px rgba(153, 95, 79, .16);
}

.rebuild-sos-primary[hidden],
.rebuild-sos-secondary[hidden] {
  display: none;
}

.rebuild-sos-ground-list {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}

.rebuild-sos-ground-list button {
  min-height: 53px;
  border: 0;
  border-bottom: 1px solid rgba(126, 92, 83, .12);
  border-radius: 0;
  padding: 0 8px;
  background: transparent;
  color: #66534e;
  text-align: left;
  font-size: 13px;
}

.rebuild-sos-ground-list button span {
  margin-right: 8px;
  color: #9a7eaa;
  font-size: 9px;
  font-weight: 900;
}

.rebuild-sos-ground-list button[aria-pressed="true"] {
  border-color: rgba(156, 126, 171, .34);
  background: rgba(195, 173, 205, .18);
}

.rebuild-sos-breath-stage {
  min-height: 206px;
  display: grid;
  place-items: center;
}

.rebuild-sos-breath-orb {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border: 1px solid rgba(164, 119, 145, .22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 32%, #f6dcd4, #e6d8e9 58%, #d9cce0);
  box-shadow: 0 0 42px rgba(185, 139, 157, .2), inset 0 0 25px rgba(255, 255, 255, .3);
  color: #674f58;
  font-size: 14px;
  font-weight: 690;
  transition: transform 4s ease, background-color 4s ease, box-shadow 4s ease;
}

.rebuild-sos-breath-orb.is-inhale {
  transform: scale(1.25);
  background-color: #efd5d4;
  box-shadow: 0 0 62px rgba(190, 140, 159, .28), inset 0 0 34px rgba(255, 255, 255, .38);
}

.rebuild-sos-breath-orb.is-exhale {
  transform: scale(.88);
  transition-duration: 6s;
}

.rebuild-sos-breath-time {
  margin: 0 0 5px;
  color: #806872;
  text-align: center;
  font-size: 13px;
  font-weight: 680;
}

.rebuild-sos-emergency {
  margin-top: 12px;
  border-top: 1px solid rgba(155, 104, 91, .2);
  padding-top: 21px;
}

@media (prefers-reduced-motion: reduce) {
  .rebuild-sos-breath-orb,
  .rebuild-sos-breath-orb.is-exhale {
    transition-duration: .2s;
  }
}

.rebuild-sos-emergency h2 {
  color: #98554c;
  font-size: 15px;
}

.rebuild-sos-emergency-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.rebuild-sos-emergency-actions a {
  min-height: 45px;
  border: 1px solid rgba(165, 77, 68, .4);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #a34f47;
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
}

.rebuild-sos-crisis-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.rebuild-sos-crisis-links a {
  min-height: 69px;
  border: 1px solid rgba(126, 92, 83, .13);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  background: rgba(255, 255, 255, .5);
  color: #584641;
  text-decoration: none;
}

.rebuild-sos-crisis-links a span {
  font-size: 10px;
  font-weight: 900;
}

.rebuild-sos-crisis-links a strong {
  color: #a2554c;
  font-size: 10px;
}

.rebuild-sos-crisis-links a small {
  grid-column: 1 / -1;
  color: #8e7b74;
  font-size: 8px;
  letter-spacing: .045em;
}

html.sos-open,
html.sos-open body {
  overflow: hidden;
}

html.sos-open .nav,
html.sos-open .top {
  visibility: hidden;
}

/* The SOS is intentionally a quiet, single-focus experience. */
.rebuild-sos-shell {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 37%, rgba(242, 209, 199, .72), transparent 36%),
    radial-gradient(ellipse at 89% 75%, rgba(223, 211, 232, .56), transparent 36%),
    linear-gradient(180deg, #fffaf7 0%, #f8f0eb 100%);
}

.rebuild-sos-bar {
  border-bottom: 0;
  background: rgba(255, 250, 247, .74);
}

.rebuild-sos-bar .rebuild-sos-sound {
  width: 38px;
  min-height: 38px;
  margin: 0;
  border: 1px solid rgba(151, 112, 103, .15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .58);
  color: #876861;
  font-size: 18px;
}

.rebuild-sos-bar .rebuild-sos-sound > span {
  width: auto;
  height: auto;
  grid-row: auto;
  background: transparent;
}

.rebuild-sos-content {
  min-height: calc(100dvh - 65px);
  padding: 0 27px 28px;
  display: flex;
  flex-direction: column;
}

.rebuild-sos-card {
  min-height: min(610px, calc(100dvh - 160px));
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rebuild-sos-breathe {
  align-items: center;
  text-align: center;
}

.rebuild-sos-breathe > h1 {
  margin: 17px 0 2px;
  color: #53433f;
  font-size: clamp(33px, 9vw, 41px);
  font-weight: 680;
  letter-spacing: -.05em;
}

.rebuild-sos-breath-stage {
  min-height: 260px;
}

.rebuild-sos-breath-orb {
  width: 158px;
  height: 158px;
  font-size: 16px;
}

.rebuild-sos-breath-note {
  margin-top: 13px !important;
  color: #8d7771 !important;
}

.rebuild-sos-breathe .rebuild-sos-step-link {
  margin-top: 24px;
}

.rebuild-sos-ground-list {
  margin: 24px 0 10px;
}

.rebuild-sos-help-link {
  align-self: center;
  min-height: 42px;
  margin-top: auto;
  border: 0;
  background: transparent;
  color: #a05e54;
  font-size: 12px;
  font-weight: 680;
}

.rebuild-sos-emergency[hidden] {
  display: none;
}

.rebuild-sos-emergency {
  margin-top: 5px;
  padding-bottom: 12px;
}

/* Keep SOS unmistakably REBUILD, with a softer version of its dark brand. */
.rebuild-sos-experience {
  background: #17181d;
  color: #f1ecea;
}

.rebuild-sos-shell {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(157, 115, 134, .2), transparent 37%),
    radial-gradient(ellipse at 88% 76%, rgba(124, 112, 159, .15), transparent 38%),
    linear-gradient(180deg, #17151a 0%, #1d1a20 100%);
}

.rebuild-sos-bar {
  background: rgba(23, 21, 26, .78);
}

.rebuild-sos-bar button,
.rebuild-sos-bar > span {
  color: #eee8e6;
}

.rebuild-sos-bar .rebuild-sos-sound {
  border-color: rgba(231, 206, 204, .17);
  background: rgba(255, 255, 255, .055);
  color: #ead6d3;
}

.rebuild-sos-card-label,
.rebuild-sos-ground .rebuild-sos-card-label,
.rebuild-sos-breathe .rebuild-sos-card-label,
.rebuild-sos-contact .rebuild-sos-card-label {
  color: #d2aaa6;
}

.rebuild-sos-breathe > h1,
.rebuild-sos-card h2 {
  color: #f4eeeb;
}

.rebuild-sos-card p,
.rebuild-sos-breath-note,
.rebuild-sos-emergency p {
  color: #c1b4b1 !important;
}

.rebuild-sos-breath-orb {
  border-color: rgba(227, 195, 201, .35);
  background: radial-gradient(circle at 38% 32%, rgba(213, 166, 157, .48), rgba(157, 132, 175, .32) 58%, rgba(114, 99, 137, .24));
  box-shadow: 0 0 52px rgba(183, 139, 158, .2), inset 0 0 28px rgba(251, 223, 217, .11);
  color: #fff4f1;
}

.rebuild-sos-breath-time,
.rebuild-sos-step-link {
  color: #d0bfbc;
}

.rebuild-sos-ground-field {
  min-height: 73px;
  padding: 10px 0;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(227, 207, 202, .15);
}

.rebuild-sos-ground-field > span {
  color: #d0aaa9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .075em;
}

.rebuild-sos-ground-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f3edeb;
  font-size: 14px;
}

.rebuild-sos-ground-field input::placeholder {
  color: #9a8e8e;
}

.rebuild-sos-ground-field:focus-within {
  border-bottom-color: rgba(214, 167, 166, .7);
}

.rebuild-sos-ground-list button {
  border-bottom-color: rgba(227, 207, 202, .15);
  color: #eee7e4;
}

.rebuild-sos-ground-list button span {
  color: #d2aaa6;
}

.rebuild-sos-secondary {
  border-color: rgba(229, 207, 205, .17);
  background: rgba(255, 255, 255, .06);
  color: #f0e9e7;
}

.rebuild-sos-help-link,
.rebuild-sos-emergency h2,
.rebuild-sos-emergency-actions a {
  color: #e5aa9f;
}

.rebuild-sos-emergency {
  border-top-color: rgba(215, 159, 147, .23);
}

.rebuild-sos-crisis-links a {
  border-color: rgba(227, 207, 202, .15);
  background: rgba(255, 255, 255, .045);
  color: #f1eae8;
}

.rebuild-sos-crisis-links a strong {
  color: #e9b0a5;
}

.rebuild-sos-crisis-links a small {
  color: #b9aaa6;
}

/* Familiar REBUILD typography and accents, softened for immediate support. */
.rebuild-sos-shell {
  background:
    radial-gradient(ellipse at 52% 36%, rgba(121, 91, 154, .18), transparent 36%),
    radial-gradient(ellipse at 16% 72%, rgba(109, 154, 152, .09), transparent 33%),
    linear-gradient(180deg, #141218 0%, #19171f 100%);
}

.rebuild-sos-bar {
  border-bottom: 1px solid rgba(188, 161, 244, .11);
}

.rebuild-sos-bar > span {
  color: #ddd4e7;
  letter-spacing: .14em;
}

.rebuild-sos-card-label,
.rebuild-sos-ground .rebuild-sos-card-label,
.rebuild-sos-breathe .rebuild-sos-card-label,
.rebuild-sos-contact .rebuild-sos-card-label {
  color: #bca1f4;
  font-weight: 900;
  letter-spacing: .14em;
}

.rebuild-sos-opening-message {
  margin: 18px 0 0 !important;
  color: #f2ebf3 !important;
  font-size: clamp(24px, 6.6vw, 30px) !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  letter-spacing: -.04em !important;
}

.rebuild-sos-breathe > h1 {
  margin-top: 12px;
  font-weight: 850;
  letter-spacing: -.06em;
}

.rebuild-sos-breathe .rebuild-sos-breath-note {
  max-width: 320px;
  margin-top: 17px !important;
  color: #eee6ef !important;
  font-size: clamp(19px, 5.2vw, 24px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -.03em !important;
}

.rebuild-sos-breath-stage {
  min-height: 232px;
}

.rebuild-sos-breath-orb {
  border-color: rgba(188, 161, 244, .38);
  background: radial-gradient(circle at 36% 30%, rgba(187, 151, 205, .46), rgba(128, 108, 173, .36) 58%, rgba(82, 75, 120, .26));
  box-shadow: 0 0 54px rgba(159, 126, 193, .21), inset 0 0 28px rgba(236, 215, 231, .1);
}

.rebuild-sos-ground,
.rebuild-sos-next,
.rebuild-sos-contact {
  align-items: stretch;
}

.rebuild-sos-ground h2,
.rebuild-sos-next h2,
.rebuild-sos-contact h2 {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 880;
  line-height: 1.02;
  letter-spacing: -.06em;
}

.rebuild-sos-ground-list {
  gap: 9px;
  margin-top: 22px;
}

.rebuild-sos-ground-field {
  min-height: 78px;
  border: 1px solid rgba(188, 161, 244, .18);
  border-radius: 15px;
  padding: 13px 14px;
  background: linear-gradient(135deg, rgba(49, 40, 65, .75), rgba(31, 29, 40, .84));
}

.rebuild-sos-ground-field > span {
  color: #bca1f4;
}

.rebuild-sos-ground-field:focus-within {
  border-color: rgba(188, 161, 244, .68);
}

.rebuild-sos-next-list button {
  min-height: 61px;
  border: 1px solid rgba(188, 161, 244, .15);
  border-radius: 14px;
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(47, 39, 61, .66), rgba(31, 29, 40, .78));
}

.rebuild-sos-ground-list button span {
  color: #bca1f4;
}

.rebuild-sos-primary {
  border-color: rgba(188, 161, 244, .43);
  background: linear-gradient(135deg, #8065aa, #645084);
  box-shadow: 0 10px 24px rgba(97, 75, 138, .18);
}

.rebuild-sos-secondary {
  border-color: rgba(188, 161, 244, .24);
}

/* SOS grounding mode: a single, composed breathing stage using REBUILD surfaces. */
.rebuild-sos-bar {
  min-height: 66px;
  padding: 0 18px;
  grid-template-columns: 72px 1fr 62px;
  border-bottom: 1px solid rgba(188, 161, 244, .12);
  background: rgba(20, 18, 24, .9);
}

.rebuild-sos-bar > span {
  font-size: 9px;
  letter-spacing: .16em;
}

.rebuild-sos-bar #closeSosSupport {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #eee8f2;
  letter-spacing: .07em;
}

.rebuild-sos-bar .rebuild-sos-sound {
  width: 58px;
  min-height: 34px;
  justify-self: end;
  border-radius: 999px;
  grid-template-columns: auto auto;
  gap: 5px;
  color: #eee8f2;
  font-size: 15px;
}

.rebuild-sos-bar .rebuild-sos-sound::after {
  content: 'OFF';
  color: #a99db0;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
}

.rebuild-sos-bar .rebuild-sos-sound[aria-pressed="true"] {
  border-color: rgba(188, 161, 244, .35);
  background: rgba(128, 101, 170, .18);
}

.rebuild-sos-bar .rebuild-sos-sound[aria-pressed="true"]::after {
  content: 'ON';
  color: #d7c6fb;
}

.rebuild-sos-content {
  min-height: calc(100dvh - 66px);
  padding: 18px 22px max(18px, env(safe-area-inset-bottom));
}

.rebuild-sos-breathe {
  min-height: 0;
  flex: 0 0 auto;
  justify-content: flex-start;
}

.rebuild-sos-breathe .rebuild-sos-card-label {
  margin-top: 2px;
}

.rebuild-sos-opening-message {
  margin-top: 11px !important;
  font-size: clamp(21px, 5.8vw, 25px) !important;
  line-height: 1.2 !important;
}

.rebuild-sos-breathe > h1 {
  margin: 7px 0 0;
  font-size: clamp(27px, 7.5vw, 32px);
  font-weight: 830;
}

.rebuild-sos-breath-stage {
  width: 100%;
  min-height: 286px;
  margin-top: 18px;
  border: 1px solid rgba(188, 161, 244, .16);
  border-radius: 26px;
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background:
    radial-gradient(circle at 50% 42%, rgba(128, 101, 170, .18), transparent 48%),
    rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 18px 44px rgba(8, 7, 12, .16);
  overflow: hidden;
}

.rebuild-sos-breath-orb {
  width: 172px;
  height: 172px;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
  box-shadow: 0 0 42px rgba(159, 126, 193, .18), inset 0 0 28px rgba(236, 215, 231, .1);
}

.rebuild-sos-breath-orb.is-inhale {
  transform: scale(1.16);
  box-shadow: 0 0 50px rgba(159, 126, 193, .22), inset 0 0 31px rgba(236, 215, 231, .12);
}

.rebuild-sos-breath-orb.is-exhale {
  transform: scale(.9);
}

.rebuild-sos-breath-time {
  margin: 0;
  color: #b8abbf;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.rebuild-sos-breathe .rebuild-sos-breath-note {
  margin-top: 15px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  letter-spacing: -.01em !important;
}

.rebuild-sos-breathe .rebuild-sos-step-link {
  min-height: 52px;
  margin-top: 14px;
  border: 1px solid rgba(188, 161, 244, .28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(128, 101, 170, .88), rgba(100, 80, 132, .9));
  color: #fffafc;
  box-shadow: 0 10px 24px rgba(97, 75, 138, .16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.rebuild-sos-help-link {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border-top: 1px solid rgba(188, 161, 244, .1);
  color: #d8aaa3;
  font-size: 11px;
  font-weight: 800;
}

@media (max-height: 740px) {
  .rebuild-sos-content {
    padding-top: 13px;
  }

  .rebuild-sos-opening-message {
    font-size: 20px !important;
  }

  .rebuild-sos-breathe > h1 {
    font-size: 26px;
  }

  .rebuild-sos-breath-stage {
    min-height: 244px;
    margin-top: 12px;
    gap: 17px;
  }

  .rebuild-sos-breath-orb {
    width: 148px;
    height: 148px;
  }

  .rebuild-sos-breathe .rebuild-sos-breath-note {
    margin-top: 10px !important;
  }

  .rebuild-sos-breathe .rebuild-sos-step-link {
    margin-top: 10px;
  }
}

/* SOS refinement pass 2: REBUILD colour balance and stronger breathing focus. */
.rebuild-sos-experience {
  background: #080b0f;
}

.rebuild-sos-shell {
  background:
    radial-gradient(ellipse at 50% 38%, rgba(239, 91, 50, .055), transparent 42%),
    linear-gradient(180deg, #080b0f 0%, #11151a 100%);
}

.rebuild-sos-bar {
  border-bottom-color: #30373d;
  background: rgba(8, 11, 15, .94);
}

.rebuild-sos-bar > span,
.rebuild-sos-bar #closeSosSupport {
  color: #f4f3ee;
}

.rebuild-sos-bar .rebuild-sos-sound {
  border-color: #353d45;
  background: #151a20;
  color: #f4f3ee;
}

.rebuild-sos-bar .rebuild-sos-sound::after {
  color: #8b949d;
}

.rebuild-sos-bar .rebuild-sos-sound[aria-pressed="true"] {
  border-color: rgba(239, 91, 50, .65);
  background: #151a20;
}

.rebuild-sos-bar .rebuild-sos-sound[aria-pressed="true"]::after {
  color: #ef7a59;
}

.rebuild-sos-opening-message {
  margin: 3px 0 0 !important;
  color: #f4f3ee !important;
  line-height: 1 !important;
}

.rebuild-sos-opening-message span,
.rebuild-sos-opening-message strong {
  display: block;
}

.rebuild-sos-opening-message span {
  color: #c9ceca;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.rebuild-sos-opening-message strong {
  margin-top: 7px;
  color: #f4f3ee;
  font-size: clamp(28px, 7.6vw, 34px);
  font-weight: 950;
  line-height: .96;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.rebuild-sos-breathe > h1 {
  margin-top: 9px;
  color: #aeb6b0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.rebuild-sos-breath-stage {
  min-height: 304px;
  margin-top: 20px;
  border-color: #30373d;
  background:
    radial-gradient(circle at 50% 44%, rgba(91, 64, 119, .16), transparent 45%),
    #151a20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 16px 36px rgba(0, 0, 0, .2);
}

.rebuild-sos-breath-orb {
  width: 188px;
  height: 188px;
  border-color: rgba(188, 161, 244, .4);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: .035em;
  box-shadow: 0 0 34px rgba(159, 126, 193, .17), inset 0 0 28px rgba(236, 215, 231, .1);
}

.rebuild-sos-breath-orb.is-inhale {
  transform: scale(1.13);
  box-shadow: 0 0 42px rgba(159, 126, 193, .2), inset 0 0 31px rgba(236, 215, 231, .12);
}

.rebuild-sos-breath-orb.is-exhale {
  transform: scale(.9);
}

.rebuild-sos-breath-time {
  color: #aeb6b0;
}

.rebuild-sos-breathe .rebuild-sos-breath-note {
  color: #c9ceca !important;
}

.rebuild-sos-breathe .rebuild-sos-step-link {
  border-color: #ef5b32;
  border-radius: 0;
  background: #ef5b32;
  box-shadow: none;
  color: #fff;
}

.rebuild-sos-help-link {
  border-top-color: #30373d;
  color: #ef7a59;
}

@media (max-height: 740px) {
  .rebuild-sos-opening-message strong {
    font-size: 27px;
  }

  .rebuild-sos-breathe > h1 {
    font-size: 15px;
  }

  .rebuild-sos-breath-stage {
    min-height: 258px;
  }

  .rebuild-sos-breath-orb {
    width: 164px;
    height: 164px;
    font-size: 21px;
  }
}

/* SOS visual depth + colour: richer breathing focus without a single-colour identity. */
.rebuild-sos-shell {
  background:
    radial-gradient(ellipse at 15% 22%, rgba(25, 63, 96, .11), transparent 38%),
    radial-gradient(ellipse at 88% 68%, rgba(40,29,54, .09), transparent 40%),
    radial-gradient(ellipse at 48% 43%, rgba(91, 64, 119, .08), transparent 36%),
    linear-gradient(180deg, #080b0f 0%, #11151a 100%);
}

.rebuild-sos-bar .rebuild-sos-sound[aria-pressed="true"] {
  border-color: rgba(40,29,54, .9);
  background: linear-gradient(135deg, rgba(25, 63, 96, .22), rgba(40,29,54, .22));
}

.rebuild-sos-bar .rebuild-sos-sound[aria-pressed="true"]::after {
  color: #c7d5cd;
}

.rebuild-sos-breath-stage {
  min-height: 326px;
  border: 1px solid transparent;
  background:
    radial-gradient(circle at 50% 47%, rgba(91, 64, 119, .15), transparent 43%) padding-box,
    linear-gradient(145deg, rgba(25, 63, 96, .72), rgba(91, 64, 119, .56) 48%, rgba(40,29,54, .64)) border-box,
    #151a20 padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 18px 42px rgba(0, 0, 0, .24);
}

.rebuild-sos-breath-orb {
  position: relative;
  z-index: 0;
  width: 198px;
  height: 198px;
  border: 1px solid transparent;
  background:
    radial-gradient(circle at 36% 28%, rgba(211, 183, 205, .5), rgba(91, 64, 119, .64) 46%, rgba(25, 63, 96, .44) 76%, rgba(21, 26, 32, .9)) padding-box,
    conic-gradient(from 215deg, #193f60, #5b4077 38%, #81462f 67%, #281d36 84%, #193f60) border-box;
  color: #fff;
  font-size: 29px;
  font-weight: 950;
  line-height: .96;
  letter-spacing: .012em;
  text-shadow: 0 2px 12px rgba(8, 11, 15, .5);
  box-shadow:
    inset 14px 16px 34px rgba(255, 255, 255, .08),
    inset -18px -20px 38px rgba(8, 11, 15, .28),
    0 16px 32px rgba(0, 0, 0, .25);
  isolation: isolate;
}

.rebuild-sos-breath-orb::before,
.rebuild-sos-breath-orb::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition-property: transform, opacity;
  transition-timing-function: ease;
}

.rebuild-sos-breath-orb::before {
  z-index: -1;
  inset: -14px;
  border: 1px solid transparent;
  background:
    linear-gradient(#151a20, #151a20) padding-box,
    conic-gradient(from 210deg, rgba(25, 63, 96, .78), rgba(91, 64, 119, .82), rgba(129, 70, 47, .62), rgba(40,29,54, .78), rgba(25, 63, 96, .78)) border-box;
  opacity: .46;
}

.rebuild-sos-breath-orb::after {
  z-index: -2;
  inset: -30px;
  background: radial-gradient(circle, rgba(91, 64, 119, .22) 0 42%, rgba(25, 63, 96, .13) 58%, transparent 72%);
  filter: blur(12px);
  opacity: .32;
}

.rebuild-sos-breath-orb.is-inhale {
  transform: scale(1.11);
  box-shadow:
    inset 16px 18px 36px rgba(255, 255, 255, .1),
    inset -18px -20px 38px rgba(8, 11, 15, .24),
    0 18px 38px rgba(0, 0, 0, .25);
}

.rebuild-sos-breath-orb.is-inhale::before {
  transform: scale(1.07);
  opacity: .74;
  transition-duration: 4s;
}

.rebuild-sos-breath-orb.is-inhale::after {
  transform: scale(1.1);
  opacity: .58;
  transition-duration: 4s;
}

.rebuild-sos-breath-orb.is-exhale {
  transform: scale(.9);
}

.rebuild-sos-breath-orb.is-exhale::before {
  transform: scale(.94);
  opacity: .34;
  transition-duration: 6s;
}

.rebuild-sos-breath-orb.is-exhale::after {
  transform: scale(.9);
  opacity: .22;
  transition-duration: 6s;
}

.rebuild-sos-breathe .rebuild-sos-step-link {
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #1b2228, #151a20) padding-box,
    linear-gradient(110deg, #193f60, #5b4077 46%, #281d36) border-box;
  color: #f4f3ee;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 12px 25px rgba(0, 0, 0, .22);
}

.rebuild-sos-breathe .rebuild-sos-step-link:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 7px 16px rgba(0, 0, 0, .2);
}

.rebuild-sos-help-link {
  border-top-color: #30373d;
  color: #aeb6b0;
}

@media (max-height: 740px) {
  .rebuild-sos-breath-stage {
    min-height: 274px;
  }

  .rebuild-sos-breath-orb {
    width: 172px;
    height: 172px;
    font-size: 25px;
  }

  .rebuild-sos-breath-orb::before {
    inset: -11px;
  }

  .rebuild-sos-breath-orb::after {
    inset: -23px;
  }
}

/* SOS breathing hierarchy: the instruction and layered orb lead; the stage recedes. */
.rebuild-sos-opening-message {
  margin-top: 0 !important;
}

.rebuild-sos-breathe > h1 {
  margin-top: 6px;
}

.rebuild-sos-breath-stage {
  min-height: 342px;
  margin-top: 12px;
  padding: 18px 12px 14px;
  gap: 15px;
  border-color: rgba(174, 182, 176, .075);
  background:
    radial-gradient(circle at 50% 57%, rgba(91, 64, 119, .085), transparent 47%),
    rgba(21, 26, 32, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .025),
    0 12px 30px rgba(0, 0, 0, .12);
}

.rebuild-sos-breath-instruction {
  position: relative;
  z-index: 4;
  color: #f4f3ee;
  font-size: clamp(38px, 11vw, 50px);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.045em;
  text-align: center;
  text-transform: uppercase;
}

.rebuild-sos-breath-orb {
  width: 218px;
  height: 218px;
  background:
    radial-gradient(circle at 35% 27%, rgba(211, 183, 205, .48), rgba(91, 64, 119, .58) 43%, rgba(25, 63, 96, .42) 72%, rgba(21, 26, 32, .94)) padding-box,
    conic-gradient(from 215deg, #193f60, #5b4077 42%, #281d36 78%, #193f60) border-box;
  box-shadow:
    inset 16px 18px 38px rgba(255, 255, 255, .09),
    inset -20px -22px 42px rgba(8, 11, 15, .32),
    0 18px 36px rgba(0, 0, 0, .28);
}

.rebuild-sos-breath-orb::before {
  inset: -17px;
  border-color: transparent;
  background:
    linear-gradient(#151a20, #151a20) padding-box,
    conic-gradient(from 210deg, rgba(25, 63, 96, .82), rgba(91, 64, 119, .78), rgba(40,29,54, .78), rgba(25, 63, 96, .82)) border-box;
  opacity: .5;
}

.rebuild-sos-breath-orb::after {
  inset: -38px;
  background: radial-gradient(circle, rgba(91, 64, 119, .2) 0 42%, rgba(25, 63, 96, .12) 57%, rgba(40,29,54, .07) 65%, transparent 75%);
  filter: blur(13px);
  opacity: .32;
}

.rebuild-sos-breath-orb.is-inhale {
  transform: scale(1.1);
}

.rebuild-sos-breath-orb.is-inhale::before {
  transform: scale(1.1);
  opacity: .72;
}

.rebuild-sos-breath-orb.is-inhale::after {
  transform: scale(1.14);
  opacity: .54;
}

.rebuild-sos-breath-orb.is-exhale {
  transform: scale(.88);
}

.rebuild-sos-breath-orb.is-exhale::before {
  transform: scale(.93);
  opacity: .3;
}

.rebuild-sos-breath-orb.is-exhale::after {
  transform: scale(.88);
  opacity: .18;
}

.rebuild-sos-breath-time {
  margin-top: 3px;
  color: #aeb6b0;
  font-size: 12px;
  letter-spacing: .14em;
}

.rebuild-sos-breathe .rebuild-sos-step-link {
  min-height: 54px;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .065),
    0 14px 28px rgba(0, 0, 0, .25);
}

@media (max-height: 740px) {
  .rebuild-sos-breath-stage {
    min-height: 284px;
    margin-top: 8px;
    padding-top: 14px;
    gap: 10px;
  }

  .rebuild-sos-breath-instruction {
    font-size: clamp(34px, 9.8vw, 42px);
  }

  .rebuild-sos-breath-orb {
    width: 184px;
    height: 184px;
  }

  .rebuild-sos-breath-orb::before {
    inset: -13px;
  }

  .rebuild-sos-breath-orb::after {
    inset: -28px;
  }
}

/* SOS breathing focal strength: reserve the full animated footprint and increase definition. */
.rebuild-sos-breath-stage {
  min-height: 430px;
  gap: 8px;
}

.rebuild-sos-breath-instruction {
  color: #fff;
  font-size: clamp(46px, 12.5vw, 58px);
  font-weight: 950;
  line-height: .88;
  letter-spacing: -.055em;
  opacity: 1;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .5);
}

.rebuild-sos-breath-orb-space {
  width: 338px;
  max-width: 100%;
  height: 338px;
  flex: 0 0 338px;
  display: grid;
  place-items: center;
}

.rebuild-sos-breath-orb {
  width: 220px;
  height: 220px;
  border-width: 2px;
  background:
    radial-gradient(circle at 34% 26%, rgba(231, 207, 225, .78), rgba(121, 84, 148, .9) 39%, rgba(36, 78, 108, .82) 71%, rgba(17, 27, 33, .98)) padding-box,
    conic-gradient(from 215deg, #2d7092, #765695 39%, #7045b8 76%, #2d7092) border-box;
  box-shadow:
    inset 18px 20px 40px rgba(255, 255, 255, .16),
    inset -22px -24px 46px rgba(4, 8, 12, .46),
    0 20px 40px rgba(0, 0, 0, .38);
}

.rebuild-sos-breath-orb::before {
  inset: -15px;
  border-width: 2px;
  background:
    linear-gradient(#151a20, #151a20) padding-box,
    conic-gradient(from 210deg, rgba(45, 112, 146, .96), rgba(118, 86, 149, .94), rgba(112,69,184, .92), rgba(45, 112, 146, .96)) border-box;
  opacity: .76;
}

.rebuild-sos-breath-orb::after {
  inset: -27px;
  background: radial-gradient(circle, rgba(118, 86, 149, .34) 0 44%, rgba(45, 112, 146, .23) 57%, rgba(112,69,184, .14) 66%, transparent 77%);
  filter: blur(9px);
  opacity: .48;
}

.rebuild-sos-breath-orb.is-inhale {
  transform: scale(1.12);
}

.rebuild-sos-breath-orb.is-inhale::before {
  transform: scale(1.08);
  opacity: .96;
}

.rebuild-sos-breath-orb.is-inhale::after {
  transform: scale(1.1);
  opacity: .7;
}

.rebuild-sos-breath-orb.is-exhale {
  transform: scale(.86);
}

.rebuild-sos-breath-orb.is-exhale::before {
  transform: scale(.92);
  opacity: .5;
}

.rebuild-sos-breath-orb.is-exhale::after {
  transform: scale(.86);
  opacity: .3;
}

.rebuild-sos-breath-time {
  position: relative;
  z-index: 5;
  min-height: 22px;
  margin-top: 4px;
  color: #c7d0ca;
  font-size: 13px;
  opacity: 1;
}

@media (max-height: 740px) {
  .rebuild-sos-breath-stage {
    min-height: 368px;
  }

  .rebuild-sos-breath-instruction {
    font-size: clamp(40px, 11.2vw, 48px);
  }

  .rebuild-sos-breath-orb-space {
    width: 276px;
    height: 276px;
    flex-basis: 276px;
  }

  .rebuild-sos-breath-orb {
    width: 184px;
    height: 184px;
  }

  .rebuild-sos-breath-orb::before {
    inset: -12px;
  }

  .rebuild-sos-breath-orb::after {
    inset: -22px;
  }
}

/* SOS focused breathing visual: rich layered depth while preserving the existing cycle. */
.rebuild-sos-opening-message strong {
  font-size: clamp(25px, 6.7vw, 30px);
  opacity: .88;
}

.rebuild-sos-breath-stage {
  min-height: 442px;
  border-color: rgba(174, 182, 176, .045);
  background:
    radial-gradient(circle at 50% 58%, rgba(45, 112, 146, .055), transparent 51%),
    rgba(21, 26, 32, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

.rebuild-sos-breath-instruction {
  font-size: clamp(44px, 11.8vw, 54px);
}

.rebuild-sos-breath-orb-space {
  width: 350px;
  height: 350px;
  flex-basis: 350px;
}

.rebuild-sos-breath-orb {
  border: 2px solid rgba(194, 207, 213, .2);
  background:
    radial-gradient(circle at 31% 25%, rgba(197, 224, 229, .68) 0 7%, rgba(112, 139, 168, .72) 21%, transparent 44%),
    radial-gradient(circle at 72% 75%, rgba(112,69,184, .78), transparent 51%),
    radial-gradient(circle at 30% 78%, rgba(35, 89, 121, .86), transparent 55%),
    linear-gradient(138deg, #426f8b 0%, #67517c 47%, #7045b8 100%);
  box-shadow:
    inset 18px 20px 38px rgba(224, 239, 239, .16),
    inset -24px -26px 46px rgba(10, 17, 24, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 22px 46px rgba(0, 0, 0, .38),
    0 0 34px rgba(45, 112, 146, .16);
  filter: saturate(1.06);
}

.rebuild-sos-breath-orb::before {
  inset: -23px;
  border: 9px solid transparent;
  background:
    linear-gradient(rgba(21, 26, 32, .72), rgba(21, 26, 32, .72)) padding-box,
    conic-gradient(from 205deg,
      rgba(45, 112, 146, .92),
      rgba(118, 86, 149, .86) 37%,
      rgba(112,69,184, .88) 72%,
      rgba(45, 112, 146, .92)) border-box;
  box-shadow:
    inset 0 0 18px rgba(118, 86, 149, .16),
    0 0 22px rgba(45, 112, 146, .15);
  opacity: .82;
}

.rebuild-sos-breath-orb::after {
  inset: -45px;
  background:
    radial-gradient(circle,
      rgba(118, 86, 149, .3) 0 39%,
      rgba(45, 112, 146, .26) 49%,
      rgba(112,69,184, .18) 59%,
      rgba(45, 112, 146, .07) 68%,
      transparent 78%);
  filter: blur(10px);
  opacity: .65;
}

.rebuild-sos-breath-orb.is-inhale {
  transform: scale(1.12);
  filter: saturate(1.18) brightness(1.08);
}

.rebuild-sos-breath-orb.is-inhale::before {
  transform: scale(1.11);
  opacity: 1;
}

.rebuild-sos-breath-orb.is-inhale::after {
  transform: scale(1.05);
  opacity: .88;
}

.rebuild-sos-breath-orb.is-exhale {
  transform: scale(.86);
  filter: saturate(.94) brightness(.92);
}

.rebuild-sos-breath-orb.is-exhale::before {
  transform: scale(.91);
  opacity: .6;
}

.rebuild-sos-breath-orb.is-exhale::after {
  transform: scale(.84);
  opacity: .4;
}

@media (max-height: 740px) {
  .rebuild-sos-breath-stage {
    min-height: 396px;
  }

  .rebuild-sos-opening-message strong {
    font-size: 25px;
  }

  .rebuild-sos-breath-instruction {
    font-size: clamp(38px, 10.5vw, 45px);
  }

  .rebuild-sos-breath-orb-space {
    width: 304px;
    height: 304px;
    flex-basis: 304px;
  }

  .rebuild-sos-breath-orb::before {
    inset: -19px;
    border-width: 7px;
  }

  .rebuild-sos-breath-orb::after {
    inset: -36px;
  }
}

/* A compact, photo-rich Today home that behaves like a native app surface. */
#today {
  padding-top: 12px;
}

#today .today-v3-hero {
  height: 218px;
  margin: 0 15px;
  border-radius: 24px;
}

#today .today-v3-copy {
  left: 19px;
  right: 19px;
  bottom: 20px;
}

#today .today-v3-copy h1 {
  font-size: clamp(31px, 8.6vw, 40px);
}

#today .today-v3-body {
  padding: 22px 15px 16px;
}

#today .today-v3-daylabel {
  margin-bottom: 7px;
}

#today .today-v3-dayintro {
  margin-bottom: 15px;
  color: #a8afb9;
  font-size: 12px;
}

#today .today-app-progress {
  min-height: 72px;
  margin-bottom: 15px;
  border: 1px solid rgba(188, 161, 244, .18);
  border-radius: 17px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #191720, #12141a);
}

#today .today-app-progress-copy {
  display: grid;
  gap: 5px;
}

#today .today-app-progress-copy > span {
  color: #bda8e7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .105em;
}

#today .today-app-progress-copy > strong {
  color: #f1edf6;
  font-size: 14px;
  font-weight: 800;
}

#today .today-app-progress-dots {
  display: flex;
  gap: 7px;
}

#today .today-app-progress-dots i {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(188, 161, 244, .45);
  border-radius: 50%;
  background: rgba(188, 161, 244, .08);
}

#today .today-app-progress-dots i.is-done {
  border-color: #bca1f4;
  background: #bca1f4;
  box-shadow: 0 0 10px rgba(188, 161, 244, .3);
}

#today .today-home-card-stack {
  gap: 10px;
}

#today .today-home-unified-card.recovery,
#today .today-home-unified-card.nonneg,
#today .today-home-unified-card.checkin,
#today .today-home-unified-card.evening {
  grid-template-columns: minmax(0, 1fr) 40%;
  height: 150px !important;
  min-height: 150px !important;
  border-radius: 19px !important;
}

#today .today-home-card-content {
  padding: 14px 7px 13px 15px;
}

#today .today-home-card-icon {
  top: 14px;
  left: 15px;
  width: 33px;
  height: 33px;
}

#today .today-home-card-icon svg {
  width: 18px;
  height: 18px;
}

#today .today-app-card-status {
  position: absolute;
  top: 23px;
  left: 57px;
  color: var(--card-accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
}

#today .today-app-card-status.is-done {
  color: #20d5ef;
}

#today .today-home-card-copy {
  margin-top: 34px;
}

#today .today-home-unified-card.recovery .today-home-card-copy strong,
#today .today-home-unified-card.checkin .today-home-card-copy strong {
  font-size: clamp(20px, 5.4vw, 24px);
}

#today .today-home-unified-card.nonneg .today-home-card-copy strong,
#today .today-home-unified-card.evening .today-home-card-copy strong {
  font-size: clamp(17px, 4.8vw, 21px);
}

#today .today-home-card-copy > span {
  margin-top: 6px;
  font-size: 11px;
}

@media (max-width: 390px) {
  #today .today-v3-hero {
    height: 200px;
  }

  #today .today-home-unified-card.recovery,
  #today .today-home-unified-card.nonneg,
  #today .today-home-unified-card.checkin,
  #today .today-home-unified-card.evening {
    height: 143px !important;
    min-height: 143px !important;
  }

  #today .today-app-card-status {
    font-size: 7px;
  }
}

/* Native-style navigation and a mixed-size, photo-led Today card layout. */
.app {
  padding-bottom: 92px;
}

.nav {
  height: 78px;
  border-top: 1px solid rgba(188, 161, 244, .13);
  background: rgba(12, 14, 19, .94);
  backdrop-filter: blur(18px);
}

.nav button {
  min-width: 0;
  padding: 8px 2px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8b929d;
  font-size: 8px;
  letter-spacing: .025em;
}

.nav button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button.on {
  border-top: 2px solid #bca1f4;
  color: #e2d4ff;
}

#today .today-v3-hero {
  height: 186px;
  border-radius: 21px;
}

#today .today-v3-copy h1 {
  max-width: 315px;
  font-size: clamp(28px, 7.8vw, 35px);
}

#today .today-v3-body {
  padding-top: 19px;
}

#today .today-home-card-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#today .today-home-unified-card.recovery,
#today .today-home-unified-card.evening {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 40%;
  height: 145px !important;
  min-height: 145px !important;
}

#today .today-home-unified-card.nonneg,
#today .today-home-unified-card.checkin {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: 184px !important;
  min-height: 184px !important;
}

#today .today-home-unified-card.nonneg .today-home-card-content,
#today .today-home-unified-card.checkin .today-home-card-content {
  grid-area: 1 / 1;
  z-index: 4;
  justify-content: flex-end;
  padding: 13px 10px 13px 13px;
}

#today .today-home-unified-card.nonneg .today-home-card-visual,
#today .today-home-unified-card.checkin .today-home-card-visual {
  grid-area: 1 / 1;
}

#today .today-home-unified-card.nonneg .today-home-card-visual::after,
#today .today-home-unified-card.checkin .today-home-card-visual::after {
  background: linear-gradient(0deg, rgba(10, 12, 16, .94) 5%, rgba(10, 12, 16, .7) 41%, rgba(10, 12, 16, .16) 100%);
}

#today .today-home-unified-card.nonneg .today-home-photo-word,
#today .today-home-unified-card.checkin .today-home-photo-word {
  top: 39%;
  font-size: 16px;
}

#today .today-home-unified-card.nonneg .today-home-card-icon,
#today .today-home-unified-card.checkin .today-home-card-icon {
  top: 12px;
  left: 12px;
}

#today .today-home-unified-card.nonneg .today-app-card-status,
#today .today-home-unified-card.checkin .today-app-card-status {
  top: 22px;
  left: 51px;
}

#today .today-home-unified-card.nonneg .today-home-card-copy,
#today .today-home-unified-card.checkin .today-home-card-copy {
  margin-top: 0;
}

#today .today-home-unified-card.nonneg .today-home-card-copy strong {
  font-size: clamp(13px, 3.8vw, 17px);
}

#today .today-home-unified-card.checkin .today-home-card-copy strong {
  font-size: clamp(18px, 5vw, 22px);
}

#today .today-home-unified-card.nonneg .today-home-card-copy > span,
#today .today-home-unified-card.checkin .today-home-card-copy > span {
  font-size: 10px;
}

@media (max-width: 360px) {
  #today .today-home-unified-card.nonneg .today-home-card-copy strong {
    font-size: 12px;
  }

  .nav button {
    font-size: 7px;
  }
}

#today .today-v3-hero {
  height: 204px;
}

#today .today-v3-copy {
  bottom: 17px;
}

#today .today-v3-copy .today-app-purpose {
  max-width: 345px;
  margin: 10px 0 9px;
  font-size: clamp(22px, 6.1vw, 28px);
  line-height: 1.14;
  letter-spacing: -.045em;
}

#today .today-app-daily-quote {
  max-width: 345px;
  margin: 0 0 7px;
  color: rgba(240, 236, 248, .83);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 390px) {
  #today .today-v3-hero {
    height: 198px;
  }

  #today .today-v3-copy .today-app-purpose {
    font-size: clamp(21px, 6.1vw, 25px);
  }
}

/* Recovery Pass 1: homepage-only identity. Keep these tokens scoped away from
   Today, Active and the shared shell. */
#recovery {
  --recovery-steel: #50637f;
  --recovery-indigo: #293456;
  --recovery-violet: #7045b8;
  --recovery-purple: #985cff;
  --recovery-highlight: #d8c9ff;
  --recovery-accent-solid: #643aa8;
  --recovery-gradient: linear-gradient(135deg, var(--recovery-steel) 0%, var(--recovery-indigo) 42%, var(--recovery-violet) 74%, var(--recovery-purple) 100%);
  --recovery-luminous-gradient: linear-gradient(110deg, var(--recovery-indigo) 0%, var(--recovery-violet) 48%, var(--recovery-purple) 100%);
  --recovery-frame-violet: #b47aff;
  --recovery-frame-gradient: linear-gradient(110deg, var(--recovery-frame-violet) 0%, var(--recovery-purple) 38%, var(--recovery-violet) 68%, var(--recovery-indigo) 100%);
  --recovery-frame-gradient-selected: linear-gradient(110deg, var(--recovery-highlight) 0%, var(--recovery-frame-violet) 20%, var(--recovery-purple) 46%, var(--recovery-violet) 72%, var(--recovery-indigo) 100%);
  --recovery-frame-width: 3px;
  --recovery-frame-bloom: -2px -2px 7px rgba(152, 92, 255, .3), 0 8px 18px rgba(61, 37, 101, .17), inset 0 1px 0 rgba(255, 255, 255, .06);
  --recovery-gunmetal: #151a22;
  --recovery-gunmetal-deep: #0d1118;
  --recovery-cream: #f4f1e9;
  background: var(--recovery-cream);
  color: #17191f;
}

#recovery .recoveryTop {
  position: relative;
  overflow: hidden;
  margin: 10px 12px 0;
  padding: 23px 19px 19px;
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  border-radius: 20px;
  background:
    linear-gradient(102deg, rgba(10, 14, 24, .8), rgba(22, 27, 47, .46) 54%, rgba(26, 30, 49, .08)) padding-box,
    url("../images/recovery-protect-it.jpg") center 42% / cover no-repeat padding-box,
    var(--recovery-frame-gradient) border-box;
  box-shadow: var(--recovery-frame-bloom);
}

#recovery .recoveryTop > .k {
  color: var(--recovery-highlight);
}

#recovery .recoveryTop > h1 {
  margin: 9px 0 0;
  color: #f4f2f7;
  font-size: clamp(32px, 8.6vw, 41px);
  line-height: .96;
  letter-spacing: -.065em;
}

#recovery .recovery-page-intro {
  max-width: 300px;
  margin: 9px 0 17px;
  color: rgba(229, 234, 231, .79);
  font-size: 12px;
  line-height: 1.5;
}

#recovery .sober-priority {
  min-height: 65px;
  padding: 13px 13px 12px;
  align-items: center;
  border: 1px solid rgba(205, 221, 213, .17);
  border-radius: 15px;
  background: rgba(12, 16, 26, .62);
}

#recovery .sober-priority b {
  font-size: 54px;
}

#recovery .sober-priority small {
  margin-top: 7px;
  color: #d9e4dd;
  font-size: 9px;
  letter-spacing: .11em;
}

#recovery .sober-priority.is-empty b {
  display: none;
}

#recovery .sober-priority.is-empty small {
  margin-top: 0;
}

#recovery .sober-priority-mark,
#recovery .sober-priority.is-empty .sober-priority-mark {
  width: 38px;
  height: 38px;
  background: rgba(174, 188, 224, .16);
  color: var(--recovery-highlight);
  font-size: 18px;
}

#recovery .daily-practice,
#recovery .recovery-journey,
#recovery .recovery-support,
#recovery .recovery-tools {
  background: var(--recovery-cream);
  color: #17191f;
}

#recovery .daily-practice {
  padding: 27px 15px 9px;
}

#recovery .daily-practice-head,
#recovery .recovery-section-head,
#recovery .recovery-tools-head {
  margin-bottom: 5px;
}

#recovery .daily-practice-head .k,
#recovery .recovery-section-head .k,
#recovery .recovery-tools-head .k {
  color: var(--recovery-accent-solid);
}

#recovery .daily-practice-head h2,
#recovery .recovery-section-head h2,
#recovery .recovery-tools-head h2 {
  margin-top: 7px;
  color: #17191f;
  font-size: 29px;
  line-height: .96;
}

#recovery .daily-practice-head > small,
#recovery .recovery-section-head > small,
#recovery .recovery-tools-head > small {
  padding: 6px 9px;
  border: 1px solid rgba(41, 52, 86, .2);
  border-radius: 999px;
  background: rgba(41, 52, 86, .08);
  color: var(--recovery-accent-solid);
  font-size: 7px;
}

#recovery .recovery-section-intro {
  margin: 0 0 14px;
  color: #626771;
  font-size: 11px;
  line-height: 1.45;
}

#recovery .practice-grid {
  gap: 10px;
}

#recovery .practice-row {
  height: 184px;
  min-height: 184px;
  padding: 13px;
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  border-radius: 17px;
  box-shadow: var(--recovery-frame-bloom);
}

#recovery .practice-row.morning {
  background:
    linear-gradient(0deg, rgba(13, 17, 27, .88), rgba(25, 31, 51, .5) 43%, rgba(32, 39, 65, .06)) padding-box,
    url("../images/today-user-balance-clean.png") center / cover no-repeat padding-box,
    var(--recovery-frame-gradient) border-box;
}

#recovery .practice-row.evening {
  background:
    linear-gradient(0deg, rgba(13, 17, 27, .88), rgba(35, 39, 65, .5) 43%, rgba(67, 57, 82, .07)) padding-box,
    url("../images/today-user-silence-clean.png") center / cover no-repeat padding-box,
    var(--recovery-frame-gradient) border-box;
}

#recovery .practice-row-icon {
  width: 39px;
  height: 39px;
  background: rgba(8, 11, 15, .75);
  color: var(--recovery-highlight);
}

#recovery .practice-row.evening .practice-row-icon {
  color: #c0b6d0;
}

#recovery .practice-row-icon svg {
  width: 23px;
  height: 23px;
}

#recovery .practice-row-arrow {
  top: 13px;
  right: 13px;
  width: 29px;
  height: 29px;
  background: rgba(17, 19, 24, .56);
  font-size: 18px;
}

#recovery .practice-row b {
  font-size: 16px;
}

#recovery .practice-row small {
  margin-top: 5px;
  font-size: 8px;
}

#recovery .practice-status {
  margin-top: 7px !important;
  font-size: 7px !important;
}

#recovery .practice-status::before {
  background: var(--recovery-highlight);
}

#recovery .recovery-journey {
  padding: 27px 15px 20px;
}

#recovery .recovery-next,
#recovery .recovery-journey.is-empty .recovery-next {
  min-height: 154px;
  padding: 17px;
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(13, 17, 27, .84), rgba(30, 37, 63, .56) 46%, rgba(61, 52, 76, .1)) padding-box,
    url("../images/recovery-growth-clean.png") center 49% / cover no-repeat padding-box,
    var(--recovery-frame-gradient) border-box;
  box-shadow: var(--recovery-frame-bloom);
}

#recovery .recovery-next::after {
  width: 136px;
  height: 136px;
  border-width: 23px;
  border-color: rgba(174, 188, 224, .08);
}

#recovery .recovery-next-icon,
#recovery .recovery-journey.is-empty .recovery-next-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  background: rgba(8, 11, 15, .72);
  color: var(--recovery-highlight);
}

#recovery .recovery-next-icon svg {
  width: 27px;
  height: 27px;
}

#recovery .recovery-next-copy small {
  color: var(--recovery-highlight);
}

#recovery .recovery-next-copy h3 {
  font-size: 27px;
}

#recovery .recovery-next-copy p,
#recovery .recovery-progress-copy {
  color: #c7ccd8;
}

#recovery .recovery-progress {
  height: 6px;
  margin-top: 21px;
  border-radius: 999px;
  background: rgba(174, 188, 224, .16);
}

#recovery .recovery-progress i {
  background: var(--recovery-luminous-gradient);
  box-shadow: 0 0 10px rgba(152, 92, 255, .3);
}

#recovery .recovery-journey.is-empty .recovery-milestone-grid {
  display: none;
}

#recovery .recovery-milestone {
  min-height: 91px;
  border: 1px solid rgba(71, 82, 112, .26);
  border-radius: 15px;
  background: linear-gradient(145deg, #fdfcf8, #ebe8e1);
  color: #1c2029;
}

#recovery .recovery-milestone-mark {
  background: rgba(41, 52, 86, .1);
  color: var(--recovery-indigo);
}

#recovery .recovery-milestone small {
  color: #666c77;
}

#recovery .recovery-milestone.done {
  border-color: rgba(80, 99, 127, .38);
  background: linear-gradient(145deg, #e8ebf2, #d9deea);
  color: #20283c;
}

#recovery .recovery-milestone.next {
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  background:
    linear-gradient(145deg, var(--recovery-gunmetal), var(--recovery-gunmetal-deep)) padding-box,
    var(--recovery-frame-gradient-selected) border-box;
  color: #f7f6f2;
  box-shadow: 0 8px 16px rgba(61, 37, 101, .16), inset 0 1px 0 rgba(255, 255, 255, .06);
}

#recovery .recovery-milestone.next .recovery-milestone-mark {
  background: var(--recovery-luminous-gradient);
  color: #fff;
}

#recovery .recovery-support {
  padding: 0 15px 10px;
}

#recovery .recovery-urgent-grid {
  display: grid;
  gap: 11px;
}

#recovery .recovery-urgent-grid .recovery-support-card {
  min-height: 160px;
}

#recovery .recovery-support-card.craving-now {
  background:
    linear-gradient(103deg, rgba(10, 12, 16, .86), rgba(14, 17, 22, .52) 52%, rgba(8, 10, 13, .08)) padding-box,
    url("../images/recovery-be-brave-clean.png") center 43% / cover no-repeat padding-box,
    var(--recovery-frame-gradient-selected) border-box;
}

#recovery .recovery-support-card.struggling-now {
  min-height: 144px;
  background:
    linear-gradient(103deg, rgba(12, 13, 15, .86), rgba(20, 18, 18, .5) 52%, rgba(12, 10, 9, .08)) padding-box,
    url("../images/recovery-struggling-rebirth.jpg") center 58% / cover no-repeat padding-box,
    var(--recovery-frame-gradient) border-box;
}

#recovery .recovery-support-card {
  width: 100%;
  font: inherit;
  color: #fff;
  text-align: left;
  cursor: pointer;
  appearance: none;
  touch-action: manipulation;
  min-height: 188px;
  padding: 18px;
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  border-radius: 19px;
  background:
    linear-gradient(103deg, rgba(13, 17, 27, .86), rgba(31, 38, 64, .58) 49%, rgba(66, 57, 81, .09)) padding-box,
    url("../images/recovery-be-brave-clean.png") center 51% / cover no-repeat padding-box,
    var(--recovery-frame-gradient) border-box;
  box-shadow: var(--recovery-frame-bloom);
}

#recovery .recovery-support-card::after {
  color: rgba(174, 188, 224, .055);
}

#recovery .recovery-support-icon {
  width: 42px;
  height: 42px;
  color: var(--recovery-highlight);
}

#recovery .recovery-support-icon svg {
  width: 25px;
  height: 25px;
}

#recovery .recovery-support-card .k {
  margin-top: 14px;
  color: var(--recovery-highlight);
}

#recovery .recovery-support-card h2 {
  font-size: 28px;
}

#recovery .recovery-support-card p {
  color: #c7ccd8;
}

#recovery .recovery-support-card .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 13px;
  border: 1px solid rgba(216, 201, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  color: var(--recovery-highlight);
  font-size: 18px;
  line-height: 1;
}

#recovery .recovery-tools {
  padding: 24px 15px 110px;
}

#recovery .recovery-tools-head {
  min-height: 154px;
  margin-bottom: 0;
  padding: 17px;
  align-items: flex-end;
  overflow: hidden;
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(13, 17, 27, .84), rgba(31, 38, 64, .53) 49%, rgba(66, 57, 81, .08)) padding-box,
    url("../images/recovery-tools-forge.jpg") center 53% / cover no-repeat padding-box,
    var(--recovery-frame-gradient) border-box;
  box-shadow: var(--recovery-frame-bloom);
}

#recovery .recovery-tools-head .k {
  color: var(--recovery-highlight);
}

#recovery .recovery-tools-head h2 {
  color: #f7f6f2;
}

#recovery .recovery-tools-head > small {
  border-color: rgba(174, 188, 224, .28);
  background: rgba(15, 19, 30, .68);
  color: #d9deeb;
}

#recovery .recovery-tool-list {
  margin-top: 15px;
  gap: 9px;
}

#recovery .recovery-tool-card {
  min-height: 82px;
  padding: 12px;
  grid-template-columns: 43px 1fr 30px;
  gap: 11px;
  border: 1px solid rgba(126, 141, 180, .22);
  border-radius: 15px;
  box-shadow: none;
}

#recovery .recovery-tool-card,
#recovery .recovery-tool-card.stay-ahead,
#recovery .recovery-tool-card.warning,
#recovery .recovery-tool-card.fellowship,
#recovery .recovery-tool-card.craving,
#recovery .recovery-tool-card.plan,
#recovery .recovery-tool-card.people {
  background: linear-gradient(112deg, var(--recovery-gunmetal), var(--recovery-gunmetal-deep));
  box-shadow: 0 8px 18px rgba(32, 27, 51, .1), inset 0 1px 0 rgba(255, 255, 255, .04);
}

#recovery .recovery-tool-card.craving {
  border-style: solid;
  border-width: var(--recovery-frame-width) 0 0 var(--recovery-frame-width);
  border-color: transparent;
  background:
    linear-gradient(112deg, var(--recovery-gunmetal), var(--recovery-gunmetal-deep)) padding-box,
    var(--recovery-frame-gradient) border-box;
  box-shadow: var(--recovery-frame-bloom);
}

#recovery .recovery-tool-icon {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(174, 188, 224, .2);
  background: linear-gradient(145deg, #1d2534, #0c1119);
  color: var(--recovery-highlight);
}

#recovery .recovery-tool-icon svg {
  width: 25px;
  height: 25px;
}

#recovery .recovery-tool-card.fellowship .recovery-tool-icon,
#recovery .recovery-tool-card.craving .recovery-tool-icon,
#recovery .recovery-tool-card.warning .recovery-tool-icon,
#recovery .recovery-tool-card.plan .recovery-tool-icon,
#recovery .recovery-tool-card.people .recovery-tool-icon {
  color: var(--recovery-highlight);
}

#recovery .recovery-tool-card.stay-ahead .recovery-tool-icon,
#recovery .recovery-tool-card.warning .recovery-tool-icon {
  color: #aebce0;
}

#recovery .recovery-tool-card.fellowship .recovery-tool-icon,
#recovery .recovery-tool-card.plan .recovery-tool-icon {
  color: #b99aef;
}

#recovery .recovery-tool-card.craving .recovery-tool-icon {
  color: var(--recovery-purple);
  filter: drop-shadow(0 0 6px rgba(152, 92, 255, .25));
}

#recovery .recovery-tool-copy b {
  font-size: 15px;
}

#recovery .recovery-tool-copy,
#recovery .recovery-next-copy,
#recovery .practice-row-copy,
#recovery .daily-practice-head > span,
#recovery .recovery-section-head > span,
#recovery .recovery-tools-head > span {
  min-width: 0;
}

#recovery .recovery-tool-copy b,
#recovery .recovery-tool-copy small {
  overflow-wrap: anywhere;
}

#recovery .recovery-tool-copy small {
  color: #b8bbc1;
  font-size: 9px;
  opacity: 1;
}

#recovery .recovery-tool-arrow {
  width: 28px;
  height: 28px;
  background: rgba(205, 207, 216, .09);
  font-size: 18px;
}

@media (max-width: 370px) {
  #recovery .recoveryTop {
    margin-right: 9px;
    margin-left: 9px;
    padding-right: 15px;
    padding-left: 15px;
  }

  #recovery .practice-row {
    height: 173px;
    min-height: 173px;
    padding: 11px;
  }

  #recovery .practice-row b {
    font-size: 14px;
  }

  #recovery .practice-row small {
    font-size: 7px;
  }
}

/* Final Recovery hub order and compact-header overrides. */
#recovery#recovery .recoveryTop{margin-top:8px;padding:16px 17px 14px}
#recovery#recovery .recoveryTop>h1{margin-top:6px;font-size:clamp(24px,6.6vw,30px)}
#recovery#recovery .recovery-page-intro{margin:6px 0 11px;font-size:10px}
#recovery#recovery .sober-priority{min-height:50px;padding:9px 11px}
#recovery#recovery .sober-priority b{font-size:34px}
#recovery#recovery .sober-priority small{margin-top:4px;font-size:7px}
#recovery#recovery .sober-priority-mark,
#recovery#recovery .sober-priority.is-empty .sober-priority-mark{width:31px;height:31px;font-size:15px}
#recovery#recovery .recovery-support{padding:14px 15px 9px}
#recovery#recovery .recovery-support-card{min-height:176px}
#recovery#recovery .daily-practice{padding:26px 15px 110px}

.profile-account-link{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;box-sizing:border-box}
.profile-account-link:focus-visible{outline:3px solid currentColor;outline-offset:3px}
