@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&family=Nunito+Sans:wght@600;700;800;900&display=swap");

:root {
  --blue: #3e7bff;
  --blue-dark: #315fe0;
  --red: #4f8cff;
  --ink: #070707;
  --muted: #637083;
  --line: #d7dce5;
  --paper: #ffffff;
  --soft-blue: rgba(62, 123, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fbfcff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 620;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(62, 123, 255, 0.15), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(79, 140, 255, 0.08), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(62, 123, 255, 0.08), transparent 28%),
    #fbfcff;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.moti-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

.blueprint-grid {
  position: absolute;
  inset: -40px;
  opacity: 0.68;
  background-image:
    radial-gradient(circle, rgba(62, 123, 255, 0.12) 1px, transparent 1.8px),
    linear-gradient(rgba(24, 35, 52, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 35, 52, 0.055) 1px, transparent 1px);
  background-size: 118px 118px, 34px 34px, 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: gridDrift 48s linear infinite;
}

.blueprint-circle {
  position: absolute;
  border: 2px solid rgba(62, 123, 255, 0.13);
  border-radius: 999px;
}

.circle-one {
  width: 420px;
  height: 420px;
  left: -130px;
  bottom: -120px;
}

.circle-two {
  width: 360px;
  height: 360px;
  right: -110px;
  top: 120px;
}

.blue-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(62, 123, 255, 0.08);
}

.dot-one {
  top: 18%;
  left: 12%;
  animation: dotFloat 9s ease-in-out infinite;
}

.dot-two {
  top: 28%;
  right: 18%;
  animation: dotFloat 10s ease-in-out infinite 600ms;
}

.dot-three {
  bottom: 16%;
  left: 48%;
  animation: dotFloat 11s ease-in-out infinite 1.1s;
}

.moti-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 24px 0;
}

.moti-header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dev-day-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 5px 0 var(--ink), 0 16px 38px rgba(79, 140, 255, 0.18);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dev-day-button:hover,
.dev-day-button:focus-visible {
  background: #111;
  box-shadow: 0 3px 0 var(--red), 0 18px 46px rgba(7, 7, 7, 0.18);
  transform: translateY(2px);
}

.header-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 13px 7px 9px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(79, 140, 255, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.76) inset;
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.header-streak-flame {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  color: var(--red);
  background: radial-gradient(circle at 50% 76%, #ffd8ad, #f4f8ff 68%);
  box-shadow: 0 0 0 5px rgba(79, 140, 255, 0.08);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header-streak-flame svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.header-streak-pill.is-waiting {
  color: #596372;
  border-color: rgba(89, 99, 114, 0.18);
  box-shadow: 0 12px 34px rgba(39, 72, 142, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.76) inset;
}

.header-streak-pill.is-waiting .header-streak-flame {
  color: #8e96a6;
  background: radial-gradient(circle at 50% 76%, #dce1e8, #f5f7fa 68%);
  box-shadow: 0 0 0 5px rgba(89, 99, 114, 0.08);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 14px;
  border: 2px solid rgba(7, 7, 7, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(20, 42, 95, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(7, 7, 7, 0.2);
  box-shadow: 0 18px 48px rgba(20, 42, 95, 0.13);
}

.brand-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-link span {
  font-size: 0.95rem;
  font-weight: 950;
}

.moti-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: calc(100vh - 72px);
  place-items: center;
  gap: 46px;
  padding: 42px 24px 58px;
}

.moti-card {
  position: relative;
  width: min(720px, 100%);
  min-width: 0;
  padding: clamp(34px, 5vw, 62px);
  border: 3px solid var(--ink);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 39, 66, 0.06) 33px 34px),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(22, 39, 66, 0.06) 33px 34px);
  box-shadow: 12px 14px 0 var(--ink), 0 30px 90px rgba(39, 72, 142, 0.14);
  overflow: hidden;
}

.moti-card::after {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 44px;
  height: 44px;
  border-top: 3px solid rgba(62, 123, 255, 0.28);
  border-right: 3px solid rgba(79, 140, 255, 0.22);
  border-radius: 0 14px 0 0;
  pointer-events: none;
}

.moti-hero-card {
  display: grid;
  place-items: center;
  width: min(820px, 100%);
}

.moti-questionnaire {
  width: min(680px, 100%);
}

.questionnaire-card {
  display: grid;
  gap: 16px;
  width: 100%;
  max-height: min(760px, calc(100vh - 150px));
  padding: clamp(28px, 4vw, 42px);
  border: 3px solid var(--ink);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 123, 255, 0.1), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px);
  box-shadow: 12px 14px 0 var(--ink), 0 30px 90px rgba(39, 72, 142, 0.16);
}

.questionnaire-progress {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #d7dce5;
}

.questionnaire-progress span {
  display: block;
  width: var(--questionnaire-progress, 8%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transition: width 320ms ease;
}

.questionnaire-card h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(2.05rem, 5.5vw, 3.6rem);
}

.questionnaire-copy {
  margin: -4px 0 2px;
  color: var(--muted);
  font-weight: 900;
}

.questionnaire-options {
  display: grid;
  gap: 10px;
  max-height: min(390px, 42vh);
  overflow: auto;
  padding: 2px 8px 2px 0;
  scrollbar-width: thin;
}

.questionnaire-welcome-card {
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  color: #5f6d80;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  line-height: 1.45;
}

.questionnaire-other-field {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(62, 123, 255, 0.16);
  border-radius: 16px;
  background: rgba(62, 123, 255, 0.045);
}

.questionnaire-option {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}

.questionnaire-option:hover,
.questionnaire-option:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(7, 7, 7, 0.86), 0 18px 40px rgba(62, 123, 255, 0.12);
}

.questionnaire-option.selected {
  color: white;
  background: var(--blue);
  box-shadow: 0 5px 0 var(--ink), 0 18px 42px rgba(62, 123, 255, 0.18);
}

.questionnaire-option strong {
  font-size: 1.02rem;
  font-weight: 1000;
}

.questionnaire-option span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.questionnaire-option.selected span {
  color: rgba(255, 255, 255, 0.78);
}

.moti-buddy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
}

.moti-buddy-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  min-height: 178px;
  padding: 12px 8px;
  border: 1px solid rgba(7, 7, 7, 0.1);
  border-radius: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--buddy-color) 16%, transparent), transparent 44%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(39, 72, 142, 0.07);
  text-align: center;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.moti-buddy-card:hover,
.moti-buddy-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--buddy-color) 42%, rgba(7, 7, 7, 0.12));
  box-shadow: 0 18px 42px color-mix(in srgb, var(--buddy-color) 16%, transparent);
  outline: none;
}

.moti-buddy-card.selected {
  border-color: color-mix(in srgb, var(--buddy-color) 64%, var(--ink));
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--buddy-color) 28%, transparent), transparent 44%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--buddy-color) 18%, transparent), 0 20px 48px color-mix(in srgb, var(--buddy-color) 18%, transparent);
}

.moti-buddy-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--buddy-color) 44%, rgba(7, 7, 7, 0.12));
  color: var(--buddy-color);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
    color-mix(in srgb, var(--buddy-color) 82%, white);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--buddy-color) 22%, transparent);
}

.moti-buddy-face::before,
.moti-buddy-face::after {
  content: "";
  position: absolute;
  top: 23px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: white;
}

.moti-buddy-face::before {
  left: 18px;
}

.moti-buddy-face::after {
  right: 18px;
}

.moti-buddy-face > span {
  position: absolute;
  bottom: 15px;
  width: 18px;
  height: 7px;
  border-bottom: 3px solid white;
  border-radius: 0 0 999px 999px;
}

.moti-buddy-face.is-round {
  border-radius: 26px;
}

.moti-buddy-face.is-bolt {
  border-radius: 22px 34px 18px 34px;
  transform: rotate(-5deg);
}

.moti-buddy-face.is-leaf {
  border-radius: 42px 18px 42px 18px;
  transform: rotate(-8deg);
}

.moti-buddy-face.is-sun {
  border-radius: 50%;
}

.moti-buddy-face.is-crystal {
  clip-path: polygon(50% 0, 92% 24%, 82% 84%, 50% 100%, 18% 84%, 8% 24%);
}

.moti-buddy-card strong {
  font-size: 0.92rem;
  font-weight: 1000;
}

.moti-buddy-card em {
  color: var(--buddy-color);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
}

.moti-buddy-card small {
  max-width: 104px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  line-height: 1.22;
}

@media (max-width: 620px) {
  .moti-header {
    padding: 16px 12px 0;
  }

  .brand-link {
    min-height: 40px;
    padding: 7px 12px;
  }

  .brand-link img {
    width: 26px;
    height: 26px;
  }

  .brand-link span {
    font-size: 0.82rem;
  }

  .moti-shell {
    place-items: start center;
    min-height: calc(100vh - 58px);
    gap: 28px;
    padding: 20px 14px 44px;
  }

  .moti-questionnaire {
    width: 100%;
  }

  .questionnaire-card {
    gap: 12px;
    max-height: none;
    min-height: auto;
    width: 100%;
    padding: 22px;
    border-width: 2px;
    border-radius: 18px;
    box-shadow: 0 18px 54px rgba(39, 72, 142, 0.14);
    overflow: hidden;
  }

  .questionnaire-progress {
    grid-template-columns: repeat(var(--questionnaire-step-count, 3), minmax(10px, 1fr));
    gap: 6px;
    margin-bottom: 4px;
  }

  .questionnaire-progress span {
    height: 7px;
    min-width: 0;
  }

  .questionnaire-card h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .questionnaire-copy {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .questionnaire-options {
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .questionnaire-welcome-card {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 0.98rem;
  }

  .questionnaire-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .questionnaire-actions .platform-primary,
  .questionnaire-actions .platform-secondary {
    width: 100%;
    min-height: 50px;
  }

  .moti-buddy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .moti-buddy-card {
    min-height: 176px;
    padding: 14px 10px;
  }

  .moti-buddy-card small {
    max-width: 120px;
  }
}

@media (max-width: 380px) {
  .questionnaire-card {
    padding: 18px;
  }

  .moti-buddy-grid {
    grid-template-columns: 1fr;
  }
}

.questionnaire-age-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.9));
  box-shadow: 0 20px 55px rgba(38, 76, 140, 0.08);
}

.questionnaire-age-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.questionnaire-age-head strong {
  color: #070707;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.9;
}

.questionnaire-age-head span {
  color: #627086;
  font-weight: 900;
}

.questionnaire-age-slider {
  width: 100%;
  accent-color: #3f7cff;
}

.questionnaire-age-labels {
  display: flex;
  justify-content: space-between;
  color: #6b778a;
  font-size: 0.85rem;
  font-weight: 900;
}

.questionnaire-age-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  color: #526174;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.questionnaire-age-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--red);
}

.questionnaire-age-consent span {
  display: grid;
  gap: 4px;
}

.questionnaire-age-consent strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.questionnaire-age-consent small {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.questionnaire-field {
  display: grid;
  gap: 8px;
}

.questionnaire-field span {
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.questionnaire-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(7, 7, 7, 0.12);
  outline: none;
}

.questionnaire-field input:focus {
  box-shadow: 0 5px 0 var(--blue), 0 18px 34px rgba(62, 123, 255, 0.12);
}

.questionnaire-sync {
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid rgba(7, 7, 7, 0.16);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  font-weight: 1000;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.questionnaire-sync:hover,
.questionnaire-sync:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 5px 0 var(--blue);
}

.questionnaire-avatar-wrap {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.questionnaire-mini-label {
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.questionnaire-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.questionnaire-avatar {
  display: grid;
  place-items: center;
  min-height: 66px;
  border: 2px solid rgba(7, 7, 7, 0.2);
  border-radius: 18px;
  background: white;
  box-shadow: 0 3px 0 rgba(7, 7, 7, 0.8);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.questionnaire-avatar:hover,
.questionnaire-avatar:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 5px 0 var(--blue);
}

.questionnaire-avatar.selected {
  border-color: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 16px 34px rgba(62, 123, 255, 0.18);
}

.questionnaire-avatar span,
.profile-badge[data-avatar-kind] {
  display: grid;
  place-items: center;
  font-weight: 1000;
}

.questionnaire-avatar span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--ink), #4f607a);
}

.questionnaire-avatar span[data-avatar-kind="blue"],
.profile-badge[data-avatar-kind="blue"] {
  color: white;
  background: linear-gradient(135deg, var(--blue), #765dff);
}

.questionnaire-avatar span[data-avatar-kind="red"],
.profile-badge[data-avatar-kind="red"] {
  color: white;
  background: linear-gradient(135deg, var(--red), #245fdd);
}

.questionnaire-avatar span[data-avatar-kind="spark"],
.profile-badge[data-avatar-kind="spark"] {
  color: white;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 8%, transparent 9%),
    linear-gradient(135deg, var(--blue), var(--red));
}

.questionnaire-photo-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.questionnaire-photo-preview {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 35% 30%, #8fbdff, var(--red) 62%, #245fdd);
  background-position: center;
  background-size: cover;
  box-shadow: 0 5px 0 var(--ink);
  font-size: 1.7rem;
  font-weight: 1000;
}

.questionnaire-photo-preview.has-image {
  color: transparent;
}

.questionnaire-photo-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.questionnaire-photo-controls > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

.avatar-crop-open {
  overflow: hidden;
}

.avatar-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 7, 7, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.avatar-crop-card {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-top: 5px solid var(--red);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(79, 140, 255, 0.12), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(62, 123, 255, 0.1), transparent 30%),
    white;
  box-shadow: 10px 12px 0 rgba(7, 7, 7, 0.94), 0 30px 90px rgba(7, 7, 7, 0.25);
}

.avatar-crop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.avatar-crop-header h2 {
  margin: 0;
}

.avatar-crop-close {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(7, 7, 7, 0.12);
}

.avatar-crop-frame {
  position: relative;
  width: min(280px, 76vw);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(45deg, rgba(7, 7, 7, 0.055) 25%, transparent 25% 75%, rgba(7, 7, 7, 0.055) 75%),
    linear-gradient(45deg, rgba(7, 7, 7, 0.055) 25%, transparent 25% 75%, rgba(7, 7, 7, 0.055) 75%);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  touch-action: none;
  cursor: grab;
}

.avatar-crop-frame:active {
  cursor: grabbing;
}

.avatar-crop-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  user-select: none;
  transform-origin: center;
}

.avatar-crop-zoom {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 950;
}

.avatar-crop-zoom input {
  width: 100%;
  accent-color: var(--red);
}

.avatar-crop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.questionnaire-photo-upload,
.questionnaire-photo-reset {
  width: fit-content;
  border: 2px solid rgba(7, 7, 7, 0.2);
  border-radius: 999px;
  background: white;
  box-shadow: 0 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 1000;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.questionnaire-photo-upload {
  display: inline-flex;
  padding: 10px 14px;
}

.questionnaire-photo-reset {
  padding: 9px 13px;
}

.questionnaire-photo-upload:hover,
.questionnaire-photo-upload:focus-within,
.questionnaire-photo-reset:hover,
.questionnaire-photo-reset:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 5px 0 var(--blue);
}

.questionnaire-photo-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.questionnaire-actions {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.questionnaire-actions .questionnaire-back[hidden] {
  display: none;
}

.questionnaire-actions:has(.questionnaire-back[hidden]) {
  grid-template-columns: 1fr;
}

.questionnaire-back {
  min-height: 56px;
  border-radius: 14px;
  font-size: 1rem;
}

.questionnaire-submit {
  min-height: 56px;
  border-radius: 14px;
  font-size: 1rem;
}

.questionnaire-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(79, 140, 255, 0.28);
  border-radius: 12px;
  color: #6b1515;
  background: rgba(79, 140, 255, 0.07);
  font-weight: 900;
}

.questionnaire-note[data-tone="success"] {
  border-color: rgba(62, 123, 255, 0.24);
  color: #173c84;
  background: rgba(62, 123, 255, 0.08);
}

.questionnaire-burnout-result {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 12%, rgba(79, 140, 255, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(62, 123, 255, 0.08), rgba(255, 255, 255, 0.94) 50%, rgba(79, 140, 255, 0.06));
}

.questionnaire-burnout-result > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

.session-burnout-result {
  display: grid;
  justify-items: center;
  width: 100%;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(7, 7, 7, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(79, 140, 255, 0.12), transparent 30%),
    radial-gradient(circle at 14% 86%, rgba(62, 123, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.78);
}

.session-burnout-result .burnout-meter {
  width: min(340px, 100%);
}

.burnout-meter {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(320px, 100%);
  color: var(--ink);
}

.burnout-meter-visual {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 224 / 130;
}

.burnout-meter-visual svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.burnout-meter-track,
.burnout-meter-fill {
  fill: none;
  stroke-linecap: round;
  stroke-width: 18;
}

.burnout-meter-track {
  stroke: rgba(7, 7, 7, 0.1);
}

.burnout-meter-fill {
  stroke: var(--burnout-color);
  filter: drop-shadow(0 12px 18px rgba(79, 140, 255, 0.12));
}

.burnout-meter-needle {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 4px;
  height: 34%;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%) rotate(var(--burnout-angle));
  transform-origin: 50% 100%;
  box-shadow: 0 0 0 5px white, 0 8px 18px rgba(7, 7, 7, 0.16);
}

.burnout-meter-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 16px;
  height: 16px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--burnout-color);
  transform: translateX(-50%);
}

.burnout-meter-readout {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-top: -18px;
}

.burnout-meter-readout strong {
  font-size: clamp(3rem, 9vw, 5.2rem);
  line-height: 0.9;
}

.burnout-meter-readout span {
  color: var(--muted);
  font-weight: 1000;
}

.burnout-meter p {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.burnout-meter-note {
  display: block;
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.38;
  text-align: center;
}

.burnout-score-progress {
  margin: 8px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(62, 123, 255, 0.18);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(62, 123, 255, 0.08);
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.card-ring {
  position: absolute;
  pointer-events: none;
  border: 2px solid rgba(62, 123, 255, 0.12);
  border-radius: 999px;
}

.card-ring-one {
  width: 260px;
  height: 260px;
  right: -96px;
  top: -86px;
}

.card-ring-two {
  width: 190px;
  height: 190px;
  left: -76px;
  bottom: -84px;
}

.login-panel {
  min-width: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(520px, 100%);
  margin-inline: auto;
  padding: clamp(8px, 2vw, 18px) 0;
  text-align: center;
}

.moti-logo {
  width: min(360px, 92%);
  height: auto;
  object-fit: contain;
  margin: 0 auto 22px;
  filter: drop-shadow(0 18px 24px rgba(39, 75, 160, 0.13));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 14px;
  font-size: clamp(2.55rem, 6.4vw, 5.15rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.01em;
}

h2,
h3 {
  margin-bottom: 12px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.login-copy {
  max-width: min(430px, 100%);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 560;
  text-align: center;
  text-wrap: balance;
}

.voron-login-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: fit-content;
  min-height: 58px;
  min-width: 250px;
  padding: 12px 15px 12px 22px;
  border: 2px solid rgba(7, 7, 7, 0.22);
  border-radius: 14px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 50%, rgba(79, 140, 255, 0.05), transparent 26%),
    white;
  box-shadow: 0 3px 0 var(--ink), 0 14px 34px rgba(39, 72, 142, 0.12);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.voron-login-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.2) 44%, transparent 58% 100%);
  transform: translateX(-110%);
  transition: transform 520ms ease;
}

.voron-login-button:hover,
.voron-login-button:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--ink);
  box-shadow: 4px 6px 0 var(--blue), 0 18px 38px rgba(39, 72, 142, 0.14);
}

.voron-login-button:hover::before,
.voron-login-button:focus-visible::before {
  transform: translateX(110%);
}

.voron-login-button img {
  order: 2;
  width: 30px;
  height: 30px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid rgba(79, 140, 255, 0.14);
  border-radius: 50%;
  background: rgba(79, 140, 255, 0.04);
}

.voron-login-button span {
  order: 1;
  font-weight: 780;
}

.moti-about {
  position: relative;
  width: min(840px, 100%);
  padding: clamp(24px, 4vw, 34px);
  border: 2px solid rgba(7, 7, 7, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(62, 123, 255, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.66);
  box-shadow: 0 24px 70px rgba(39, 72, 142, 0.08);
  backdrop-filter: blur(12px);
  text-align: center;
}

.moti-about::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: min(220px, 46%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: translateX(-50%);
}

.moti-about h2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.moti-about p:not(.eyebrow) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  line-height: 1.55;
  font-weight: 540;
  text-wrap: pretty;
}

.moti-about p + p {
  margin-top: 12px;
}

.moti-platform {
  position: relative;
  width: min(1120px, 100%);
  display: grid;
  gap: 24px;
}

.moti-platform::before,
.moti-platform::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
}

.moti-platform::before {
  width: 360px;
  height: 360px;
  left: -130px;
  top: 190px;
  background: radial-gradient(circle, rgba(62, 123, 255, 0.18), transparent 62%);
  animation: softOrbit 8s ease-in-out infinite;
}

.moti-platform::after {
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: 18%;
  border: 18px solid rgba(79, 140, 255, 0.08);
  animation: softOrbit 10s ease-in-out infinite reverse;
}

.platform-header,
.platform-card {
  position: relative;
  border: 2px solid rgba(7, 7, 7, 0.13);
  background:
    radial-gradient(circle at 92% 10%, rgba(79, 140, 255, 0.1), transparent 22%),
    radial-gradient(circle at 8% 100%, rgba(62, 123, 255, 0.12), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.955), rgba(255, 255, 255, 0.955)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px);
  box-shadow: 0 24px 70px rgba(39, 72, 142, 0.12), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  padding: clamp(28px, 4vw, 48px);
  border-top: 5px solid var(--red);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 10px 12px 0 rgba(7, 7, 7, 0.92), 0 30px 90px rgba(39, 72, 142, 0.16);
}

.platform-header::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: 58px;
  top: -230px;
  border: 32px solid rgba(62, 123, 255, 0.11);
  border-radius: 50%;
  pointer-events: none;
  animation: slowSpin 18s linear infinite;
}

.platform-header::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 18px;
  right: 44px;
  bottom: 38px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.28), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.platform-header h2 {
  max-width: 740px;
  margin-bottom: 12px;
}

.platform-header-actions {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  max-width: min(560px, 52vw);
}

.platform-streak-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px 9px 10px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 0 rgba(7, 7, 7, 0.14), 0 14px 34px rgba(79, 140, 255, 0.1);
  font-size: 0.84rem;
  font-weight: 1000;
}

.platform-streak-flame {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  background: var(--red);
  box-shadow: inset 0 -3px 0 rgba(7, 7, 7, 0.16);
}

.platform-streak-flame svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.platform-streak-indicator.is-waiting .platform-streak-flame {
  color: #8e96a6;
  background: #eef2f8;
}

.weekly-streak-button {
  display: grid;
  place-items: center;
  min-width: 304px;
  min-height: 72px;
  padding: 12px 14px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 18%, rgba(79, 140, 255, 0.11), transparent 28%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 0 rgba(7, 7, 7, 0.12), 0 18px 44px rgba(62, 123, 255, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.weekly-streak-button:hover,
.weekly-streak-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(7, 7, 7, 0.22);
  box-shadow: 0 7px 0 rgba(7, 7, 7, 0.16), 0 24px 54px rgba(62, 123, 255, 0.14);
  outline: none;
}

.weekly-streak-button .weekly-streak {
  justify-content: center;
  gap: 7px;
}

.weekly-streak-button .week-day {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.platform-header p:not(.eyebrow),
.platform-card p,
.platform-note,
.post-meta,
.community-heading span {
  color: var(--muted);
  font-weight: 730;
  line-height: 1.55;
}

.text-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.text-button:hover,
.text-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--blue);
}

.platform-nav {
  position: sticky;
  top: 12px;
  z-index: 9;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(39, 72, 142, 0.12);
  backdrop-filter: blur(16px);
}

.platform-nav button,
.platform-nav-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-weight: 1000;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.platform-nav button::before,
.platform-nav-link::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, var(--red), #76aaff);
  opacity: 0;
  transform: scale(0.76);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.platform-nav button::after,
.platform-nav-link::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -45%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0;
  transform: rotate(16deg) translateX(-90%);
  pointer-events: none;
}

.platform-nav button > span,
.platform-nav-link > span {
  position: relative;
  z-index: 1;
}

.platform-nav button:hover,
.platform-nav button:focus-visible,
.platform-nav-link:hover,
.platform-nav-link:focus-visible {
  color: var(--ink);
  transform: translateY(-2px);
}

.platform-nav button.active {
  color: white;
  border-color: var(--ink);
  background: transparent;
  box-shadow: 0 4px 0 var(--ink);
}

.platform-nav button.active::before {
  opacity: 1;
  transform: scale(1);
  animation: navGlow 2.4s ease-in-out infinite;
}

.platform-nav button.active::after {
  animation: navSweep 1.1s ease both;
}

.platform-nav button.nav-pop {
  animation: navPop 260ms ease both;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 10px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.platform-nav button:hover .nav-icon,
.platform-nav button:focus-visible .nav-icon,
.platform-nav-link:hover .nav-icon,
.platform-nav-link:focus-visible .nav-icon {
  transform: rotate(-6deg) translateY(-1px);
}

.platform-nav button.active .nav-icon {
  color: var(--red);
  background: white;
  transform: rotate(-8deg);
}

.nav-icon svg,
.ui-icon svg,
.button-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon svg .fill-icon {
  fill: currentColor;
}

.button-icon,
.ui-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
}

@keyframes navGlow {
  0%,
  100% {
    box-shadow: inset 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.2);
  }
}

@keyframes navSweep {
  from {
    opacity: 0;
    transform: rotate(16deg) translateX(-90%);
  }

  25% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: rotate(16deg) translateX(360%);
  }
}

@keyframes navPop {
  0% {
    transform: scale(0.98);
  }

  70% {
    transform: scale(1.035);
  }

  100% {
    transform: scale(1);
  }
}

.moti-view {
  display: none;
}

.moti-view.active {
  display: grid;
  gap: 24px;
}

.moti-view:not(.active) {
  display: none !important;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-panel {
  position: relative;
  display: grid;
  gap: 24px;
  border-top: 1px solid rgba(45, 63, 92, 0.1);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(62, 123, 255, 0.055), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 20%, rgba(62, 123, 255, 0.11), transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(79, 140, 255, 0.08), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px);
}

.path-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.path-heading h3 {
  margin-bottom: 0;
}

.path-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.quote-of-day {
  position: relative;
  display: grid;
  gap: 8px;
  max-width: 720px;
  padding: 18px 20px 18px 24px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-left: 6px solid var(--blue);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 10%, rgba(79, 140, 255, 0.1), transparent 24%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(39, 72, 142, 0.08);
}

.quote-of-day blockquote {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.34;
  font-weight: 950;
}

.quote-of-day-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.quote-of-day-label span {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 34px;
  flex: 0 0 auto;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.quote-of-day-label span::before,
.quote-of-day-label span::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 19px;
  height: 22px;
  border-radius: 56% 56% 58% 58%;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(57, 121, 255, 0.18);
}

.quote-of-day-label span::before {
  left: 2px;
}

.quote-of-day-label span::after {
  right: 2px;
}

.quote-of-day-label span i,
.quote-of-day-label span::before,
.quote-of-day-label span::after {
  pointer-events: none;
}

.quote-of-day-label span i {
  display: none;
}

.quote-of-day-label span::selection {
  background: transparent;
}

.quote-of-day-label span::before {
  clip-path: polygon(0 38%, 52% 0, 88% 0, 58% 42%, 100% 42%, 100% 100%, 0 100%);
}

.quote-of-day-label span::after {
  clip-path: polygon(0 38%, 52% 0, 88% 0, 58% 42%, 100% 42%, 100% 100%, 0 100%);
}

.path-heading > span,
.path-actions > span {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 0.94rem;
  font-weight: 1000;
}

.path-track {
  position: relative;
  display: block;
  width: min(600px, 100%);
  height: var(--path-height, 760px);
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}

.path-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2%;
  width: 72%;
  height: 96%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 18%, rgba(62, 123, 255, 0.14), transparent 30%),
    radial-gradient(circle at 62% 52%, rgba(79, 140, 255, 0.1), transparent 34%),
    radial-gradient(circle at 42% 82%, rgba(62, 123, 255, 0.1), transparent 32%);
  filter: blur(12px);
  opacity: 0.75;
  transform: translateX(-50%);
  pointer-events: none;
}

.path-curve {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.path-curve-shadow,
.path-curve-line,
.path-curve-dash {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.path-curve-shadow {
  stroke: rgba(62, 123, 255, 0.11);
  stroke-width: 10;
}

.path-curve-line {
  stroke: url(#moti-path-gradient);
  stroke-width: 3.4;
}

.path-curve-dash {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-dasharray: 1 11;
  stroke-width: 3.4;
  animation: pathFlow 5s linear infinite;
}

.path-window-note {
  position: absolute;
  left: 50%;
  top: var(--path-note-y, 24px);
  z-index: 3;
  padding: 8px 12px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.path-node {
  --path-scale: 1;
  position: absolute;
  left: clamp(58px, var(--path-x, 50%), calc(100% - 58px));
  top: var(--path-y, 0);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 !important;
  padding: 0;
  border: 3px solid rgba(7, 7, 7, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.3) 28%, transparent 42%),
    linear-gradient(135deg, rgba(62, 123, 255, 0.16), rgba(79, 140, 255, 0.1)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(39, 72, 142, 0.12), 0 0 0 10px rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(var(--path-scale));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.path-node.bubble-0 {
  --path-tilt: -5deg;
}

.path-node.bubble-1 {
  --path-tilt: 5deg;
}

.path-node.bubble-2 {
  --path-tilt: -2deg;
}

.path-node.bubble-3 {
  --path-tilt: 7deg;
}

.path-node.bubble-4 {
  --path-tilt: -7deg;
}

.path-node.bubble-5 {
  --path-tilt: 3deg;
}

.path-node.bubble-6 {
  --path-tilt: 0deg;
}

.path-node-core {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(7, 7, 7, 0.12);
  border-radius: 50%;
  background: #eef2f8;
  box-shadow: inset 0 -5px 0 rgba(7, 7, 7, 0.07), 0 12px 24px rgba(39, 72, 142, 0.12);
  transform: rotate(var(--path-tilt, 0deg));
}

.path-node-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.path-node-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.path-node-label {
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  display: grid;
  min-width: 180px;
  max-width: 240px;
  gap: 2px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 5px 6px 0 var(--ink), 0 20px 44px rgba(39, 72, 142, 0.16);
  opacity: 0;
  transform: translate3d(-8px, -50%, 0) scale(0.96);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.path-node.label-left .path-node-label {
  left: auto;
  right: calc(100% + 16px);
  transform: translate3d(8px, -50%, 0) scale(0.96);
}

.path-node:hover .path-node-label,
.path-node:focus-visible .path-node-label,
.path-node.is-selected .path-node-label {
  opacity: 1;
  transform: translate3d(0, -50%, 0) scale(1);
}

.path-node-label strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.15;
}

.path-node-label small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.path-node.is-complete .path-node-core {
  color: white;
  border-color: var(--ink);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.path-node.is-current {
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 7px 0 rgba(7, 7, 7, 0.92), 0 18px 38px rgba(79, 140, 255, 0.2);
}

.path-node.is-current:hover,
.path-node.is-current:focus-visible {
  --path-scale: 1.06;
  transform: translate(-50%, calc(-50% - 4px)) scale(var(--path-scale));
  box-shadow: 0 10px 0 rgba(7, 7, 7, 0.92), 0 24px 40px rgba(79, 140, 255, 0.18);
}

.path-node.is-current .path-node-core {
  color: white;
  border-color: var(--ink);
  background: var(--red);
  animation: pathPulse 1.7s ease-in-out infinite;
}

.path-node.is-selected:not(.is-current) {
  border-color: rgba(7, 7, 7, 0.36);
  transform: translate(-50%, calc(-50% - 2px)) scale(var(--path-scale));
}

.path-node.is-locked {
  opacity: 0.58;
}

.path-node.is-locked:hover,
.path-node.is-locked:focus-visible,
.path-node.is-selected.is-locked {
  opacity: 0.92;
}

.platform-card {
  border-radius: 18px;
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.path-panel.platform-card {
  overflow: visible;
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 7, 7, 0.2);
  box-shadow: 0 30px 80px rgba(39, 72, 142, 0.16), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.streak-card {
  border-top: 5px solid var(--red);
  background:
    radial-gradient(circle at 88% 18%, rgba(79, 140, 255, 0.1), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.955), rgba(255, 255, 255, 0.955)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px);
}

.streak-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flame-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  color: var(--red);
  background: #f4f8ff;
  box-shadow: 0 4px 0 var(--ink);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.streak-card.is-waiting {
  border-top-color: #b8c0cc;
}

.streak-card.is-waiting .flame-icon {
  color: #8e96a6;
  border-color: rgba(7, 7, 7, 0.42);
  background: #f3f5f8;
  box-shadow: 0 4px 0 rgba(7, 7, 7, 0.42);
}

.flame-icon svg,
.mini-flame svg,
.burst-flame svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.session-card {
  border-top: 1px solid rgba(45, 63, 92, 0.1);
  background:
    radial-gradient(circle at 86% 18%, rgba(62, 123, 255, 0.13), transparent 32%),
    linear-gradient(rgba(255, 255, 255, 0.955), rgba(255, 255, 255, 0.955)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px);
}

.motivation-card {
  border-top: 5px solid var(--ink);
  background:
    radial-gradient(circle at 92% 12%, rgba(7, 7, 7, 0.07), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.955), rgba(255, 255, 255, 0.955)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(22, 39, 66, 0.045) 33px 34px);
}

.platform-card h3 {
  margin-top: 0;
}

.platform-card p {
  margin-bottom: 20px;
  font-weight: 560;
}

.platform-primary,
.platform-secondary,
.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-weight: 820;
  cursor: pointer;
  outline: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.platform-primary {
  color: white;
  background: var(--red);
  box-shadow: 0 4px 0 var(--ink);
}

.platform-secondary,
.platform-link {
  color: var(--ink);
  background: white;
  box-shadow: 0 3px 0 var(--ink);
}

.platform-primary:hover,
.platform-primary:focus-visible,
.platform-secondary:hover,
.platform-secondary:focus-visible,
.platform-link:hover,
.platform-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--blue), 0 0 0 4px rgba(62, 123, 255, 0.14);
}

.platform-primary:focus:not(:focus-visible),
.platform-secondary:focus:not(:focus-visible),
.platform-link:focus:not(:focus-visible) {
  box-shadow: 0 4px 0 var(--ink);
}

.platform-primary:disabled,
.platform-secondary:disabled {
  color: rgba(7, 7, 7, 0.52);
  background: #d9dee8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.motivation-card blockquote {
  margin: 4px 0 22px;
  padding-left: 16px;
  border-left: 5px solid var(--blue);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.45;
  font-weight: 780;
}

.motivation-card form,
.community-form {
  display: grid;
  gap: 12px;
}

.struggle-picker {
  display: grid;
  gap: 16px;
  margin: 18px 0 6px;
  padding: 16px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 96% 0%, rgba(62, 123, 255, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.76);
}

.profile-struggle-picker {
  margin: 0;
  border-color: rgba(62, 123, 255, 0.2);
  background:
    radial-gradient(circle at 94% 8%, rgba(62, 123, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

.setup-summary {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 16px;
  border: 2px solid rgba(62, 123, 255, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 94% 8%, rgba(62, 123, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.82);
}

.setup-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 820;
}

.setup-summary p {
  margin: 0;
  color: var(--muted);
  font-weight: 560;
}

.setup-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.setup-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 2px solid rgba(7, 7, 7, 0.13);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  box-shadow: 0 3px 0 rgba(7, 7, 7, 0.1);
  font-size: 0.82rem;
  font-weight: 760;
}

.setup-summary-empty {
  padding: 12px 14px;
  border: 2px dashed rgba(7, 7, 7, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.setup-edit-button {
  width: fit-content;
}

.current-buddy-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.current-buddy-symbol {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--buddy-color) 44%, rgba(7, 7, 7, 0.12));
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 18%),
    color-mix(in srgb, var(--buddy-color) 82%, white);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--buddy-color) 18%, transparent);
}

.current-buddy-symbol::before,
.current-buddy-symbol::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: white;
}

.current-buddy-symbol::before {
  left: 9px;
}

.current-buddy-symbol::after {
  right: 9px;
}

.current-buddy-symbol > span {
  position: absolute;
  bottom: 7px;
  width: 9px;
  height: 4px;
  border-bottom: 2px solid white;
  border-radius: 0 0 999px 999px;
}

.current-buddy-symbol.is-round {
  border-radius: 10px;
}

.current-buddy-symbol.is-bolt {
  border-radius: 9px 14px 7px 14px;
  transform: rotate(-5deg);
}

.current-buddy-symbol.is-leaf {
  border-radius: 16px 8px 16px 8px;
  transform: rotate(-8deg);
}

.current-buddy-symbol.is-sun {
  border-radius: 50%;
}

.current-buddy-symbol.is-crystal {
  clip-path: polygon(50% 0, 92% 24%, 82% 84%, 50% 100%, 18% 84%, 8% 24%);
}

.struggle-picker strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 820;
}

.struggle-picker p {
  margin: 0;
  color: var(--muted);
  font-weight: 560;
}

.struggle-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.struggle-chip {
  border: 2px solid rgba(7, 7, 7, 0.13);
  color: var(--ink);
  background: white;
  box-shadow: 0 3px 0 rgba(7, 7, 7, 0.12);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.struggle-chip {
  display: grid;
  gap: 2px;
  min-width: min(190px, 100%);
  padding: 11px 13px;
  border-radius: 14px;
  text-align: left;
}

.struggle-chip strong {
  margin: 0;
  font-size: 0.88rem;
}

.struggle-chip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.struggle-chip:hover,
.struggle-chip:focus-visible {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: 0 5px 0 rgba(7, 7, 7, 0.16);
}

.struggle-chip.active {
  color: white;
  border-color: var(--ink);
  background: var(--blue);
  box-shadow: 0 4px 0 var(--ink), 0 16px 32px rgba(62, 123, 255, 0.18);
}

.struggle-chip.active span {
  color: rgba(255, 255, 255, 0.78);
}

.motivation-card label,
.community-form label {
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.motivation-card textarea,
.community-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 14px;
  border: 2px solid rgba(7, 7, 7, 0.18);
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.45;
}

.motivation-card textarea:focus,
.community-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(62, 123, 255, 0.15);
}

.community-panel {
  position: relative;
  display: grid;
  gap: 20px;
}

.community-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.community-heading h3 {
  margin-bottom: 0;
}

.community-feed-controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(7, 7, 7, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.community-feed-controls::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: var(--segment-width, 0px);
  height: var(--segment-height, 38px);
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: 0 5px 16px rgba(7, 7, 7, 0.12);
  transform: translate3d(var(--segment-x, 6px), var(--segment-y, 6px), 0);
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    height 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.community-feed-controls button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.community-feed-controls button:hover,
.community-feed-controls button:focus-visible {
  color: var(--ink);
  border-color: rgba(7, 7, 7, 0.12);
  outline: none;
}

.community-feed-controls button.active {
  color: white;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.community-compose-button {
  position: fixed;
  right: max(28px, calc(env(safe-area-inset-right) + 28px));
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 28px));
  z-index: 220;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  color: white;
  background: var(--red);
  box-shadow: 0 18px 42px rgba(79, 140, 255, 0.28), 0 10px 24px rgba(7, 7, 7, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body:not([data-moti-view="community"]) .community-compose-button {
  display: none;
}

.community-compose-button span {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.community-compose-button:hover,
.community-compose-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(79, 140, 255, 0.34), 0 14px 30px rgba(7, 7, 7, 0.1);
  outline: none;
}

@media (max-width: 760px) {
  .community-compose-button {
    right: max(16px, calc(env(safe-area-inset-right) + 16px));
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }
}

.community-composer-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 72% 18%, rgba(79, 140, 255, 0.14), transparent 30%),
    radial-gradient(circle at 16% 82%, rgba(62, 123, 255, 0.14), transparent 34%),
    rgba(247, 250, 255, 0.54);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

body.community-composer-open {
  overflow: hidden;
}

.community-composer-modal[hidden] {
  display: none;
}

.community-composer-card {
  width: min(620px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(7, 7, 7, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 4%, rgba(79, 140, 255, 0.13), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(62, 123, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(7, 7, 7, 0.16);
}

.community-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.community-composer-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 0.96;
}

.community-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-tag-option {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 2px solid rgba(7, 7, 7, 0.11);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.community-tag-option:hover,
.community-tag-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(7, 7, 7, 0.28);
  outline: none;
}

.community-tag-option.is-selected {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.moti-round-close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(7, 7, 7, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(7, 7, 7, 0.08);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.moti-round-close:hover,
.moti-round-close:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.post-list {
  display: grid;
  gap: 14px;
}

.platform-empty {
  margin: 0;
  padding: 16px;
  border: 2px dashed rgba(7, 7, 7, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.post-item {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 2px solid rgba(7, 7, 7, 0.11);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 140, 255, 0.08), transparent 26%),
    linear-gradient(90deg, rgba(62, 123, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 38px rgba(39, 72, 142, 0.06);
}

.post-item p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.post-author-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.community-avatar {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: white;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.62), transparent 24%),
    linear-gradient(135deg, var(--blue), var(--red));
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 26px rgba(39, 72, 142, 0.12);
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.community-avatar.has-image {
  background-color: white;
}

.post-author-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.post-header strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 1rem;
}

.community-premium-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(62, 123, 255, 0.22);
  border-radius: 999px;
  color: var(--blue);
  background:
    radial-gradient(circle at 0% 0%, rgba(62, 123, 255, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 1000;
}

.post-header span:not(.community-avatar),
.post-time {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.post-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.post-tag,
.post-feed-signal,
.post-hashtag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(7, 7, 7, 0.08);
  font-size: 0.74rem;
  font-weight: 950;
}

.post-tag.is-matched {
  color: var(--blue);
  border-color: rgba(62, 123, 255, 0.2);
  background: rgba(62, 123, 255, 0.09);
}

.post-feed-signal {
  color: rgba(7, 7, 7, 0.54);
}

.post-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -4px;
}

.post-hashtag {
  min-height: 24px;
  padding: 4px 8px;
  color: rgba(7, 7, 7, 0.56);
  font-size: 0.72rem;
}

.post-hashtag.is-matched {
  color: var(--blue);
  border-color: rgba(62, 123, 255, 0.18);
  background: rgba(62, 123, 255, 0.08);
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-feed-item {
  cursor: pointer;
}

.post-feed-item:hover,
.post-feed-item:focus-visible {
  border-color: rgba(62, 123, 255, 0.28);
  background:
    radial-gradient(circle at 92% 8%, rgba(79, 140, 255, 0.08), transparent 34%),
    radial-gradient(circle at 7% 18%, rgba(62, 123, 255, 0.09), transparent 30%),
    rgba(255, 255, 255, 0.92);
  outline: none;
}

.post-list.is-detail-view {
  gap: 14px;
}

.community-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.community-detail-head strong {
  color: #070707;
  font-size: 1.05rem;
  font-weight: 950;
}

.community-detail-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(45, 63, 92, 0.12);
  border-radius: 999px;
  color: #070707;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.community-detail-back:hover,
.community-detail-back:focus-visible {
  transform: translateX(-2px);
  border-color: rgba(62, 123, 255, 0.35);
  background: rgba(62, 123, 255, 0.08);
  outline: none;
}

.community-detail-back .ui-icon,
.community-detail-back .ui-icon svg {
  width: 20px;
  height: 20px;
}

.post-detail-item {
  border-color: rgba(45, 63, 92, 0.12);
  background:
    radial-gradient(circle at 92% 8%, rgba(79, 140, 255, 0.09), transparent 34%),
    radial-gradient(circle at 6% 10%, rgba(62, 123, 255, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.94);
}

.post-action,
.comment-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-size: 0.84rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.post-action:hover,
.post-action:focus-visible,
.comment-delete:hover,
.comment-delete:focus-visible {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: 0 3px 0 rgba(7, 7, 7, 0.16);
}

.post-action.is-liked {
  color: white;
  border-color: var(--red);
  background: var(--red);
  animation: likedPulse 260ms ease both;
}

.comment-like.is-liked {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.post-action .ui-icon,
.comment-delete .ui-icon,
.comment-form button .ui-icon {
  width: 18px;
  height: 18px;
}

.post-action .ui-icon svg,
.comment-delete .ui-icon svg,
.comment-form button .ui-icon svg {
  width: 16px;
  height: 16px;
}

@keyframes likedPulse {
  0% {
    transform: scale(0.96);
  }

  70% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

.post-delete,
.comment-delete {
  color: var(--red);
}

.comment-like {
  color: var(--ink);
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-left: 4px solid rgba(62, 123, 255, 0.24);
  border-radius: 10px;
  background: rgba(62, 123, 255, 0.06);
}

.comment-item.is-reply {
  margin-left: 26px;
  border-left-color: rgba(79, 140, 255, 0.22);
  background: rgba(255, 255, 255, 0.74);
}

.comment-item .community-avatar {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.comment-content {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 6px;
}

.comment-item p {
  color: var(--ink);
  font-size: 0.94rem;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.comment-reply-form {
  margin-top: 2px;
}

.comment-reply {
  color: var(--blue);
}

.comment-responses-toggle {
  justify-self: start;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(62, 123, 255, 0.22);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(62, 123, 255, 0.08);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.comment-responses-toggle:hover,
.comment-responses-toggle:focus-visible {
  border-color: rgba(62, 123, 255, 0.38);
  background: rgba(62, 123, 255, 0.13);
  outline: none;
  transform: translateY(-1px);
}

.comment-responses {
  display: grid;
  gap: 10px;
}

.comment-form input {
  min-height: 42px;
  min-width: 0;
  padding: 0 12px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
}

.comment-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: white;
  background: var(--blue);
  cursor: pointer;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
}

.post-meta button {
  margin-left: auto;
}

.post-meta button + button {
  margin-left: 0;
}

@media (max-width: 620px) {
  .comment-item.is-reply {
    margin-left: 12px;
  }
}

.platform-note {
  padding: 14px 16px;
  border: 1px solid rgba(79, 140, 255, 0.28);
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.07);
}

.platform-note[data-tone="success"] {
  border-color: rgba(62, 123, 255, 0.24);
  background: rgba(62, 123, 255, 0.08);
}

.profile-panel {
  gap: 24px;
}

.feedback-panel {
  gap: 24px;
}

.feedback-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.feedback-heading h3 {
  margin-bottom: 8px;
}

.feedback-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.feedback-form {
  display: grid;
  gap: 18px;
}

.feedback-form label:not(.feedback-file-picker) {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 950;
}

.feedback-form textarea {
  min-height: 160px;
  resize: vertical;
  padding: 16px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  line-height: 1.5;
}

.feedback-file-picker {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 2px dashed rgba(62, 123, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 140, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.feedback-file-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-file-picker span,
.feedback-file-picker strong,
.feedback-file-picker small {
  display: block;
}

.feedback-file-picker span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-file-picker strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.feedback-file-picker small {
  color: var(--muted);
  font-weight: 800;
}

.feedback-preview {
  width: fit-content;
  max-width: 100%;
  padding: 10px;
  border: 1px solid rgba(7, 7, 7, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.feedback-preview img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 14px;
  object-fit: contain;
}

.feedback-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(7, 7, 7, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-weight: 850;
}

.feedback-status[data-tone="success"] {
  border-color: rgba(62, 123, 255, 0.26);
  color: #245ac7;
}

.feedback-status[data-tone="warn"] {
  border-color: rgba(79, 140, 255, 0.28);
  color: #9b1515;
}

.profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.profile-heading h3 {
  margin-bottom: 8px;
}

.profile-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.profile-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 35% 30%, #8fbdff, var(--red) 62%, #245fdd);
  box-shadow: 0 8px 0 var(--ink), 0 18px 42px rgba(79, 140, 255, 0.18);
  font-size: 2rem;
  font-weight: 1000;
  background-position: center;
  background-size: cover;
}

.profile-badge.has-image {
  color: transparent;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-stats div {
  padding: 18px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.profile-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(62, 123, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(79, 140, 255, 0.12), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(62, 123, 255, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.8);
}

.premium-panel {
  display: grid;
  gap: 18px;
}

.premium-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.premium-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.premium-heading p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #667389;
  font-size: 1rem;
  font-weight: 850;
}

.premium-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-card strong {
  display: block;
  color: #070707;
  font-size: 1.22rem;
  font-weight: 950;
}

.premium-card p {
  max-width: 520px;
  margin: 6px 0 0;
  color: #667389;
  font-weight: 820;
  line-height: 1.35;
}

.premium-copy {
  min-width: 0;
}

.premium-price-box {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-width: min(100%, 280px);
  max-width: 100%;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(79, 140, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(79, 140, 255, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.76);
}

.premium-price-box > .premium-estimate-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  min-width: 0;
  gap: 6px;
  color: #070707;
  white-space: nowrap;
}

.premium-currency-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  padding: 5px;
  border: 1px solid rgba(62, 123, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.premium-currency-switch button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #5d697e;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.premium-currency-switch button:hover {
  transform: translateY(-1px);
}

.premium-currency-switch button.is-active {
  border-color: rgba(62, 123, 255, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(62, 123, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.94);
  color: #070707;
}

.premium-estimate-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  min-width: 0;
  gap: 6px;
  color: #070707;
  white-space: nowrap;
}

.premium-estimate-mark {
  color: #3e7bff !important;
  flex: 0 0 auto;
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  line-height: 0.9;
}

.premium-price-box strong {
  min-width: 0;
  flex: 0 1 auto;
  font-size: clamp(2.45rem, 4.8vw, 3.65rem);
  letter-spacing: 0;
  line-height: 0.9;
  white-space: nowrap;
}

.premium-price-box [data-premium-usd-cycle] {
  flex: 0 0 auto;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  line-height: 1.05;
  white-space: nowrap;
}

.premium-price-box span {
  color: #667389;
  font-weight: 950;
}

.premium-price-box p {
  max-width: 260px;
  margin: 0;
  color: #3f4b5f;
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

.premium-price-box .premium-action {
  justify-self: center;
}

.premium-plan-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 5px;
  border: 1px solid rgba(62, 123, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.premium-plan-switch button {
  display: grid;
  gap: 3px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #5d697e;
  font: inherit;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.premium-plan-switch button:hover {
  transform: translateY(-1px);
}

.premium-plan-switch button.is-active {
  border-color: rgba(79, 140, 255, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 140, 255, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.92);
  color: #070707;
}

.premium-plan-switch span {
  font-size: 0.78rem;
}

.premium-plan-switch strong {
  font-size: 1rem;
}

.premium-plan-switch small {
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.15;
  color: #4f8cff;
}

.premium-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px 12px;
  max-width: 620px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.premium-perks li {
  position: relative;
  padding-left: 18px;
  color: #1d2533;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.25;
}

.premium-perks li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.premium-beta-lab {
  display: grid;
  gap: 4px;
  max-width: 520px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(62, 123, 255, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(62, 123, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.82);
}

.premium-beta-lab[hidden] {
  display: none;
}

.premium-beta-lab strong {
  color: var(--ink);
}

.premium-beta-lab p {
  margin: 0;
}

.premium-card[data-status="premium"] {
  border-color: rgba(30, 185, 114, 0.22);
  background:
    radial-gradient(circle at 88% 12%, rgba(30, 185, 114, 0.16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(62, 123, 255, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.82);
}

.premium-card[data-status="payment_needed"] {
  border-color: rgba(79, 140, 255, 0.22);
}

.premium-action {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .premium-card {
    align-items: stretch;
    flex-direction: column;
  }

  .premium-plan-switch,
  .premium-perks {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .premium-price-box {
    width: 100%;
  }

  .premium-action {
    width: 100%;
  }
}

.mini-flame {
  display: inline-grid !important;
  place-items: center;
  width: 15px;
  height: 15px;
  margin: 0 4px 0 0 !important;
  color: var(--red);
  vertical-align: -2px;
  transition: color 180ms ease;
}

.mini-flame svg {
  width: 15px;
  height: 15px;
}

.profile-panel.is-waiting .mini-flame {
  color: #8e96a6;
}

.profile-account-link,
.profile-subscription-button {
  width: fit-content;
}

.profile-subscription-button {
  border-color: rgba(66, 121, 255, 0.2);
  color: #111;
}

.subscription-panel {
  display: grid;
  gap: 24px;
}

.subscription-heading {
  display: flex;
  gap: 16px;
  align-items: center;
}

.subscription-heading h3 {
  margin: 0;
}

.subscription-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.subscription-back-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(7, 7, 7, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.subscription-back-button:hover {
  transform: translateX(-2px);
  border-color: rgba(66, 121, 255, 0.38);
  background: white;
}

.subscription-back-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subscription-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subscription-summary-card {
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(7, 7, 7, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(66, 121, 255, 0.08), rgba(79, 140, 255, 0.06)),
    rgba(255, 255, 255, 0.88);
}

.subscription-summary-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.subscription-summary-card strong {
  display: block;
  color: #111;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  line-height: 1.1;
}

.subscription-copy {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.6;
}

.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.subscription-actions .platform-primary,
.subscription-actions .platform-secondary {
  min-width: 190px;
  justify-content: center;
}

.subscription-cancel-button {
  color: var(--red);
  border-color: rgba(79, 140, 255, 0.18);
}

@media (max-width: 720px) {
  .subscription-summary-grid {
    grid-template-columns: 1fr;
  }

  .subscription-actions .platform-primary,
  .subscription-actions .platform-secondary {
    width: 100%;
  }
}

.profile-voron-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-width: 218px;
  min-height: 50px;
  margin: 10px 0 0;
  padding: 11px 16px;
  border: 1px solid rgba(20, 38, 72, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  text-decoration: none;
}

.profile-voron-link img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.profile-voron-link span {
  overflow: visible;
  color: #111;
  font-size: 0.92rem;
  white-space: nowrap;
}

.profile-logout-button {
  width: fit-content;
  margin-top: 8px;
}

.weekly-streak {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.header-weekly-streak {
  justify-content: flex-end;
}

.week-day {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 14px;
  color: var(--muted);
  background: white;
  box-shadow: 0 3px 0 rgba(7, 7, 7, 0.1);
  font-weight: 1000;
}

.week-day.is-done {
  color: white;
  border-color: var(--ink);
  background: var(--blue);
  box-shadow: 0 4px 0 var(--ink), 0 12px 30px rgba(62, 123, 255, 0.18);
}

.calendar-open {
  overflow: hidden;
}

.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 34px);
  background: rgba(230, 236, 248, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.calendar-modal[hidden] {
  display: none;
}

.calendar-card {
  width: min(730px, calc(100vw - 34px));
  max-height: min(830px, calc(100vh - 42px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(79, 140, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 92% 4%, rgba(79, 140, 255, 0.17), rgba(206, 180, 255, 0.13) 22%, transparent 23%),
    radial-gradient(ellipse at -4% 93%, rgba(107, 88, 255, 0.16), rgba(79, 140, 255, 0.07) 18%, transparent 19%),
    repeating-radial-gradient(ellipse at 9% 10%, rgba(83, 100, 138, 0.035) 0 1px, transparent 1px 10px),
    rgba(255, 255, 255, 0.93);
  box-shadow: 0 34px 90px rgba(38, 55, 95, 0.12);
}

.calendar-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(28px, 6vw, 56px) clamp(28px, 6vw, 54px) 20px;
  border-bottom: 0;
}

.calendar-card-header h2 {
  margin: 0 0 10px;
  color: #151c28;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.calendar-card-header h2::after {
  content: ".";
  color: var(--red);
}

.calendar-card-header p {
  margin: 0;
  color: #68778d;
  font-size: 0.98rem;
  font-weight: 850;
}

.calendar-card-header .share-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--red);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(38, 55, 95, 0.1) !important;
}

.calendar-months {
  overflow-y: auto;
  display: grid;
  gap: 28px;
  padding: 6px clamp(28px, 6vw, 54px) clamp(28px, 6vw, 54px);
  scroll-behavior: smooth;
  scrollbar-color: rgba(76, 87, 106, 0.38) transparent;
  scrollbar-width: thin;
}

.calendar-month {
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(38, 55, 95, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 60px rgba(38, 55, 95, 0.08);
}

.calendar-month h3 {
  margin: 0 0 22px;
  color: #151c28;
  font-size: 1.15rem;
  font-weight: 900;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
}

.calendar-weekdays {
  margin-bottom: 14px;
  color: #68778d;
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
}

.calendar-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(79, 140, 255, 0.07);
  border-radius: 10px;
  color: #101722;
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(38, 55, 95, 0.055);
}

.calendar-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day.is-done {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #4f8cff, #3d6fff);
  box-shadow: 0 12px 26px rgba(62, 123, 255, 0.28);
}

.calendar-day.is-today {
  border-color: var(--red);
}

.stats-panel {
  display: grid;
  gap: 22px;
  border-top: 1px solid rgba(45, 63, 92, 0.1);
}

.stats-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.stats-heading h3 {
  margin-bottom: 8px;
}

.stats-range-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid rgba(7, 7, 7, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.stats-range-controls button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.stats-range-controls button:hover,
.stats-range-controls button:focus-visible {
  color: var(--ink);
  border-color: rgba(7, 7, 7, 0.12);
  outline: none;
}

.stats-range-controls button.active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 5px 16px rgba(7, 7, 7, 0.12);
}

.stats-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
}

.stats-badge {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(62, 123, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.premium-stats-overview {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(62, 123, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(62, 123, 255, 0.14), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(79, 140, 255, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.82);
}

.premium-stats-overview[hidden] {
  display: none;
}

.premium-stats-overview span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.premium-stats-overview strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.premium-stats-overview ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-stats-overview li {
  padding: 10px 12px;
  border: 1px solid rgba(7, 7, 7, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-weight: 900;
}

.burnout-score-card {
  grid-column: 1 / -1;
  display: grid;
  justify-items: stretch;
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 12%, rgba(79, 140, 255, 0.1), transparent 26%),
    radial-gradient(circle at 10% 90%, rgba(62, 123, 255, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.76);
}

.burnout-score-card h4 {
  justify-self: start;
  margin: 0;
  width: 100%;
}

.burnout-score-card .burnout-meter {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(220px, 320px);
  grid-template-areas:
    "visual readout"
    "visual label"
    "visual note";
  align-items: center;
  justify-content: center;
  justify-items: start;
  column-gap: clamp(24px, 5vw, 58px);
  row-gap: 8px;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}

.burnout-score-card .burnout-meter-visual {
  grid-area: visual;
  width: min(240px, 100%);
}

.burnout-score-card .burnout-meter-readout {
  grid-area: readout;
  margin-top: 0;
}

.burnout-score-card .burnout-meter-readout strong {
  font-size: clamp(3.2rem, 6vw, 4.7rem);
}

.burnout-score-card .burnout-meter p {
  grid-area: label;
  color: var(--ink);
  font-size: 0.96rem;
  letter-spacing: 0;
  text-transform: none;
}

.burnout-score-card .burnout-meter-note {
  grid-area: note;
  max-width: 300px;
  color: rgba(45, 63, 92, 0.82);
  font-size: 0.9rem;
  font-weight: 820;
  text-align: left;
}

@media (max-width: 680px) {
  .burnout-score-card {
    justify-items: center;
  }

  .burnout-score-card .burnout-meter {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "readout"
      "label"
      "note";
    justify-items: center;
    max-width: 320px;
    row-gap: 6px;
  }

  .burnout-score-card .burnout-meter-readout {
    margin-top: -12px;
  }

  .burnout-score-card .burnout-meter-note {
    text-align: center;
  }
}

.burnout-trend-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.burnout-trend-card h4 {
  margin: 0;
}

.burnout-trend-chart {
  min-height: 230px;
}

.burnout-line {
  stroke: url("#burnout-line-gradient");
}

.burnout-point {
  filter: drop-shadow(0 8px 14px rgba(79, 140, 255, 0.12));
}

.burnout-axis-label,
.burnout-point-label {
  fill: var(--muted);
  font-size: 16px;
  font-weight: 900;
}

.burnout-point-label {
  fill: var(--ink);
  font-size: 18px;
}

.stat-card {
  display: grid;
  gap: 14px;
}

.stat-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.memories-panel {
  display: grid;
  gap: 22px;
}

.memory-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 18px 18px 8px 18px;
  background:
    radial-gradient(circle at 86% 12%, rgba(79, 140, 255, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(62, 123, 255, 0.1), rgba(255, 255, 255, 0.9) 48%, rgba(79, 140, 255, 0.08));
}

.memory-hero h3,
.memory-chat-heading h4 {
  margin: 0;
}

.memory-hero p,
.memory-chat-heading p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.memory-brain {
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border: 3px solid var(--ink);
  border-radius: 36px;
  color: white;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.46), transparent 20%),
    linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 9px 0 var(--ink), 0 24px 60px rgba(62, 123, 255, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.memory-brain:hover,
.memory-brain:focus-visible {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 11px 0 var(--ink), 0 30px 70px rgba(62, 123, 255, 0.2);
  outline: none;
}

.memory-brain svg {
  width: 70px;
  height: 70px;
}

.memory-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.memory-manager {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.memory-search-row {
  display: grid;
  gap: 12px;
}

.memory-search-row {
  padding: 16px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 44px rgba(39, 72, 142, 0.06);
}

.memory-search-row input {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid rgba(7, 7, 7, 0.16);
  border-radius: 14px;
  background: white;
  font: inherit;
  font-weight: 760;
}

.memory-list {
  min-height: 540px;
}

.memory-chat-panel {
  position: relative;
  display: grid;
  min-height: 540px;
  gap: 14px;
  padding: 18px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 8%, rgba(79, 140, 255, 0.13), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(62, 123, 255, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 26px 70px rgba(39, 72, 142, 0.08);
}

.memory-chat-panel[hidden] {
  display: none;
}

.memory-chat-heading {
  display: grid;
  gap: 6px;
}

.memory-chat-heading h3 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.memory-chat-buddy-switcher {
  --active-index: 0;
  --buddy-color: var(--blue);
  --buddy-option-width: 132px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, var(--buddy-option-width));
  justify-content: center;
  align-items: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  min-height: 58px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--buddy-color) 18%, rgba(7, 7, 7, 0.1));
  border-radius: 20px;
  background:
    radial-gradient(circle at calc((var(--active-index) * 20%) + 10%) 50%, color-mix(in srgb, var(--buddy-color) 16%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--buddy-color) 10%, transparent);
  overflow: hidden;
  transition: border-color 360ms ease, box-shadow 360ms ease, background 360ms ease;
}

.memory-chat-buddy-switcher-indicator {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: var(--buddy-option-width);
  border: 1px solid color-mix(in srgb, var(--buddy-color) 34%, rgba(7, 7, 7, 0.12));
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--buddy-color) 18%, white), rgba(255, 255, 255, 0.92));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--buddy-color) 18%, transparent);
  transform: translateX(calc(var(--active-index) * 100%));
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 340ms ease,
    background 340ms ease,
    box-shadow 340ms ease;
  pointer-events: none;
}

.memory-chat-buddy-option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 50px;
  padding: 7px 8px;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 1000;
  transition: color 240ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms ease;
}

.memory-chat-buddy-option:hover,
.memory-chat-buddy-option:focus-visible {
  color: var(--ink);
  outline: none;
}

.memory-chat-buddy-option.active {
  color: var(--ink);
}

.memory-chat-buddy-switcher.is-switching .memory-chat-buddy-option.active {
  transform: translateY(-1px) scale(1.015);
}

.memory-chat-buddy-switch-face {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--buddy-color) 42%, rgba(7, 7, 7, 0.12));
  color: var(--buddy-color);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
    color-mix(in srgb, var(--buddy-color) 82%, white);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--buddy-color) 18%, transparent);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
}

.memory-chat-buddy-option.active .memory-chat-buddy-switch-face {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--buddy-color) 24%, transparent);
}

.memory-chat-buddy-switch-face::before,
.memory-chat-buddy-switch-face::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: white;
}

.memory-chat-buddy-switch-face::before {
  left: 9px;
}

.memory-chat-buddy-switch-face::after {
  right: 9px;
}

.memory-chat-buddy-switch-face > span {
  position: absolute;
  bottom: 8px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid white;
  border-radius: 0 0 999px 999px;
}

.memory-chat-buddy-switch-face.is-round {
  border-radius: 12px;
}

.memory-chat-buddy-switch-face.is-bolt {
  border-radius: 11px 18px 10px 18px;
  transform: rotate(-5deg);
}

.memory-chat-buddy-switch-face.is-leaf {
  border-radius: 20px 10px 20px 10px;
  transform: rotate(-8deg);
}

.memory-chat-buddy-switch-face.is-sun {
  border-radius: 50%;
}

.memory-chat-buddy-switch-face.is-crystal {
  clip-path: polygon(50% 0, 92% 24%, 82% 84%, 50% 100%, 18% 84%, 8% 24%);
}

@media (max-width: 640px) {
  .memory-chat-buddy-switcher {
    --buddy-option-width: 112px;
    grid-template-columns: repeat(5, var(--buddy-option-width));
    justify-content: start;
    width: max-content;
    min-height: 54px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .memory-chat-buddy-switcher-indicator {
    width: var(--buddy-option-width);
  }

  .memory-chat-buddy-option {
    gap: 7px;
    min-width: var(--buddy-option-width);
    padding-inline: 8px;
    font-size: 0.78rem;
    scroll-snap-align: center;
  }

  .memory-chat-buddy-switch-face {
    width: 30px;
    height: 30px;
  }
}

.memory-brain-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  padding: 22px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 12%, rgba(79, 140, 255, 0.12), transparent 28%),
    radial-gradient(circle at 8% 86%, rgba(62, 123, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 70px rgba(39, 72, 142, 0.08);
  cursor: grab;
  touch-action: none;
  user-select: none;
  overscroll-behavior: contain;
}

.memory-brain-stage[data-is-dragging="true"] {
  cursor: grabbing;
}

.memory-brain-scene {
  position: relative;
  width: 760px;
  max-width: 100%;
  height: 520px;
  margin: 0 auto;
  transform: translate3d(var(--memory-pan-x, 0px), var(--memory-pan-y, 0px), 0) scale(var(--memory-zoom, 1));
  transform-origin: center center;
  transition: transform 120ms ease;
  will-change: transform;
}

.memory-brain-stage[data-is-dragging="true"] .memory-brain-scene {
  transition: none;
}

.memory-brain-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 28px 46px rgba(62, 123, 255, 0.12));
  pointer-events: none;
}

.memory-brain-main {
  fill: url(#memoryBrainFill);
  stroke: rgba(7, 7, 7, 0.14);
  stroke-width: 4;
  stroke-linejoin: round;
}

.memory-brain-line,
.memory-brain-hemisphere {
  fill: none;
  stroke: url(#memoryBrainStroke);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.28;
}

.memory-brain-hemisphere {
  stroke-width: 6;
  opacity: 0.24;
}

.memory-brain-line-soft {
  opacity: 0.18;
}

.memory-brain-node {
  fill: rgba(255, 255, 255, 0.9);
  stroke: url(#memoryBrainStroke);
  stroke-width: 5;
  opacity: 0.32;
}

.memory-note-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  width: var(--memory-label-width, 112px);
  min-width: 104px;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
  pointer-events: auto;
}

.memory-note-open {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(39, 72, 142, 0.12);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.memory-note-pin:hover,
.memory-note-pin:focus-within {
  z-index: 3;
  transform: translate(-50%, -50%) translateY(-3px) scale(1.03);
}

.memory-note-open:hover,
.memory-note-open:focus-visible {
  border-color: rgba(7, 7, 7, 0.24);
  box-shadow: 0 20px 44px rgba(39, 72, 142, 0.18);
  outline: none;
}

.memory-note-pin.is-new {
  z-index: 5;
  animation: memoryPinPop 720ms cubic-bezier(0.2, 1.25, 0.22, 1) both;
}

.memory-note-pin.is-new .memory-note-open {
  border-color: rgba(62, 123, 255, 0.42);
  border-left-color: var(--red);
  background:
    radial-gradient(circle at 16% 18%, rgba(62, 123, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 46px rgba(62, 123, 255, 0.22),
    0 0 0 8px rgba(79, 140, 255, 0.08);
  animation: memoryPinGlow 1800ms ease-in-out 720ms 2;
}

.memory-note-open span {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--memory-label-lines, 1);
  line-clamp: var(--memory-label-lines, 1);
  font-size: 0.8rem;
  line-height: 1.22;
  font-weight: 1000;
}

.memory-note-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid rgba(79, 140, 255, 0.24);
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(79, 140, 255, 0.14);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 1000;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px) scale(0.82);
  transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.memory-note-pin:hover .memory-note-delete,
.memory-note-pin:focus-within .memory-note-delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.memory-note-delete:hover,
.memory-note-delete:focus-visible {
  border-color: rgba(79, 140, 255, 0.54);
  background: #f4f8ff;
  outline: none;
}

@keyframes memoryPinPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(16px) scale(0.72);
  }
  64% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-7px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
}

@keyframes memoryPinGlow {
  0%,
  100% {
    box-shadow:
      0 18px 46px rgba(62, 123, 255, 0.2),
      0 0 0 8px rgba(79, 140, 255, 0.08);
  }
  50% {
    box-shadow:
      0 24px 58px rgba(62, 123, 255, 0.28),
      0 0 0 14px rgba(79, 140, 255, 0.13);
  }
}

.memory-brain-guide {
  position: sticky;
  top: 10px;
  z-index: 4;
  width: max-content;
  max-width: min(310px, calc(100% - 16px));
  margin: 0 0 -42px auto;
  padding: 10px 13px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 0 rgba(7, 7, 7, 0.1);
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 900;
  pointer-events: none;
  text-align: right;
}

.memory-brain-guide-mobile {
  display: none;
}

.memory-detail-backdrop {
  position: absolute;
  inset: 92px 0 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

.memory-detail-backdrop[hidden] {
  display: none;
}

.memory-detail-card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(82%, 680px);
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(79, 140, 255, 0.14), transparent 30%),
    radial-gradient(circle at 10% 100%, rgba(62, 123, 255, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(7, 7, 7, 0.18);
}

.memory-detail-card h3 {
  max-width: calc(100% - 54px);
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 0.98;
}

.memory-detail-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.memory-detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(79, 140, 255, 0.28);
  border-radius: 50%;
  color: var(--red);
  background: white;
  box-shadow: 0 6px 0 rgba(79, 140, 255, 0.12);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 1000;
}

.memory-detail-close:hover,
.memory-detail-close:focus-visible {
  border-color: rgba(79, 140, 255, 0.54);
  background: #f4f8ff;
  outline: none;
}

.memory-detail-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 10px 16px;
  border: 2px solid rgba(79, 140, 255, 0.22);
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-weight: 1000;
}

.memory-detail-delete:hover,
.memory-detail-delete:focus-visible {
  border-color: rgba(79, 140, 255, 0.54);
  background: #f4f8ff;
  outline: none;
}

@media (max-width: 760px) {
  .memory-workspace {
    grid-template-columns: 1fr;
  }

  .memory-brain-stage {
    min-height: 480px;
    padding: 16px;
  }

  .memory-brain-scene {
    width: 640px;
    height: 440px;
  }

  .memory-brain-guide {
    max-width: min(260px, calc(100% - 12px));
    font-size: 0.72rem;
  }

  .memory-brain-guide-desktop {
    display: none;
  }

  .memory-brain-guide-mobile {
    display: inline;
  }

  .memory-note-pin {
    min-width: 86px;
    max-width: 116px;
    padding: 9px 10px;
  }

  .memory-note-open span {
    max-width: 92px;
  }

  .memory-detail-card {
    border-radius: 24px;
  }
}

@media (max-width: 620px) {
  .questionnaire-card {
    gap: 12px;
    max-height: none;
    padding: 22px;
    overflow: hidden;
    box-shadow: 0 18px 54px rgba(39, 72, 142, 0.14);
  }

  .questionnaire-options {
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .questionnaire-actions,
  .questionnaire-actions:has(.questionnaire-back[hidden]) {
    grid-template-columns: 1fr;
  }

  .questionnaire-back,
  .questionnaire-submit {
    width: 100%;
    min-height: 50px;
  }
}

.memory-chat-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 300px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  padding: 12px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 39, 66, 0.04) 33px 34px),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(22, 39, 66, 0.04) 33px 34px);
  scrollbar-color: rgba(79, 140, 255, 0.62) rgba(62, 123, 255, 0.08);
  scrollbar-width: thin;
}

.memory-chat-list::-webkit-scrollbar,
.memory-chat-conversation-list::-webkit-scrollbar {
  width: 12px;
}

.memory-chat-list::-webkit-scrollbar-track,
.memory-chat-conversation-list::-webkit-scrollbar-track {
  margin-block: 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(62, 123, 255, 0.09), rgba(79, 140, 255, 0.08)),
    rgba(255, 255, 255, 0.72);
}

.memory-chat-list::-webkit-scrollbar-thumb,
.memory-chat-conversation-list::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: linear-gradient(180deg, #3e7bff, #4f8cff);
}

.memory-chat-list::-webkit-scrollbar-thumb:hover,
.memory-chat-conversation-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2f67ef, #e60f0f);
}

.memory-chat-message,
.memory-chat-empty {
  width: fit-content;
  max-width: min(720px, 100%);
  margin: 0;
  padding: 12px 14px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 16px;
  color: var(--ink);
  background: white;
  box-shadow: 0 10px 28px rgba(39, 72, 142, 0.07);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.45;
}

.memory-chat-message-row {
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
}

.memory-chat-message-row.is-user {
  justify-self: end;
  align-items: flex-end;
}

.memory-chat-message-row.is-moti {
  display: grid;
  grid-template-columns: 42px minmax(0, auto);
  column-gap: 10px;
  align-items: start;
}

.memory-chat-buddy-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 2px;
  border: 1px solid color-mix(in srgb, var(--buddy-color) 44%, rgba(7, 7, 7, 0.12));
  color: var(--buddy-color);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
    color-mix(in srgb, var(--buddy-color) 82%, white);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--buddy-color) 20%, transparent);
}

.memory-chat-buddy-face::before,
.memory-chat-buddy-face::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: white;
}

.memory-chat-buddy-face::before {
  left: 13px;
}

.memory-chat-buddy-face::after {
  right: 13px;
}

.memory-chat-buddy-face > span {
  position: absolute;
  bottom: 11px;
  width: 14px;
  height: 6px;
  border-bottom: 3px solid white;
  border-radius: 0 0 999px 999px;
}

.memory-chat-buddy-face.is-round {
  border-radius: 18px;
}

.memory-chat-buddy-face.is-bolt {
  border-radius: 16px 25px 14px 25px;
  transform: rotate(-5deg);
}

.memory-chat-buddy-face.is-leaf {
  border-radius: 30px 14px 30px 14px;
  transform: rotate(-8deg);
}

.memory-chat-buddy-face.is-sun {
  border-radius: 50%;
}

.memory-chat-buddy-face.is-crystal {
  clip-path: polygon(50% 0, 92% 24%, 82% 84%, 50% 100%, 18% 84%, 8% 24%);
}

.memory-chat-moti-content {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}

.memory-chat-message-row .session-ai-feedback {
  margin-left: 8px;
}

.moti-buddy-message-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  color: var(--buddy-color, var(--blue));
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
}

.moti-buddy-message-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}

.memory-chat-message.is-user {
  justify-self: end;
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.memory-chat-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 7px;
  width: min(320px, 100%);
  margin: 0 0 9px;
}

.memory-chat-attachment-grid.is-single {
  display: block;
  width: min(260px, 100%);
}

.memory-chat-attachment {
  display: block;
  width: 100%;
  aspect-ratio: 1.2;
  max-height: 220px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.2);
}

.memory-chat-message.is-error {
  color: var(--red);
  border-color: rgba(79, 140, 255, 0.24);
  background: rgba(79, 140, 255, 0.06);
}

.memory-chat-thinking-bubble {
  margin-left: 2px;
}

.memory-chat-form {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.memory-chat-selected-image {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  width: min(640px, 100%);
  padding: 8px;
  border: 1px solid rgba(7, 7, 7, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(39, 72, 142, 0.08);
}

.memory-chat-selected-image[hidden] {
  display: none;
}

.memory-chat-selected-image-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.memory-chat-selected-image-card img {
  width: 58px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(7, 7, 7, 0.06);
}

.memory-chat-selected-image-card span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-chat-selected-image-card button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(79, 140, 255, 0.18);
  border-radius: 999px;
  color: var(--red);
  background: white;
  box-shadow: none;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 1000;
  cursor: pointer;
}

.memory-attach-button,
.memory-chat-conversation-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(7, 7, 7, 0.12);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(39, 72, 142, 0.06);
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.memory-chat-conversation-toggle {
  gap: 3px;
  appearance: none;
  font: inherit;
  line-height: 1;
}

.memory-attach-button:hover,
.memory-attach-button:focus-within,
.memory-chat-conversation-toggle:hover,
.memory-chat-conversation-toggle:focus-visible,
.memory-chat-conversation-toggle[aria-expanded="true"] {
  transform: none;
  border-color: rgba(62, 123, 255, 0.28);
  box-shadow: 0 12px 28px rgba(39, 72, 142, 0.08);
}

.memory-attach-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.memory-attach-button span {
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1;
}

.memory-chat-conversation-wrap {
  position: relative;
  z-index: 25;
}

.memory-chat-conversation-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.memory-chat-conversation-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(270px, 78vw);
  padding: 8px;
  border: 1px solid rgba(7, 7, 7, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(39, 72, 142, 0.16);
}

.memory-chat-conversation-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-color: rgba(79, 140, 255, 0.62) rgba(62, 123, 255, 0.08);
  scrollbar-width: thin;
}

.memory-chat-conversation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.memory-chat-conversation-item,
.memory-chat-new-conversation {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.memory-chat-conversation-item:hover,
.memory-chat-conversation-item:focus-visible,
.memory-chat-conversation-item.active {
  border-color: rgba(62, 123, 255, 0.22);
  background: rgba(62, 123, 255, 0.09);
}

.memory-chat-conversation-delete {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(79, 140, 255, 0.16);
  border-radius: 12px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.memory-chat-conversation-delete:hover,
.memory-chat-conversation-delete:focus-visible {
  border-color: rgba(79, 140, 255, 0.32);
  background: rgba(79, 140, 255, 0.08);
}

.memory-chat-new-conversation {
  margin-top: 8px;
  color: white;
  background: var(--red);
  text-align: center;
}

.memory-chat-form input[name="memory-chat"] {
  min-height: 50px;
  min-width: 0;
  padding: 0 15px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-weight: 800;
}

.memory-chat-form input[name="memory-chat"]:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(62, 123, 255, 0.12);
}

.ai-model-picker {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-width: 128px;
  z-index: 20;
}

.ai-model-picker.is-open {
  z-index: 220;
}

.ai-model-toggle::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
  opacity: 0.68;
  transition: transform 160ms ease;
}

.ai-model-picker.is-open .ai-model-toggle::after {
  transform: translateY(2px) rotate(225deg);
}

.ai-model-toggle {
  width: 128px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid rgba(7, 7, 7, 0.12);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(39, 72, 142, 0.06);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.ai-model-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-model-toggle:hover,
.ai-model-toggle:focus-visible,
.ai-model-picker.is-open .ai-model-toggle {
  border-color: rgba(62, 123, 255, 0.32);
  outline: none;
  box-shadow: 0 0 0 4px rgba(62, 123, 255, 0.11), 0 14px 30px rgba(39, 72, 142, 0.1);
}

.ai-model-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 128px;
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(7, 7, 7, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(39, 72, 142, 0.14);
  box-sizing: border-box;
  overflow: hidden;
}

.memory-chat-form .ai-model-menu,
.session-ai-reply .ai-model-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

.ai-model-menu[hidden] {
  display: none;
}

.ai-model-option {
  min-height: 38px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 1000;
  text-align: left;
  cursor: pointer;
}

.ai-model-option:hover,
.ai-model-option:focus-visible {
  outline: none;
  background: rgba(62, 123, 255, 0.09);
}

.ai-model-option.is-selected {
  color: white;
  background: linear-gradient(90deg, #3f7bff, #6aa4ff);
  box-shadow: 0 10px 22px rgba(62, 123, 255, 0.2);
}

.memory-chat-form > button {
  display: inline-grid;
  place-items: center;
  width: 58px;
  min-height: 50px;
  padding: 0;
  border: 1px solid rgba(79, 140, 255, 0.16);
  border-radius: 16px;
  color: white;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(79, 140, 255, 0.18);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.memory-chat-form > button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-chat-form > button:hover,
.memory-chat-form > button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(79, 140, 255, 0.22);
  filter: saturate(1.04);
  outline: none;
}

.mood-chart {
  min-height: 260px;
  padding: 16px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.mood-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.mood-grid-line {
  stroke: rgba(7, 7, 7, 0.09);
  stroke-width: 2;
}

.mood-axis-label {
  font-size: 20px;
}

.mood-date-label {
  fill: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.mood-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mood-point {
  fill: var(--point-color);
  stroke: white;
  stroke-width: 4;
}

.mood-emoji {
  font-size: 22px;
}

[data-energy-chart] {
  min-height: 300px;
}

.mood-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-height: 190px;
  align-items: end;
}

.mood-bar {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
  min-height: 180px;
  text-align: center;
}

.mood-bar > span {
  align-self: end;
  width: min(42px, 70%);
  height: var(--bar-height);
  min-height: 8px;
  margin: 0 auto;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 999px 999px 10px 10px;
  background: var(--bar-color);
  box-shadow: inset 0 -8px 0 rgba(7, 7, 7, 0.1);
}

.mood-bar strong {
  font-size: 1.5rem;
}

.mood-bar small {
  color: var(--muted);
  font-weight: 950;
}

.stats-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  text-align: center;
}

.share-open {
  overflow: hidden;
}

.session-open {
  overflow: hidden;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 7, 7, 0.42);
  backdrop-filter: blur(10px);
}

.session-modal {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: block;
  padding: 0;
  background:
    radial-gradient(circle at 16% 14%, rgba(62, 123, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(79, 140, 255, 0.12), transparent 28%),
    radial-gradient(circle at 72% 92%, rgba(62, 123, 255, 0.1), transparent 30%),
    #fbfcff;
  overflow: auto;
}

.session-modal::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.66;
  background-image:
    radial-gradient(circle, rgba(62, 123, 255, 0.12) 1px, transparent 1.8px),
    linear-gradient(rgba(24, 35, 52, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 35, 52, 0.05) 1px, transparent 1px);
  background-size: 118px 118px, 34px 34px, 34px 34px;
  animation: gridDrift 16s linear infinite;
}

.session-modal::after {
  content: "";
  position: fixed;
  right: -180px;
  top: -190px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border: 34px solid rgba(79, 140, 255, 0.08);
  border-radius: 50%;
  animation: slowSpin 22s linear infinite;
}

.share-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: white;
  box-shadow: 0 30px 90px rgba(7, 7, 7, 0.28);
}

.session-player {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: clamp(16px, 2.4vw, 24px);
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: visible;
  padding: clamp(26px, 4vw, 58px) clamp(22px, 5vw, 72px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.94));
  box-shadow: none;
}

.session-player h2 {
  margin-bottom: 0;
  max-width: 860px;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  letter-spacing: -0.015em;
}

.session-player > h2[data-session-title],
.session-player > p[data-session-copy],
.session-step-status {
  display: none !important;
}

.session-player > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.session-progress {
  overflow: hidden;
  height: 12px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 999px;
  background: rgba(220, 226, 236, 0.72);
}

.session-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #4f8cff);
  transition: width 280ms ease;
}

.session-step-status {
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-steps {
  display: grid;
  gap: 12px;
  width: min(780px, 100%);
}

.session-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: clamp(14px, 2vw, 20px);
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(39, 72, 142, 0.1);
  animation: sessionStepIn 220ms ease both;
}

.session-step p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.session-step strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: none;
}

.moti-session-loader {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  padding: clamp(24px, 5vw, 46px);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.moti-loader-mark {
  display: grid;
  place-items: center;
  width: clamp(96px, 14vw, 132px);
  height: clamp(96px, 14vw, 132px);
  border: 2px solid rgba(79, 140, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 140, 255, 0.1), transparent 58%),
    white;
  box-shadow: 0 18px 54px rgba(79, 140, 255, 0.18), 0 0 0 12px rgba(79, 140, 255, 0.04);
}

.moti-loader-mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  animation: loaderSpin 1.15s linear infinite;
}

.moti-session-loader strong {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
  text-transform: none;
}

.moti-session-loader p {
  color: var(--muted);
  font-weight: 850;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.breath-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 4px 0 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 123, 255, 0.1), transparent 66%);
}

.breath-visual span {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(62, 123, 255, 0.48);
  border-radius: 50%;
  animation: breathRing 2.8s ease-in-out infinite;
}

.breath-visual span:nth-child(2) {
  animation-delay: 350ms;
}

.breath-visual span:nth-child(3) {
  animation-delay: 700ms;
}

.breath-guide {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 40px);
  margin: 8px 0 16px;
  padding: clamp(18px, 3vw, 34px);
  border: 2px solid rgba(62, 123, 255, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 50%, rgba(62, 123, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.78);
}

.breath-orb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(140px, 18vw, 190px);
  height: clamp(140px, 18vw, 190px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 123, 255, 0.08), transparent 70%);
}

.breath-orb {
  position: relative;
  z-index: 2;
  width: clamp(74px, 9vw, 108px);
  height: clamp(74px, 9vw, 108px);
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.4) 34%, transparent 36%),
    linear-gradient(135deg, rgba(62, 123, 255, 0.96), rgba(79, 140, 255, 0.78));
  box-shadow: 0 18px 42px rgba(62, 123, 255, 0.22);
  transform: scale(0.76);
  transition: transform 160ms linear, background 260ms ease;
}

.breath-ring {
  position: absolute;
  width: clamp(84px, 10vw, 122px);
  height: clamp(84px, 10vw, 122px);
  border: 3px solid rgba(62, 123, 255, 0.22);
  border-radius: 50%;
  animation: breathHalo 2.7s ease-in-out infinite;
}

.breath-ring:nth-child(3) {
  animation-delay: 500ms;
}

.breath-guide.is-hold .breath-orb {
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.4) 34%, transparent 36%),
    linear-gradient(135deg, #111111, var(--blue));
}

.breath-guide.is-breathe-out .breath-orb {
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.4) 34%, transparent 36%),
    linear-gradient(135deg, var(--blue), #8fb1ff);
}

.breath-guide.is-done .breath-orb {
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.4) 34%, transparent 36%),
    linear-gradient(135deg, #1ab76c, var(--blue));
}

.breath-copy {
  display: grid;
  gap: 8px;
}

.breath-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1;
}

.breath-copy p {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
}

.breath-copy strong {
  color: var(--blue-dark);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breath-meter {
  overflow: hidden;
  height: 10px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 999px;
  background: rgba(220, 226, 236, 0.72);
}

.breath-meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  transition: transform 80ms linear;
}

.admin-breath-skip {
  justify-self: start;
  min-height: 42px;
  padding: 8px 14px;
  border: 2px solid rgba(7, 7, 7, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 0 rgba(7, 7, 7, 0.72);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 950;
  cursor: pointer;
}

.admin-breath-skip:hover,
.admin-breath-skip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(62, 123, 255, 0.36);
  outline: none;
}

.feeling-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 1.6vw, 12px);
  margin-top: 16px;
  padding: 8px;
  border: 2px solid rgba(7, 7, 7, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.feeling-button {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 82px;
  min-width: 0;
  padding: 10px 6px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 17px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.96), transparent 34%),
    rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 -4px 0 rgba(7, 7, 7, 0.04);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.feeling-button:hover,
.feeling-button:focus-visible,
.feeling-button.active {
  transform: translateY(-4px);
  border-color: var(--ink);
  background: color-mix(in srgb, var(--feeling-color) 12%, white);
  box-shadow: 0 5px 0 var(--ink), 0 12px 28px color-mix(in srgb, var(--feeling-color) 20%, transparent);
}

.feeling-button span {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1;
}

.feeling-button small {
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(0.58rem, 1.6vw, 0.74rem);
  font-weight: 1000;
  line-height: 1.05;
  text-transform: uppercase;
}

.moti-drag-scale {
  --scale-progress: 50%;
  --scale-color: #3e7bff;
  --scale-rest: rgba(110, 126, 153, 0.16);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
  margin-top: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(12, 22, 45, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at var(--scale-progress) 0%, color-mix(in srgb, var(--scale-color) 16%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 70px rgba(35, 54, 96, 0.08);
  transition: background 260ms ease, box-shadow 260ms ease;
}

.moti-scale-symbol {
  position: relative;
  width: clamp(82px, 12vw, 122px);
  height: clamp(82px, 12vw, 122px);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(145deg, color-mix(in srgb, var(--scale-color) 82%, white), #4f8cff);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--scale-color) 22%, transparent);
  transform: translateY(calc((50 - var(--scale-progress)) * 0.03px));
  transition: background 320ms ease, box-shadow 320ms ease, transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.mood-symbol {
  border-radius: 50%;
  overflow: hidden;
}

.mood-symbol::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.42);
}

.mood-eye {
  position: absolute;
  top: 34%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease;
}

.mood-eye-left {
  left: 32%;
}

.mood-eye-right {
  right: 32%;
}

.mood-mouth {
  position: absolute;
  left: 50%;
  bottom: 28%;
  width: 36px;
  height: 18px;
  border: 4px solid white;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: center;
  transition: transform 180ms ease, height 180ms ease, bottom 180ms ease;
}

.mood-1 .mood-mouth,
.mood-2 .mood-mouth {
  bottom: 24%;
  border-top: 4px solid white;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.mood-1 .mood-mouth {
  height: 20px;
  transform: translateX(-50%) translateY(10px);
}

.mood-2 .mood-mouth {
  height: 13px;
  transform: translateX(-50%) translateY(6px);
}

.mood-3 .mood-mouth {
  bottom: 31%;
  height: 0;
  border-radius: 999px;
  border-top: 4px solid white;
}

.mood-4 .mood-mouth {
  height: 13px;
}

.mood-5 .mood-mouth {
  height: 24px;
}

.mood-5 .mood-eye {
  transform: scaleY(0.72);
}

.battery-symbol {
  display: grid;
  place-items: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92), transparent 24%),
    linear-gradient(145deg, #f7fbff, color-mix(in srgb, var(--scale-color) 18%, white));
}

.battery-shell {
  position: relative;
  width: 58%;
  height: 34%;
  border: 5px solid #0b1020;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  overflow: visible;
}

.battery-shell::after {
  content: "";
  position: absolute;
  top: 30%;
  right: -12px;
  width: 8px;
  height: 40%;
  border-radius: 0 6px 6px 0;
  background: #0b1020;
}

.battery-fill {
  position: absolute;
  inset: 4px;
  width: calc(var(--battery-fill, 50%) - 8px);
  min-width: 8px;
  max-width: calc(100% - 8px);
  border-radius: 8px;
  background: linear-gradient(90deg, #4f8cff, #ff9a3d, #3e7bff, #1ab76c);
  transition: width 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.moti-scale-main {
  min-width: 0;
}

.moti-scale-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.moti-scale-readout strong {
  color: var(--ink);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 0.95;
}

.moti-scale-readout span {
  color: var(--muted);
  font-weight: 1000;
}

.moti-drag-scale input[type="range"] {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(90deg, #3e7bff, #8b5cf6, #4f8cff) 0 / var(--scale-progress) 100% no-repeat,
    var(--scale-rest);
  outline: none;
  cursor: grab;
  transition: background-size 80ms linear, filter 180ms ease;
  will-change: background-size;
}

.moti-drag-scale input[type="range"]:active {
  cursor: grabbing;
  filter: saturate(1.08);
}

.moti-drag-scale input[type="range"]::-webkit-slider-thumb {
  width: 36px;
  height: 36px;
  border: 5px solid white;
  border-radius: 999px;
  background: var(--scale-color);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--scale-color) 34%, transparent);
  appearance: none;
  -webkit-appearance: none;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1), background 220ms ease, box-shadow 220ms ease;
}

.moti-drag-scale input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

.moti-drag-scale input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 5px solid white;
  border-radius: 999px;
  background: var(--scale-color);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--scale-color) 34%, transparent);
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1), background 220ms ease, box-shadow 220ms ease;
}

.moti-drag-scale input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.1);
}

.moti-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.session-quote {
  margin: 8px 0 0;
  padding: 18px;
  border-left: 6px solid var(--red);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(79, 140, 255, 0.06);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.session-exercise-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: clamp(18px, 3vw, 26px);
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(62, 123, 255, 0.12), transparent 34%),
    radial-gradient(circle at 96% 12%, rgba(79, 140, 255, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 0 rgba(7, 7, 7, 0.9), 0 22px 48px rgba(62, 123, 255, 0.11);
}

.session-exercise-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 0.98;
}

.session-exercise-card p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.45;
}

.session-exercise-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.session-exercise-list li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 760;
  line-height: 1.35;
}

.session-exercise-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 17px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: white;
}

.session-step-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.session-step-list li {
  position: relative;
  padding: 11px 12px 11px 38px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.session-step-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  transform: translateY(-50%);
}

.session-answer-grid,
.session-tip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.session-text-choice-grid {
  gap: 10px;
}

.session-answer-card,
.session-tip-card {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 15px 16px;
  border: 2px solid rgba(7, 7, 7, 0.12);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 -4px 0 rgba(7, 7, 7, 0.04);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.session-answer-card:hover,
.session-answer-card:focus-visible,
.session-answer-card.active,
.session-tip-card:hover,
.session-tip-card:focus-visible,
.session-tip-card.active {
  transform: translateY(-4px);
  border-color: var(--ink);
  background:
    radial-gradient(circle at 92% 12%, rgba(62, 123, 255, 0.16), transparent 36%),
    #ffffff;
  box-shadow: 0 5px 0 var(--ink), 0 16px 34px rgba(62, 123, 255, 0.16);
}

.session-answer-card span,
.session-tip-card strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.session-answer-card small,
.session-tip-card small,
.session-text-hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 580;
  line-height: 1.35;
}

.session-tip-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.session-tip-choice-grid {
  margin-top: 14px;
}

.session-tip-grid.session-tip-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.session-tip-level-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 900;
}

.session-tip-level-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 2px solid rgba(62, 123, 255, 0.28);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(62, 123, 255, 0.1);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.session-tip-level-copy {
  margin: 10px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.session-progress-tip {
  min-height: 122px;
  padding: 14px 14px;
  background:
    radial-gradient(circle at 90% 15%, rgba(79, 140, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.94);
}

.session-progress-tip span {
  display: grid;
  gap: 5px;
}

.session-tip-decision {
  min-height: 104px;
}

.session-tip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: var(--blue);
}

.session-tip-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.session-ai-suggestion-wrap {
  display: grid;
  margin-top: 18px;
}

.session-ai-suggestion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  width: 100%;
  min-height: 126px;
  padding: clamp(18px, 4vw, 26px);
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(62, 123, 255, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.92));
  box-shadow: 0 6px 0 rgba(7, 7, 7, 0.9), 0 24px 54px rgba(79, 140, 255, 0.14);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.session-ai-suggestion:hover,
.session-ai-suggestion:focus-visible,
.session-ai-suggestion.active {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 9px 0 rgba(7, 7, 7, 0.9), 0 28px 62px rgba(62, 123, 255, 0.16);
}

.session-ai-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 14px 28px rgba(62, 123, 255, 0.22);
}

.session-ai-badge .session-tip-icon {
  background: transparent;
}

.session-ai-badge.has-buddy {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.session-buddy-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--buddy-color) 44%, rgba(7, 7, 7, 0.12));
  color: var(--buddy-color);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
    color-mix(in srgb, var(--buddy-color) 82%, white);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--buddy-color) 22%, transparent);
}

.session-buddy-face::before,
.session-buddy-face::after {
  content: "";
  position: absolute;
  top: 21px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: white;
}

.session-buddy-face::before {
  left: 17px;
}

.session-buddy-face::after {
  right: 17px;
}

.session-buddy-face > span {
  position: absolute;
  bottom: 14px;
  width: 17px;
  height: 7px;
  border-bottom: 3px solid white;
  border-radius: 0 0 999px 999px;
}

.session-buddy-face.is-round {
  border-radius: 24px;
}

.session-buddy-face.is-bolt {
  border-radius: 20px 32px 17px 32px;
  transform: rotate(-5deg);
}

.session-buddy-face.is-leaf {
  border-radius: 39px 17px 39px 17px;
  transform: rotate(-8deg);
}

.session-buddy-face.is-sun {
  border-radius: 50%;
}

.session-buddy-face.is-crystal {
  clip-path: polygon(50% 0, 92% 24%, 82% 84%, 50% 100%, 18% 84%, 8% 24%);
}

.session-ai-copy {
  display: grid;
  gap: 5px;
}

.session-ai-copy > small {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-ai-copy strong {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 3vw, 2rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: none;
}

.session-ai-copy p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 580;
  line-height: 1.42;
}

.session-ai-chat {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: clamp(16px, 3.5vw, 24px);
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 12%, rgba(62, 123, 255, 0.12), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(79, 140, 255, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 0 rgba(7, 7, 7, 0.9), 0 24px 54px rgba(62, 123, 255, 0.12);
}

.session-ai-chat-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.session-memory-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(62, 123, 255, 0.2);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(62, 123, 255, 0.09);
}

.session-memory-chip-inline {
  align-self: flex-start;
  margin: 6px 0 -2px 8px;
}

.session-memory-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.session-ai-chat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  max-height: min(48vh, 480px);
  overflow-y: auto;
  padding: 6px 26px 8px 6px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.session-ai-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  width: 100%;
  margin-top: 2px;
}

.session-ai-quick-replies button {
  min-height: 38px;
  padding: 8px 12px;
  border: 2px solid rgba(7, 7, 7, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 0 rgba(7, 7, 7, 0.65);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.session-ai-quick-replies button:hover,
.session-ai-quick-replies button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(62, 123, 255, 0.46);
  box-shadow: 0 4px 0 rgba(7, 7, 7, 0.75), 0 10px 22px rgba(62, 123, 255, 0.11);
  outline: none;
}

.session-ai-message {
  align-self: flex-start;
  display: block;
  width: fit-content;
  max-width: min(78%, 680px);
  min-width: 0;
  min-height: unset;
  height: auto;
  margin: 0;
  padding: 12px 15px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 18px 18px 18px 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(7, 7, 7, 0.06);
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.5;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  overflow: visible;
  contain: none;
  transform-origin: left center;
  animation: motiMessageIn 220ms ease both;
}

.session-ai-message-row {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
}

.session-ai-message-row.is-user {
  align-items: flex-end;
}

.session-ai-message-row .session-ai-message {
  align-self: inherit;
}

.session-ai-feedback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.session-ai-feedback button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(45, 63, 92, 0.12);
  border-radius: 999px;
  color: #68758a;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(35, 59, 116, 0.07);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease, color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.session-ai-feedback button:hover,
.session-ai-feedback button:focus-visible,
.session-ai-feedback button.active {
  transform: translateY(-1px);
  color: var(--blue);
  border-color: rgba(62, 123, 255, 0.28);
  background: rgba(239, 245, 255, 0.98);
  outline: none;
}

.session-ai-message.is-typing::after,
.memory-chat-message.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 2px;
  border-right: 2px solid rgba(7, 7, 7, 0.45);
  vertical-align: -0.14em;
  animation: motiCaretBlink 760ms steps(1) infinite;
}

.session-ai-message.is-user {
  align-self: flex-end;
  width: fit-content;
  max-width: min(68%, 600px);
  border-radius: 18px 18px 7px 18px;
  color: white;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(7, 7, 7, 0.14);
  transform-origin: right center;
}

.session-ai-thinking-bubble {
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  margin: 0;
  padding: 8px;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(7, 7, 7, 0.06);
  box-sizing: border-box;
  overflow: visible;
  line-height: 1;
  animation: motiMessageIn 220ms ease both;
}

.moti-chat-thinking {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(79, 140, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 140, 255, 0.1), transparent 58%),
    white;
  box-shadow: 0 8px 18px rgba(79, 140, 255, 0.12), 0 0 0 6px rgba(79, 140, 255, 0.04);
}

.moti-chat-thinking img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  animation: loaderSpin 1.15s linear infinite;
}

.session-ai-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.session-ai-reply input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 2px solid rgba(7, 7, 7, 0.14);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 850;
  outline: none;
}

.session-ai-reply input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(62, 123, 255, 0.12);
}

.session-ai-reply .ai-model-toggle {
  min-height: 48px;
}

.session-ai-send {
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: white;
  background: var(--red);
  box-shadow: 0 4px 0 var(--ink);
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
}

.session-ai-send:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (max-width: 560px) {
  .session-ai-chat {
    padding: 14px;
    border-radius: 24px;
  }

  .session-ai-chat-list {
    gap: 16px;
    max-height: min(56vh, 540px);
    padding: 6px 14px 10px 4px;
  }

  .session-ai-message {
    max-width: min(88%, 100%);
    padding: 11px 13px;
    border-radius: 16px 16px 16px 7px;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .session-ai-message.is-user {
    max-width: min(82%, 100%);
    border-radius: 16px 16px 7px 16px;
  }

  .session-ai-thinking-bubble {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    max-width: 54px;
    max-height: 54px;
  }

  .session-memory-chip-inline {
    margin: 2px 0 -6px 6px;
  }

  .session-ai-quick-replies {
    gap: 8px;
    padding-right: 4px;
  }

  .session-ai-quick-replies button {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }

  .session-ai-reply {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .session-ai-reply .ai-model-picker,
  .session-ai-reply .ai-model-toggle,
  .session-ai-reply .ai-model-menu {
    width: 100%;
  }

  .session-ai-send {
    width: 100%;
  }
}

/* Beta 1.3.6: hard final sidebar placement, kept last so nothing overrides it. */
@media (min-width: 901px) {
  body {
    --moti-sidebar-width: 132px;
    --moti-content-gap: 28px;
  }

  .moti-shell {
    width: min(1180px, calc(100vw - var(--moti-sidebar-width) - 72px)) !important;
    margin-left: calc(var(--moti-sidebar-width) + var(--moti-content-gap)) !important;
    margin-right: auto !important;
  }

  .moti-platform {
    display: block !important;
  }

  .platform-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 45 !important;
    width: var(--moti-sidebar-width) !important;
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 28px 10px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.9)),
      rgba(255, 255, 255, 0.94) !important;
    box-shadow: 14px 0 54px rgba(42, 64, 108, 0.055) !important;
    overflow: hidden !important;
  }

  .platform-nav::before,
  .platform-nav::after {
    display: none !important;
  }

  .platform-nav-avatar {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    width: 86px !important;
    height: 86px !important;
    margin: 0 auto 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 14px 38px rgba(78, 96, 132, 0.12), inset 0 0 0 4px rgba(255, 255, 255, 0.7) !important;
  }

  .platform-nav-avatar span {
    width: 74px !important;
    height: 74px !important;
    border-radius: 50% !important;
    background:
      radial-gradient(circle at 50% 34%, #cfd3db 0 13%, transparent 14%),
      radial-gradient(ellipse at 50% 78%, #c8ccd4 0 34%, transparent 35%),
      #f4f6fb !important;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.88) !important;
    color: transparent !important;
  }

  .platform-nav-avatar span.has-image {
    background-size: cover !important;
    background-position: center !important;
  }

  .platform-nav button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 13px !important;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #657389 !important;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-align: left !important;
    overflow: visible !important;
  }

  .platform-nav button > span:not(.nav-icon) {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: inherit !important;
  }

  .platform-nav .nav-icon {
    width: 22px !important;
    height: 22px !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #66758b !important;
  }

  .platform-nav .nav-icon svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .platform-nav button.active {
    color: #fff !important;
    background:
      linear-gradient(90deg, rgba(79, 140, 255, 0.98), rgba(79, 140, 255, 0.9) 42%, rgba(232, 242, 255, 0.82)) !important;
    box-shadow: 0 14px 28px rgba(79, 140, 255, 0.16) !important;
  }

  .platform-nav button.active .nav-icon {
    width: 30px !important;
    height: 30px !important;
    margin-left: -5px !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: #4f8cff !important;
    box-shadow: 0 9px 22px rgba(79, 140, 255, 0.26) !important;
  }

  .platform-nav button.active .nav-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #fff !important;
  }

  .platform-nav button.active > span:not(.nav-icon) {
    color: #fff !important;
    font-size: 0.76rem !important;
  }

  .platform-nav .platform-nav-logout {
    margin: auto auto 0 !important;
    width: 74px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    border: 1px solid rgba(101, 115, 137, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 30px rgba(43, 64, 114, 0.075) !important;
  }

  .platform-nav .platform-nav-logout .nav-icon {
    color: var(--red) !important;
  }

  .platform-nav .platform-nav-logout .nav-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
}

/* Beta 1.3.5: final desktop sidebar rail, full height like the reference. */
@media (min-width: 901px) {
  body {
    --moti-sidebar-width: 132px;
    --moti-content-gap: 28px;
  }

  .moti-shell {
    width: min(1180px, calc(100vw - var(--moti-sidebar-width) - 72px));
    margin-left: calc(var(--moti-sidebar-width) + var(--moti-content-gap));
    margin-right: auto;
  }

  .moti-platform {
    display: block;
  }

  .platform-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 45;
    width: var(--moti-sidebar-width) !important;
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 28px 10px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.9)),
      rgba(255, 255, 255, 0.94) !important;
    box-shadow: 14px 0 54px rgba(42, 64, 108, 0.055) !important;
    overflow: hidden !important;
  }

  .platform-nav::before,
  .platform-nav::after {
    display: none !important;
  }

  .platform-nav-avatar {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    width: 86px !important;
    height: 86px !important;
    margin: 0 auto 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 14px 38px rgba(78, 96, 132, 0.12), inset 0 0 0 4px rgba(255, 255, 255, 0.7) !important;
  }

  .platform-nav-avatar span {
    width: 74px !important;
    height: 74px !important;
    border-radius: 50% !important;
    background:
      radial-gradient(circle at 50% 34%, #cfd3db 0 13%, transparent 14%),
      radial-gradient(ellipse at 50% 78%, #c8ccd4 0 34%, transparent 35%),
      #f4f6fb !important;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.88) !important;
    color: transparent !important;
  }

  .platform-nav-avatar span.has-image {
    background-size: cover !important;
    background-position: center !important;
  }

  .platform-nav button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 13px !important;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #657389 !important;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-align: left !important;
    overflow: visible !important;
  }

  .platform-nav button > span:not(.nav-icon) {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: inherit !important;
  }

  .platform-nav .nav-icon {
    width: 22px !important;
    height: 22px !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #66758b !important;
  }

  .platform-nav .nav-icon svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .platform-nav button.active {
    color: #fff !important;
    background:
      linear-gradient(90deg, rgba(79, 140, 255, 0.98), rgba(79, 140, 255, 0.9) 42%, rgba(232, 242, 255, 0.82)) !important;
    box-shadow: 0 14px 28px rgba(79, 140, 255, 0.16) !important;
  }

  .platform-nav button.active .nav-icon {
    width: 30px !important;
    height: 30px !important;
    margin-left: -5px !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: #4f8cff !important;
    box-shadow: 0 9px 22px rgba(79, 140, 255, 0.26) !important;
  }

  .platform-nav button.active .nav-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #fff !important;
  }

  .platform-nav button.active > span:not(.nav-icon) {
    color: #fff !important;
    font-size: 0.76rem !important;
  }

  .platform-nav .platform-nav-logout {
    margin: auto auto 0 !important;
    width: 74px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    border: 1px solid rgba(101, 115, 137, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 30px rgba(43, 64, 114, 0.075) !important;
  }

  .platform-nav .platform-nav-logout .nav-icon {
    color: var(--red) !important;
  }

  .platform-nav .platform-nav-logout .nav-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
}

@keyframes motiMessageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes motiCaretBlink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

.session-text-hint {
  display: block;
  margin-top: -6px;
}

.session-text-custom {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.session-text-custom textarea {
  min-height: 92px;
}

.session-text-hint[data-tone="error"] {
  color: #a81717;
}

.session-skip-text {
  justify-self: start;
  width: fit-content;
  margin-top: -2px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-color: rgba(7, 7, 7, 0.18);
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.session-skip-text:hover,
.session-skip-text:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--red);
  outline: 0;
}

@keyframes sessionStepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathRing {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }

  48% {
    opacity: 1;
    transform: scale(2.4);
  }
}

@keyframes breathHalo {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.75);
  }

  50% {
    opacity: 0.88;
    transform: scale(1.45);
  }
}

.session-community {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 2px solid rgba(62, 123, 255, 0.2);
  border-radius: 16px;
  background: rgba(62, 123, 255, 0.07);
}

.session-community strong {
  color: var(--blue-dark);
  text-transform: uppercase;
}

.session-community p {
  margin: 0;
}

.session-community blockquote {
  margin: 0;
  padding: 14px 16px;
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.45;
}

.session-community .platform-secondary {
  width: fit-content;
}

.session-reflection-label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.session-player textarea {
  min-height: 110px;
  resize: vertical;
  padding: 14px;
  border: 2px solid rgba(7, 7, 7, 0.18);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 1rem;
  font-weight: 760;
}

.session-player textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(62, 123, 255, 0.15);
}

.session-actions {
  display: grid;
  gap: clamp(10px, 2vw, 14px);
  width: min(420px, 100%);
  padding-top: 2px;
}

.session-actions .platform-primary,
.session-actions .platform-secondary {
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 15px;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 var(--ink);
}

.session-actions .platform-secondary {
  background: rgba(255, 255, 255, 0.86);
}

.session-actions .platform-primary[hidden] {
  display: none;
}

.session-actions .platform-primary.is-ready {
  background: #58cc02;
  box-shadow: 0 5px 0 #2f7e00, 0 18px 38px rgba(88, 204, 2, 0.2);
}

.session-actions .platform-primary:hover,
.session-actions .platform-primary:focus-visible,
.session-actions .platform-secondary:hover,
.session-actions .platform-secondary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--ink), 0 12px 28px rgba(62, 123, 255, 0.12);
}

.session-status {
  padding: 12px 14px;
  border: 2px solid rgba(79, 140, 255, 0.22);
  border-radius: 14px;
  color: #6b1515;
  background: rgba(79, 140, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 900;
}

.session-status[data-tone="success"] {
  border-color: rgba(62, 123, 255, 0.24);
  color: var(--blue-dark);
  background: rgba(62, 123, 255, 0.08);
}

.moti-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 7, 7, 0.46);
  backdrop-filter: blur(12px);
}

.moti-confirm-card {
  width: min(520px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 3px solid var(--ink);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 12%, rgba(79, 140, 255, 0.16), transparent 32%),
    white;
  box-shadow: 10px 12px 0 var(--ink), 0 32px 90px rgba(7, 7, 7, 0.24);
}

.moti-confirm-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.02;
}

.moti-confirm-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.55;
}

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

.moti-blocked-dialog {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 7, 7, 0.46);
  backdrop-filter: blur(12px);
}

.moti-blocked-dialog[hidden] {
  display: none;
}

.moti-blocked-card {
  width: min(520px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 3px solid var(--ink);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 12%, rgba(79, 140, 255, 0.16), transparent 32%),
    white;
  box-shadow: 10px 12px 0 var(--ink), 0 32px 90px rgba(7, 7, 7, 0.24);
}

.moti-blocked-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.02;
}

.moti-blocked-card p:not(.eyebrow) {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.55;
}

.moti-blocked-card button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.share-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

.share-card img {
  display: block;
  width: 100%;
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 14px;
  background: #eef2f8;
}

.share-preview-loader {
  display: grid;
  place-items: center;
  min-height: min(62vh, 620px);
  border: 2px solid rgba(7, 7, 7, 0.1);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(79, 140, 255, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(62, 123, 255, 0.08), rgba(79, 140, 255, 0.07)),
    #f8fbff;
}

.share-preview-loader .moti-loader-mark {
  width: 86px;
  height: 86px;
}

.share-preview-loader .moti-loader-mark img {
  width: 72%;
  height: 72%;
  border: 0;
  border-radius: 0;
  background: transparent;
  animation: loaderSpin 1.05s linear infinite;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(7, 7, 7, 0.16);
  border-radius: 50%;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.share-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.session-player > .share-close {
  position: fixed;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-color: rgba(7, 7, 7, 0.18);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(39, 72, 142, 0.14);
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.session-player > .share-close:hover,
.session-player > .share-close:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(79, 140, 255, 0.14);
}

.streak-burst {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(22px, 5vw, 56px);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 34%, rgba(79, 140, 255, 0.26), transparent 28%),
    radial-gradient(circle at 50% 52%, rgba(255, 176, 0, 0.15), transparent 26%),
    radial-gradient(circle at 16% 18%, rgba(62, 123, 255, 0.12), transparent 25%),
    radial-gradient(circle at 84% 76%, rgba(79, 140, 255, 0.12), transparent 25%),
    linear-gradient(rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(22, 39, 66, 0.045) 34px 35px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(22, 39, 66, 0.045) 34px 35px);
}

body.streak-open {
  overflow: hidden;
}

.streak-burst-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(14px, 2.4vw, 24px);
  width: 100%;
  min-height: 100svh;
  padding: clamp(28px, 6vw, 78px) clamp(18px, 5vw, 64px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transform: translateY(10px);
}

.streak-burst-card::before,
.streak-burst-card::after {
  content: none;
}

.streak-burst-card::before {
  inset: 9% auto auto 12%;
  width: 36px;
  height: 36px;
  background: rgba(62, 123, 255, 0.16);
  animation: floatDot 3.8s ease-in-out infinite;
}

.streak-burst-card::after {
  inset: auto 12% 12% auto;
  width: 54px;
  height: 54px;
  background: rgba(79, 140, 255, 0.14);
  animation: floatDot 4.4s ease-in-out infinite reverse;
}

.streak-burst.show {
  animation: modalFade 220ms ease both;
}

.streak-burst.show .streak-burst-card {
  animation: streakScreenIn 480ms cubic-bezier(.2, .9, .2, 1) both;
}

.streak-burst h2 {
  margin: 0;
  font-size: clamp(5.6rem, 18vw, 11rem);
  letter-spacing: 0;
  line-height: 0.72;
  text-shadow: 0 14px 34px rgba(79, 140, 255, 0.12);
}

.burst-flame {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: clamp(150px, 22vw, 230px);
  height: clamp(150px, 22vw, 230px);
  margin-bottom: clamp(-12px, -1vw, -4px);
  border-radius: 50%;
  color: #4f8cff;
  background:
    radial-gradient(circle at 50% 68%, rgba(255, 176, 0, 0.4), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(79, 140, 255, 0.2), transparent 60%);
  filter: drop-shadow(0 26px 34px rgba(79, 140, 255, 0.3));
}

.burst-flame::before,
.burst-flame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.burst-flame::before {
  inset: 10px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 246, 174, 0.55), transparent 22%),
    radial-gradient(circle at 50% 58%, rgba(255, 138, 0, 0.28), transparent 43%),
    radial-gradient(circle at 50% 62%, rgba(79, 140, 255, 0.2), transparent 62%);
  transform: scale(0.82);
}

.burst-flame::after {
  left: 50%;
  bottom: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb000;
  box-shadow:
    -32px -8px 0 rgba(79, 140, 255, 0.62),
    28px -16px 0 rgba(255, 176, 0, 0.62),
    -14px -42px 0 rgba(79, 140, 255, 0.5),
    22px -54px 0 rgba(62, 123, 255, 0.42),
    0 -70px 0 rgba(255, 176, 0, 0.48);
  transform: translateX(-50%);
}

.streak-burst.show .burst-flame {
  animation: flameIgnite 2s cubic-bezier(.2, .9, .2, 1) both;
}

.streak-burst.show .burst-flame::before {
  animation: flameGlow 2s ease both;
}

.streak-burst.show .burst-flame::after {
  animation: emberRise 2s ease both;
}

.burst-flame svg {
  position: relative;
  z-index: 1;
  width: 62%;
  height: 62%;
  overflow: visible;
}

.flame-outer,
.flame-inner {
  transform-box: fill-box;
  transform-origin: 50% 86%;
}

.flame-outer {
  fill: url(#motiFlameOuter);
}

.flame-inner {
  fill: url(#motiFlameInner);
}

.streak-burst.show .flame-outer {
  animation: flameFill 2s ease both;
}

.streak-burst.show .flame-inner {
  animation: innerFlameFill 2s ease both;
}

.burst-days {
  display: block;
  margin-top: -6px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
}

.streak-burst.show .burst-days {
  animation: burstDaysIn 1.15s ease 520ms both;
}

.site-footer {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.7fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: 156px;
  padding: 38px min(7vw, 72px);
  border-top: 1px solid rgba(79, 140, 255, 0.18);
  background:
    radial-gradient(circle at 92% 12%, rgba(79, 140, 255, 0.16), transparent 34%),
    radial-gradient(circle at 8% 86%, rgba(61, 119, 255, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.95) 48%, rgba(232, 242, 255, 0.94));
  color: var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: auto -72px -180px auto;
  width: 440px;
  height: 440px;
  border: 32px solid rgba(79, 140, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
  animation: footerRing 9s ease-in-out infinite;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(7, 7, 7, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 7, 7, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 24%, black);
  mask-image: linear-gradient(90deg, transparent, black 24%, black);
  opacity: 0.16;
  pointer-events: none;
  animation: footerGridSlide 16s linear infinite;
}

.footer-brand,
.site-footer p,
.footer-links {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 950;
}

.footer-brand-text {
  display: grid;
  gap: 5px;
}

.footer-brand-text small {
  color: rgba(7, 7, 7, 0.58);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.footer-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 7, 7, 0.12);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 34px rgba(39, 72, 142, 0.12), 0 0 0 8px rgba(79, 140, 255, 0.04);
  transition: transform 220ms ease;
}

.footer-brand:hover .footer-logo {
  transform: rotate(-8deg) scale(1.04);
}

.footer-logo img {
  width: 42px;
  height: 42px;
}

.site-footer p {
  margin: 0;
  max-width: 320px;
  color: rgba(7, 7, 7, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.26rem);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.site-footer p::after {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  margin: 14px auto 0 0;
  background: linear-gradient(90deg, var(--red), rgba(61, 119, 255, 0.42));
}

.site-footer a {
  color: var(--ink);
  font-weight: 900;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(7, 7, 7, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease,
    border-color 180ms ease;
}

.footer-links a::after {
  content: none;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(79, 140, 255, 0.26);
  background: rgba(255, 255, 255, 0.95);
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(34px, 34px, 0);
  }
}

@keyframes dotFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(8px, -14px, 0);
  }
}

@keyframes softOrbit {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -16px, 0) scale(1.04);
  }
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pathFlow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -48;
  }
}

@keyframes footerRing {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-18px, -12px) scale(1.04);
  }
}

@keyframes footerGridSlide {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 42px 42px;
  }
}

@keyframes pathPulse {
  0%,
  100% {
    box-shadow: inset 0 -5px 0 rgba(7, 7, 7, 0.15), 0 12px 24px rgba(79, 140, 255, 0.18);
  }
  50% {
    box-shadow: inset 0 -5px 0 rgba(7, 7, 7, 0.15), 0 0 0 10px rgba(79, 140, 255, 0.12), 0 16px 28px rgba(79, 140, 255, 0.22);
  }
}

@keyframes modalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes streakScreenIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatDot {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(10px, -12px, 0) scale(1.12);
  }
}

@keyframes streakBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.78) rotate(-2deg);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06) rotate(1deg);
  }

  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -58%) scale(0.92) rotate(2deg);
  }
}

@keyframes flameIgnite {
  0% {
    opacity: 1;
    background:
      radial-gradient(circle at 50% 68%, rgba(117, 125, 139, 0.2), transparent 34%),
      radial-gradient(circle at 50% 50%, rgba(117, 125, 139, 0.16), transparent 58%);
    filter: grayscale(1) saturate(0) drop-shadow(0 12px 18px rgba(117, 125, 139, 0.2));
    transform: translateY(8px) scale(0.86);
  }

  38% {
    opacity: 1;
    background:
      radial-gradient(circle at 50% 68%, rgba(255, 176, 0, 0.5), transparent 38%),
      radial-gradient(circle at 50% 50%, rgba(79, 140, 255, 0.26), transparent 62%);
    filter: grayscale(0) saturate(1.2) drop-shadow(0 32px 38px rgba(79, 140, 255, 0.36));
    transform: translateY(-8px) scale(1.16);
  }

  66% {
    transform: translateY(1px) scale(0.98);
  }

  100% {
    opacity: 1;
    background:
      radial-gradient(circle at 50% 68%, rgba(255, 176, 0, 0.4), transparent 36%),
      radial-gradient(circle at 50% 50%, rgba(79, 140, 255, 0.2), transparent 60%);
    filter: grayscale(0) saturate(1) drop-shadow(0 26px 34px rgba(79, 140, 255, 0.3));
    transform: translateY(0) scale(1);
  }
}

@keyframes burstDaysIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flameDance {
  0%,
  100% {
    transform: translateX(0) scaleX(1) scaleY(1) rotate(-1deg);
  }

  50% {
    transform: translateX(1px) scaleX(0.94) scaleY(1.08) rotate(2deg);
  }
}

@keyframes flameFill {
  0% {
    opacity: 0.9;
    filter: grayscale(1) saturate(0) brightness(0.72);
    transform: translateY(3px) scale(0.92);
  }

  38% {
    opacity: 1;
    filter: grayscale(0) saturate(1.25) brightness(1.08);
    transform: translateY(-5px) scale(1.08);
  }

  66% {
    transform: translateY(1px) scale(0.98);
  }

  100% {
    opacity: 1;
    filter: grayscale(0) saturate(1) brightness(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes innerFlameFill {
  0% {
    opacity: 0.18;
    filter: grayscale(1) saturate(0) brightness(0.88);
    transform: translateY(6px) scale(0.7);
  }

  44% {
    opacity: 1;
    filter: grayscale(0) saturate(1.2) brightness(1.08);
    transform: translateY(-4px) scale(1.08);
  }

  100% {
    opacity: 1;
    filter: grayscale(0) saturate(1) brightness(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes innerFlameDance {
  0%,
  100% {
    opacity: 0.88;
    transform: translateY(0) scale(0.96) rotate(1deg);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px) scale(1.08) rotate(-2deg);
  }
}

@keyframes flameGlow {
  0%,
  16% {
    opacity: 0.2;
    filter: grayscale(1);
    transform: scale(0.76);
  }

  48% {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.16);
  }

  100% {
    opacity: 0.78;
    filter: grayscale(0);
    transform: scale(0.96);
  }
}

@keyframes emberRise {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 10px, 0) scale(0.8);
  }

  18%,
  74% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(-50%, -18px, 0) scale(1.12);
  }
}

/* Shape pass only: no palette or color-role changes. */
.moti-hero-card {
  place-items: stretch;
  width: min(900px, 100%);
  min-height: 520px;
  padding: clamp(34px, 5vw, 68px) clamp(30px, 5vw, 72px);
}

.moti-hero-card .login-panel {
  align-items: flex-start;
  justify-content: center;
  width: min(500px, 100%);
  margin-inline: 0;
  text-align: left;
}

.moti-hero-card .moti-logo {
  width: min(320px, 88%);
  margin-left: 0;
  margin-right: 0;
}

.moti-hero-card h1,
.moti-hero-card .login-copy {
  text-align: left;
}

.moti-hero-card .login-copy {
  max-width: 360px;
  text-wrap: pretty;
}

.moti-hero-card .voron-login-button {
  margin-top: 4px;
}

.platform-header {
  min-height: 156px;
  border-radius: 18px 18px 6px 18px;
}

.platform-header h2 {
  max-width: 660px;
  margin-bottom: 0;
  letter-spacing: -0.015em;
}

.platform-nav {
  border-radius: 999px;
}

.platform-nav button {
  border-radius: 999px;
}

.platform-nav button::before {
  inset: 4px;
  border-radius: 999px;
}

.nav-icon {
  border-radius: 50%;
}

.platform-card {
  border-radius: 10px 18px 18px 18px;
}

.path-heading {
  padding-bottom: 18px;
}

.path-heading h3 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.quote-of-day {
  max-width: none;
  padding-right: 22px;
}

.path-node-label {
  border-radius: 8px 16px 16px 16px;
}

.community-form {
  padding: 16px;
  border-radius: 14px;
}

.community-form textarea {
  border-radius: 10px;
}

.post-list {
  gap: 14px;
}

.post-item {
  border-radius: 10px 16px 16px 16px;
}

.post-item p {
  font-size: 1.04rem;
  line-height: 1.5;
}

.mood-chart {
  border-radius: 10px;
}

.profile-badge {
  border-radius: 18px 18px 18px 6px;
}

@media (max-width: 860px) {
  .moti-hero-card .login-panel {
    align-items: center;
    margin-inline: auto;
    text-align: center;
  }

  .moti-hero-card .moti-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .moti-hero-card h1,
  .moti-hero-card .login-copy {
    text-align: center;
  }

  .platform-nav {
    border-radius: 20px;
  }
}

@media (max-width: 860px) {
  .moti-header {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .moti-header-tools {
    justify-content: flex-start;
  }

  .moti-shell {
    align-items: start;
    padding-top: 28px;
  }

  .moti-card {
    width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
    min-width: 0;
    box-shadow: 8px 9px 0 var(--ink), 0 24px 70px rgba(39, 72, 142, 0.14);
  }

  .moti-logo {
    width: min(270px, 86%);
  }

  .moti-platform {
    width: 100%;
    padding-bottom: 92px;
  }

  .platform-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-header-actions {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    flex-wrap: wrap;
  }

  .weekly-streak-button {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 10px;
  }

  .weekly-streak-button .weekly-streak {
    gap: 6px;
  }

  .weekly-streak-button .week-day {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .calendar-modal {
    padding: 14px;
  }

  .calendar-card {
    max-height: calc(100vh - 28px);
    border-radius: 22px;
    box-shadow: 7px 8px 0 var(--ink), 0 24px 70px rgba(7, 7, 7, 0.22);
  }

  .calendar-card-header {
    padding: 20px 18px 14px;
  }

  .calendar-months {
    padding: 16px 18px 22px;
  }

  .calendar-month {
    padding: 12px;
    border-radius: 16px;
  }

  .platform-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 30;
    border-radius: 20px;
    box-shadow: 0 18px 52px rgba(39, 72, 142, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  }

  .platform-nav button {
    flex-direction: column;
    gap: 5px;
    min-height: 52px;
    font-size: 0.72rem;
  }

  .nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

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

  .memory-hero,
  .memory-workspace {
    grid-template-columns: 1fr;
  }

  .memory-hero {
    justify-items: center;
    text-align: center;
  }

  .memory-chat-form {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .memory-chat-form .ai-model-picker {
    grid-column: 1 / -1;
  }

  .memory-chat-form .ai-model-picker,
  .memory-chat-form .ai-model-toggle,
  .memory-chat-form .ai-model-menu {
    width: 100%;
  }

  .memory-chat-form > button {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .path-node {
    width: 68px;
    height: 68px;
  }

  .path-node-core {
    width: 52px;
    height: 52px;
  }

  .path-node-label,
  .path-node.label-left .path-node-label {
    left: 50%;
    right: auto;
    top: calc(100% + 12px);
    min-width: 176px;
    transform: translate3d(-50%, -8px, 0) scale(0.96);
  }

  .path-node:hover .path-node-label,
  .path-node:focus-visible .path-node-label,
  .path-node.is-selected .path-node-label {
    transform: translate3d(-50%, 0, 0) scale(1);
  }

  .stats-heading {
    display: grid;
  }

  .stats-badge {
    width: fit-content;
  }

  .mood-bars {
    gap: 8px;
  }

  .breath-guide {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .breath-copy {
    justify-items: center;
  }

  .session-answer-grid,
  .session-tip-grid {
    grid-template-columns: 1fr;
  }

  .session-tip-grid.session-tip-choice-grid {
    grid-template-columns: 1fr;
  }

  .session-ai-suggestion {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 18px;
  }

  .session-ai-badge {
    width: 48px;
    height: 48px;
  }

  .moti-session-loader {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .session-player {
    align-content: start;
    width: 100%;
    min-height: 100svh;
    padding: 72px 18px 24px;
  }

  .session-player h2 {
    font-size: clamp(2.45rem, 12vw, 4.4rem);
  }

  .session-player > .share-close {
    top: 14px;
    right: 14px;
  }

  .session-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 12px 0 4px;
    background: linear-gradient(transparent, rgba(251, 252, 255, 0.96) 28%);
  }

  .moti-confirm-actions {
    grid-template-columns: 1fr;
  }

  .feeling-scale {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .feeling-button {
    min-height: 76px;
  }

  .moti-drag-scale {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 18px;
  }

  .moti-scale-symbol {
    width: 92px;
    height: 92px;
  }

  .moti-scale-main {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .moti-header {
    padding: 18px 16px 0;
  }

  .header-streak-pill,
  .dev-day-button {
    min-height: 32px;
    font-size: 0.68rem;
  }

  .moti-shell {
    padding: 24px 16px 42px;
  }

  .moti-card {
    width: min(280px, calc(100vw - 96px));
    max-width: 280px;
    padding: 18px;
    border-width: 2px;
    border-radius: 16px;
    box-shadow: 6px 7px 0 var(--ink), 0 18px 54px rgba(39, 72, 142, 0.14);
  }

  .moti-questionnaire {
    width: min(330px, calc(100vw - 32px));
  }

  .questionnaire-card {
    max-height: none;
    padding: 22px;
    border-width: 2px;
    border-radius: 18px;
    box-shadow: 7px 8px 0 var(--ink), 0 18px 54px rgba(39, 72, 142, 0.14);
  }

  .questionnaire-card h2 {
    font-size: 2rem;
  }

  .questionnaire-options {
    max-height: 44vh;
  }

  .questionnaire-option {
    min-height: 70px;
    border-width: 2px;
  }

  .questionnaire-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .questionnaire-photo-editor {
    align-items: flex-start;
  }

  .questionnaire-photo-preview {
    width: 62px;
    height: 62px;
    font-size: 1.45rem;
  }

  .questionnaire-actions {
    grid-template-columns: 1fr;
  }

  .moti-logo {
    width: min(220px, 76%);
  }

  h1 {
    max-width: 240px;
    font-size: clamp(2.05rem, 10vw, 2.7rem);
    overflow-wrap: break-word;
  }

  .login-copy {
    max-width: 240px;
    font-size: 0.98rem;
  }

  .voron-login-button {
    width: 100%;
    max-width: 240px;
  }

  h2 {
    font-size: 1.65rem;
    line-height: 1.08;
  }

  .moti-about {
    width: min(280px, calc(100vw - 96px));
  }

  .moti-about p:not(.eyebrow) {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .platform-header,
  .platform-card {
    border-radius: 16px;
    padding: 20px;
  }

  .platform-streak-indicator {
    min-height: 40px;
    font-size: 0.76rem;
  }

  .platform-header h2 {
    font-size: 1.9rem;
  }

  .community-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .path-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .path-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .profile-heading {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

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

  .comment-form {
    grid-template-columns: 1fr;
  }

  .share-actions {
    grid-template-columns: 1fr;
  }

  .session-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .session-actions .platform-primary,
  .session-actions .platform-secondary {
    min-height: 50px;
  }

  .platform-primary,
  .platform-secondary,
  .platform-link,
  .text-button {
    width: 100%;
  }

  .site-footer {
    align-items: start;
    gap: 18px;
    padding: 30px 20px;
  }

  .site-footer p {
    text-align: left;
  }

  .site-footer p::after {
    margin-left: 0;
    margin-right: auto;
  }

  .footer-links {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.moti-beta-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: min(380px, calc(100vw - 28px));
}

.moti-beta-card {
  padding: 20px;
  border: 1px solid rgba(79, 140, 255, 0.22);
  border-top: 4px solid var(--red);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(79, 140, 255, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(255, 255, 255, 0.9) 48%, rgba(232, 242, 255, 0.86));
  box-shadow: 0 22px 70px rgba(18, 28, 58, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.moti-beta-card strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.moti-beta-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.moti-beta-card button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 34px rgba(79, 140, 255, 0.22);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.moti-beta-card button:hover,
.moti-beta-card button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(79, 140, 255, 0.28);
  outline: none;
}

@media (max-width: 540px) {
  .moti-beta-notice {
    right: 14px;
    bottom: 14px;
  }
}

/* Beta 1.1.8: closer visual match to the supplied dashboard mockups. */
body {
  font-family: "Nunito Sans", "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  background:
    radial-gradient(circle at 17% 14%, rgba(62, 123, 255, 0.14), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(79, 140, 255, 0.06), transparent 28%),
    linear-gradient(90deg, rgba(62, 123, 255, 0.06), rgba(255, 255, 255, 0.9) 48%, rgba(79, 140, 255, 0.04)),
    #fbfcff;
}

h1,
h2,
h3,
.platform-header h2,
.path-heading h3 {
  font-family: "Manrope", "Nunito Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.moti-background {
  opacity: 0.72;
}

.blueprint-grid {
  background-size: 34px 34px;
  opacity: 0.58;
}

.blueprint-circle {
  border-color: rgba(62, 123, 255, 0.11);
}

.dev-day-button {
  min-height: 34px;
  padding: 7px 18px;
  border-width: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #4f8cff, #4f8cff);
  box-shadow: 0 5px 0 rgba(7, 7, 7, 0.86), 0 14px 34px rgba(79, 140, 255, 0.18);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.brand-link {
  min-height: 38px;
  padding: 7px 20px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(39, 72, 142, 0.1);
}

.brand-link span {
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
  font-size: 0.83rem;
  font-weight: 900;
}

.brand-link img {
  width: 25px;
  height: 25px;
}

.platform-header,
.platform-card {
  border: 1px solid rgba(45, 63, 92, 0.06);
  background:
    radial-gradient(circle at 90% 0%, rgba(79, 140, 255, 0.08), transparent 26%),
    radial-gradient(circle at 78% 100%, rgba(62, 123, 255, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 62px rgba(35, 59, 116, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.platform-header {
  overflow: hidden;
  border-radius: 22px;
}

.platform-header::before {
  border-color: rgba(62, 123, 255, 0.085);
}

.platform-header::after {
  background:
    radial-gradient(circle at 78% 34%, rgba(181, 101, 255, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(79, 140, 255, 0.16), rgba(62, 123, 255, 0.12));
  filter: blur(0.2px);
}

.platform-header h2 {
  color: #0a1020;
}

.platform-header h2 span {
  color: var(--red);
  font-family: "Nunito Sans", "Manrope", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.platform-header h2::after {
  width: 44px;
  height: 3px;
  margin-top: 18px;
}

.platform-streak-indicator,
.weekly-streak-button,
.week-day {
  border: 1px solid rgba(45, 63, 92, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(35, 59, 116, 0.09);
}

.platform-streak-indicator {
  color: #0a1020;
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
  font-weight: 900;
}

.platform-streak-flame {
  color: var(--red);
  background: rgba(79, 140, 255, 0.08);
  box-shadow: none;
}

.week-day {
  color: #657389;
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
  font-weight: 900;
}

.week-day.is-done {
  border-color: rgba(7, 7, 7, 0.14);
  background: var(--blue);
  box-shadow: 0 5px 0 rgba(7, 7, 7, 0.82), 0 12px 30px rgba(62, 123, 255, 0.18);
}

.platform-nav {
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.78));
}

.platform-nav button {
  color: #647185;
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
  font-weight: 900;
}

.platform-nav button::before {
  background: rgba(79, 140, 255, 0.08);
}

.platform-nav button.active {
  color: var(--red);
  background: rgba(79, 140, 255, 0.08);
}

.platform-nav button.active::before {
  background: linear-gradient(180deg, #5f9bff, #3e7bff);
}

.platform-nav button.active > span:not(.nav-icon) {
  color: #fff;
}

.nav-icon {
  width: 29px;
  height: 29px;
  border: 0;
  color: #647185;
  background: transparent;
}

.platform-nav button.active .nav-icon {
  color: var(--red);
  background: #fff;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.35;
}

.path-panel {
  background:
    radial-gradient(circle at 14% 94%, rgba(79, 140, 255, 0.055), transparent 30%),
    radial-gradient(circle at 72% 40%, rgba(62, 123, 255, 0.04), transparent 34%),
    rgba(255, 255, 255, 0.9);
}

.path-heading h3 {
  color: #0a1020;
  letter-spacing: -0.04em;
}

.quote-of-day {
  border: 1px solid rgba(45, 63, 92, 0.07);
  background:
    radial-gradient(circle at 94% 12%, rgba(79, 140, 255, 0.08), transparent 26%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(35, 59, 116, 0.1);
}

.quote-of-day-label strong {
  color: var(--blue-dark);
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.quote-of-day-label span {
  background: rgba(116, 75, 255, 0.12);
}

.quote-of-day-label span::before,
.quote-of-day-label span::after {
  background: #7b57ff;
}

.quote-of-day blockquote {
  color: #111827;
  font-family: "Nunito Sans", "Manrope", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.012em;
}

.path-curve-shadow {
  stroke: rgba(123, 87, 255, 0.14);
}

.path-curve-line {
  stroke-width: 3;
}

.path-node {
  border: 0;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 15px 34px rgba(35, 59, 116, 0.1), 0 0 0 12px rgba(255, 255, 255, 0.66);
}

.path-node-core {
  border-width: 0;
  background: #f4f1fb;
  box-shadow: 0 0 0 7px rgba(79, 140, 255, 0.04), 0 8px 20px rgba(35, 59, 116, 0.11);
}

.path-node.is-current .path-node-core {
  border: 3px solid rgba(255, 255, 255, 0.86);
  background: radial-gradient(circle at 32% 25%, #9bc6ff, var(--red) 62%, #2f73ff);
  box-shadow: 0 0 0 7px rgba(79, 140, 255, 0.18), 0 18px 34px rgba(79, 140, 255, 0.24);
}

.path-node.is-current {
  box-shadow: none;
}

.path-node.is-complete .path-node-core {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.path-node-label {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(35, 59, 116, 0.12);
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
}

@media (min-width: 961px) {
  .moti-header {
    width: min(1190px, calc(100% - 54px));
    margin-bottom: 12px;
  }

  .moti-shell {
    padding: 8px 28px 72px;
  }

  .moti-platform {
    width: min(1190px, 100%);
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 42px;
  }

  .platform-nav {
    width: 120px;
    min-height: calc(100vh - 120px);
    padding: 118px 16px 22px;
    gap: 25px;
  }

  .platform-nav::before {
    top: 32px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background:
      url("../assets/voron-logo.png") center / 36px 36px no-repeat,
      #fff;
    box-shadow: 0 18px 40px rgba(79, 140, 255, 0.14);
  }

  .platform-nav button {
    min-height: 48px;
    gap: 10px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 0.72rem;
  }

  .platform-nav button.active {
    box-shadow: 4px 6px 0 rgba(7, 7, 7, 0.88), 0 14px 30px rgba(79, 140, 255, 0.12);
  }

  .platform-header {
    min-height: 270px;
    padding: 58px 66px;
    border-radius: 23px;
    box-shadow: 0 24px 64px rgba(35, 59, 116, 0.1);
  }

  .platform-header::before {
    width: 470px;
    height: 470px;
    right: 136px;
    top: -254px;
    border-width: 34px;
  }

  .platform-header::after {
    width: 270px;
    height: 72px;
    right: 120px;
    bottom: 38px;
  }

  .platform-header h2 {
    max-width: 330px;
    font-size: clamp(4.15rem, 5.55vw, 5.45rem);
  }

  .platform-header h2 span {
    margin-bottom: 10px;
    font-size: 1.02rem;
  }

  .platform-header-actions {
    gap: 14px;
  }

  .platform-streak-indicator {
    min-height: 64px;
    padding: 12px 16px;
    border-radius: 16px;
  }

  .weekly-streak-button {
    min-width: 390px;
    min-height: 64px;
    padding: 10px 18px;
    border-radius: 16px;
  }

  .weekly-streak-button .week-day {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .path-panel {
    min-height: 520px;
    padding: 54px 66px 48px;
    border-radius: 23px;
  }

  .path-heading h3 {
    font-size: clamp(2.8rem, 3.25vw, 3.45rem);
  }

  .quote-of-day {
    width: calc(100% - 58px);
    min-height: 100px;
    margin: 14px auto 0;
    padding: 22px 30px;
  }

  .path-track {
    width: min(560px, 72%);
    min-height: 300px;
    margin-top: 24px;
  }

  .path-node {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 960px) {
  .platform-header,
  .platform-card {
    box-shadow: 0 18px 44px rgba(35, 59, 116, 0.1);
  }

  .platform-nav {
    box-shadow: 0 18px 44px rgba(35, 59, 116, 0.11);
  }
}

/* Beta 1.1.9: remove the old heavy black offset shadows from Moti. */
.platform-header,
.platform-card,
.platform-nav,
.platform-nav button.active,
.platform-streak-indicator,
.weekly-streak-button,
.week-day,
.path-node,
.path-node-core,
.path-node-label,
.quote-of-day,
.brand-link,
.dev-day-button,
.moti-card,
.questionnaire-card,
.calendar-card,
.post-item,
.community-form,
.profile-badge,
.profile-stats div,
.session-player,
.session-ai-chat,
.session-ai-message,
.session-ai-message.is-user,
.session-ai-thinking-bubble,
.session-answer-card,
.session-tip-card,
.platform-primary,
.platform-secondary,
.text-button {
  box-shadow: none !important;
}

.platform-header,
.platform-card,
.platform-nav,
.quote-of-day,
.weekly-streak-button,
.platform-streak-indicator,
.brand-link {
  box-shadow: 0 18px 48px rgba(35, 59, 116, 0.08) !important;
}

.path-node {
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.7), 0 14px 30px rgba(35, 59, 116, 0.08) !important;
}

.path-node.is-current .path-node-core {
  box-shadow: 0 0 0 7px rgba(79, 140, 255, 0.16), 0 14px 30px rgba(79, 140, 255, 0.2) !important;
}

.week-day.is-done {
  box-shadow: 0 10px 22px rgba(62, 123, 255, 0.16) !important;
}

.dev-day-button {
  box-shadow: 0 12px 28px rgba(79, 140, 255, 0.16) !important;
}

/* Beta 1.2.0: mobile navigation belongs at the bottom like a native app bar. */
@media (max-width: 960px) {
  .moti-platform {
    padding-bottom: 86px;
  }

  .platform-nav {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    top: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    z-index: 60;
    width: auto !important;
    max-width: none;
    margin: 0;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(35, 59, 116, 0.14) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

/* Beta 1.2.1: softer full-screen session chat layout. */
.session-modal {
  background:
    radial-gradient(circle at 12% 20%, rgba(62, 123, 255, 0.11), transparent 32%),
    radial-gradient(circle at 95% 20%, rgba(79, 140, 255, 0.07), transparent 30%),
    rgba(250, 252, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.session-player {
  align-content: center;
  justify-items: center;
  width: min(1120px, calc(100vw - 72px));
  min-height: min(86vh, 820px);
  padding: clamp(54px, 7vw, 92px) clamp(34px, 7vw, 106px);
  border: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 95% 8%, rgba(79, 140, 255, 0.06), transparent 28%),
    radial-gradient(circle at 4% 12%, rgba(62, 123, 255, 0.055), transparent 30%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 90px rgba(35, 59, 116, 0.1) !important;
}

.session-player > .share-close {
  top: 18px;
  right: 18px;
  border: 1px solid rgba(45, 63, 92, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(35, 59, 116, 0.09) !important;
}

.session-progress {
  width: min(860px, 100%);
  height: 8px;
  margin: 0 auto 22px;
  border: 0;
  background: #e6ebf4;
  box-shadow: inset 0 1px 2px rgba(35, 59, 116, 0.12) !important;
}

.session-steps {
  width: min(880px, 100%);
  justify-items: center;
}

.session-step {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.session-step.is-ai {
  justify-items: center;
}

.session-ai-chat {
  width: min(860px, 100%);
  min-height: 410px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(45, 63, 92, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 8%, rgba(79, 140, 255, 0.095), transparent 30%),
    radial-gradient(circle at 8% 10%, rgba(62, 123, 255, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 64px rgba(35, 59, 116, 0.1) !important;
}

.session-ai-chat-head {
  min-height: 56px;
}

.session-ai-badge {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 16px 36px rgba(62, 123, 255, 0.16) !important;
}

.session-ai-chat-list {
  max-height: min(40vh, 360px);
  gap: 18px;
  padding: 8px 8px 8px 2px;
}

.session-ai-message {
  max-width: min(72%, 560px);
  padding: 14px 18px;
  border: 1px solid rgba(45, 63, 92, 0.08);
  border-radius: 16px 16px 16px 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(35, 59, 116, 0.08) !important;
  font-family: "Nunito Sans", "Manrope", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 650;
}

.session-ai-message.is-user {
  max-width: min(66%, 520px);
  border: 0;
  border-radius: 16px 16px 8px 16px;
  background: #070707;
  box-shadow: 0 14px 30px rgba(7, 7, 7, 0.13) !important;
}

.session-ai-message.is-error {
  max-width: min(78%, 620px);
  border-color: rgba(79, 140, 255, 0.22);
  color: #7d1515;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.1), rgba(255, 255, 255, 0.94));
  box-shadow: 0 12px 30px rgba(79, 140, 255, 0.08) !important;
}

.session-memory-chip-inline {
  margin-left: 0;
}

.session-ai-quick-replies {
  justify-content: flex-start;
  gap: 14px;
  margin-top: 4px;
}

.session-ai-quick-replies button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(45, 63, 92, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(35, 59, 116, 0.08) !important;
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
  font-size: 0.88rem;
}

.session-ai-reply {
  gap: 14px;
  margin-top: 18px;
}

.session-ai-reply input {
  height: 60px;
  padding: 0 22px;
  border: 1px solid rgba(45, 63, 92, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(35, 59, 116, 0.07) !important;
  font-weight: 750;
}

.session-ai-send {
  min-height: 60px;
  min-width: 138px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f8cff, var(--red));
  box-shadow: 0 16px 34px rgba(79, 140, 255, 0.2) !important;
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
}

.session-actions {
  justify-content: center;
  width: min(420px, 100%);
  margin-top: 26px;
}

.session-actions .platform-primary {
  min-height: 72px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #55d600, #2fc400);
  box-shadow: 0 18px 40px rgba(55, 205, 0, 0.22) !important;
}

.session-ai-thinking-bubble {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  max-width: 64px;
  max-height: 64px;
  border: 1px solid rgba(45, 63, 92, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(35, 59, 116, 0.08) !important;
}

@media (max-width: 720px) {
  .quote-of-day {
    grid-template-columns: 98px 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 18px !important;
    row-gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 158px !important;
    margin: 16px 0 0 !important;
    padding: 24px 22px !important;
    border-radius: 34px !important;
  }

  .quote-of-day-label {
    display: contents !important;
  }

  .quote-of-day-label span {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 82px !important;
    height: 82px !important;
    border-radius: 28px !important;
    background: linear-gradient(145deg, rgba(62, 123, 255, 0.12), rgba(123, 87, 255, 0.14)) !important;
    align-self: center !important;
    justify-self: center !important;
  }

  .quote-of-day-label span::before,
  .quote-of-day-label span::after {
    bottom: 22px !important;
    width: 28px !important;
    height: 30px !important;
    background: #5f7dff !important;
  }

  .quote-of-day-label span::before {
    left: 14px !important;
  }

  .quote-of-day-label span::after {
    right: 14px !important;
  }

  .quote-of-day-label strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    color: #4776ff !important;
    font-size: clamp(1.05rem, 5vw, 1.35rem) !important;
    letter-spacing: 0.04em !important;
    line-height: 1.05 !important;
  }

  .quote-of-day blockquote {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    font-size: clamp(1.45rem, 7vw, 2rem) !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  .session-player {
    width: min(420px, calc(100vw - 28px));
    min-height: calc(100svh - 28px);
    padding: 58px 16px 28px;
    border-radius: 24px;
  }

  .session-progress {
    margin-bottom: 18px;
  }

  .session-ai-chat {
    min-height: 450px;
    padding: 18px;
    border-radius: 24px;
  }

  .session-ai-chat-list {
    max-height: min(54vh, 500px);
    padding-right: 4px;
  }

  .session-ai-message,
  .session-ai-message.is-user {
    max-width: 86%;
  }

  .session-ai-reply {
    grid-template-columns: 1fr;
  }

  .session-ai-reply .ai-model-picker,
  .session-ai-reply .ai-model-toggle,
  .session-ai-reply .ai-model-menu {
    width: 100%;
  }

  .session-ai-send {
    width: 100%;
  }
}

/* Beta 1.6.1: keep the logged-in welcome card content visible above decoration. */
.platform-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 224px;
  gap: 28px;
}

.platform-header > div,
.platform-header-actions {
  position: relative;
  z-index: 2;
}

.platform-header h2 {
  display: block;
  visibility: visible;
  opacity: 1;
  margin: 0;
  color: #0a1020;
}

.platform-header h2 span {
  display: block;
  margin: 0 0 8px;
  color: var(--red);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 700;
  line-height: 1.1;
}

.platform-header-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: min(500px, 48vw);
}

@media (max-width: 760px) {
  .platform-header {
    min-height: 210px;
    align-items: flex-start;
    flex-direction: column;
  }

  .platform-header-actions {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }
}

.session-ai-message-row .session-ai-feedback {
  align-self: flex-start;
  width: auto;
  margin: -2px 0 8px 10px;
}

.session-ai-feedback button {
  width: auto !important;
  min-width: 34px;
  height: 30px !important;
  padding: 0 8px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0;
  white-space: nowrap;
}

.session-ai-feedback .ui-icon,
.session-ai-feedback svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 620px) {
  .session-ai-message-row .session-ai-feedback {
    margin-left: 4px;
  }

  .session-ai-feedback button {
    min-width: 34px;
    padding: 0 8px !important;
  }
}

/* Beta 1.4.3: soft Moti-style confirmation dialogs. */
.moti-confirm {
  background:
    radial-gradient(circle at 18% 22%, rgba(62, 123, 255, 0.12), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(79, 140, 255, 0.1), transparent 34%),
    rgba(248, 250, 255, 0.72) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.moti-confirm-card {
  width: min(560px, calc(100vw - 34px)) !important;
  padding: clamp(28px, 5vw, 46px) !important;
  border: 1px solid rgba(45, 63, 92, 0.1) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 94% 10%, rgba(79, 140, 255, 0.12), transparent 32%),
    radial-gradient(circle at 7% 10%, rgba(62, 123, 255, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 34px 90px rgba(35, 59, 116, 0.14) !important;
}

.moti-confirm-card .eyebrow:empty {
  display: none !important;
}

.moti-confirm-card h3 {
  margin-bottom: 10px !important;
  color: #070707 !important;
  font-family: "Nunito Sans", "Manrope", Inter, sans-serif !important;
  font-size: clamp(2rem, 5vw, 2.7rem) !important;
  font-weight: 950 !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
}

.moti-confirm-card p:not(.eyebrow) {
  color: #667389 !important;
  font-size: 1rem !important;
  font-weight: 760 !important;
  line-height: 1.45 !important;
}

.moti-confirm-actions {
  gap: 14px !important;
  margin-top: 26px !important;
}

.moti-confirm-actions .platform-secondary,
.moti-confirm-actions .platform-primary {
  min-height: 58px !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.moti-confirm-actions .platform-secondary {
  border: 1px solid rgba(45, 63, 92, 0.12) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #070707 !important;
}

.moti-confirm-actions .platform-primary {
  border: 0 !important;
  background: linear-gradient(135deg, #4f8cff, #4f8cff) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(79, 140, 255, 0.18) !important;
}

.moti-safety-card {
  border-top: 5px solid #4f8cff !important;
}

.moti-safety-card h3 {
  font-size: clamp(2.4rem, 7vw, 4rem) !important;
}

.moti-safety-card p {
  max-width: 48ch;
}

.moti-safety-actions {
  grid-template-columns: 1fr;
}

.moti-safety-actions a,
.moti-safety-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.moti-safety-actions [data-safety-hotline] {
  background: linear-gradient(135deg, #4f8cff, #2f73ff) !important;
}

.moti-safety-actions [data-safety-emergency] {
  border-color: rgba(255, 96, 96, 0.35) !important;
  color: #d71920 !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.session-ai-message-row.is-safety,
.memory-chat-message-row.is-safety {
  justify-self: stretch;
  width: min(680px, 100%);
  max-width: 100%;
}

.moti-inline-safety-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(79, 140, 255, 0.24);
  border-top: 5px solid #4f8cff;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 8%, rgba(79, 140, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  box-shadow: 0 22px 54px rgba(38, 72, 128, 0.12);
}

.moti-inline-safety-card h3 {
  margin: 0;
  color: #080b12;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.moti-inline-safety-card p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
}

.moti-inline-safety-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.moti-inline-safety-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
}

.moti-inline-safety-actions .platform-primary {
  background: linear-gradient(135deg, #4f8cff, #2f73ff) !important;
  color: #fff !important;
}

.moti-inline-safety-actions .platform-secondary {
  border: 1px solid rgba(255, 96, 96, 0.35) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #d71920 !important;
}

.moti-limit-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100vw - 28px));
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(79, 140, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(79, 140, 255, 0.14), transparent 34%),
    radial-gradient(circle at 6% 0%, rgba(62, 123, 255, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(35, 59, 116, 0.16);
  transform: translate(-50%, -130%);
  animation: motiLimitToastIn 260ms cubic-bezier(0.2, 0.85, 0.22, 1.08) forwards;
}

.moti-limit-toast-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.moti-limit-toast-content strong {
  color: #070707;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.1;
}

.moti-limit-toast-content span {
  color: #667389;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
}

.moti-limit-toast.is-leaving {
  animation: motiLimitToastOut 220ms ease forwards;
}

@keyframes motiLimitToastIn {
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes motiLimitToastOut {
  to {
    opacity: 0;
    transform: translate(-50%, -70%);
  }
}

/* Beta 1.3.7: final sidebar override must stay at EOF. */
@media (min-width: 901px) {
  body {
    --moti-sidebar-width: 132px;
    --moti-content-gap: 28px;
  }

  .moti-shell {
    width: min(1180px, calc(100vw - var(--moti-sidebar-width) - 72px)) !important;
    margin-left: calc(var(--moti-sidebar-width) + var(--moti-content-gap)) !important;
    margin-right: auto !important;
  }

  .moti-platform {
    display: block !important;
  }

  .platform-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 45 !important;
    width: var(--moti-sidebar-width) !important;
    height: 100svh !important;
    min-height: 100svh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 28px 10px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.9)) !important;
    box-shadow: 14px 0 54px rgba(42, 64, 108, 0.055) !important;
    overflow: hidden !important;
  }

  .platform-nav::before,
  .platform-nav::after {
    display: none !important;
  }

  .platform-nav-avatar {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    width: 86px !important;
    height: 86px !important;
    margin: 0 auto 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 14px 38px rgba(78, 96, 132, 0.12), inset 0 0 0 4px rgba(255, 255, 255, 0.7) !important;
  }

  .platform-nav-avatar span {
    width: 74px !important;
    height: 74px !important;
    border-radius: 50% !important;
    background:
      radial-gradient(circle at 50% 34%, #cfd3db 0 13%, transparent 14%),
      radial-gradient(ellipse at 50% 78%, #c8ccd4 0 34%, transparent 35%),
      #f4f6fb !important;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.88) !important;
    color: transparent !important;
  }

  .platform-nav-avatar span.has-image {
    background-size: cover !important;
    background-position: center !important;
  }

  .platform-nav button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 13px !important;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #657389 !important;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-align: left !important;
    overflow: visible !important;
  }

  .platform-nav button > span:not(.nav-icon) {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: inherit !important;
  }

  .platform-nav .nav-icon {
    width: 22px !important;
    height: 22px !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #66758b !important;
  }

  .platform-nav .nav-icon svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .platform-nav button.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(79, 140, 255, 0.98), rgba(79, 140, 255, 0.9) 42%, rgba(232, 242, 255, 0.82)) !important;
    box-shadow: 0 14px 28px rgba(79, 140, 255, 0.16) !important;
  }

  .platform-nav button.active .nav-icon {
    width: 30px !important;
    height: 30px !important;
    margin-left: -5px !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: #4f8cff !important;
    box-shadow: 0 9px 22px rgba(79, 140, 255, 0.26) !important;
  }

  .platform-nav button.active .nav-icon svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #fff !important;
  }

  .platform-nav button.active > span:not(.nav-icon) {
    color: #fff !important;
    font-size: 0.76rem !important;
  }

  .platform-nav .platform-nav-logout {
    margin: auto auto 0 !important;
    width: 74px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    place-items: center !important;
    border: 1px solid rgba(101, 115, 137, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 30px rgba(43, 64, 114, 0.075) !important;
  }

  .platform-nav .platform-nav-logout .nav-icon {
    color: var(--red) !important;
  }

  .platform-nav .platform-nav-logout .nav-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
}

/* Beta 1.3.2: sidebar matched to the cleaner Moti navigation reference. */
@media (min-width: 901px) {
  .moti-platform {
    grid-template-columns: 142px minmax(0, 1fr);
    column-gap: 28px;
  }

  .platform-nav {
    position: sticky;
    top: 34px;
    align-self: start;
    min-height: calc(100vh - 68px);
    width: 142px;
    padding: 28px 14px 22px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 250, 0.82)),
      rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 80px rgba(43, 64, 114, 0.08) !important;
    overflow: hidden;
  }

  .platform-nav::before,
  .platform-nav::after {
    display: none;
  }

  .platform-nav-avatar {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 44px rgba(70, 93, 133, 0.11);
  }

  .platform-nav-avatar span {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 32%, #cfd3db 0 13%, transparent 14%),
      radial-gradient(ellipse at 50% 78%, #c7cbd3 0 33%, transparent 34%),
      #f6f8fc;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.86);
    color: transparent;
  }

  .platform-nav-avatar span.has-image {
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.9);
  }

  .platform-nav button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none !important;
    color: #657389;
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
    text-align: left;
    overflow: visible;
  }

  .platform-nav button > span:not(.nav-icon) {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .platform-nav .nav-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    color: #66758b;
  }

  .platform-nav .nav-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .platform-nav button.active {
    color: #fff;
    background: linear-gradient(135deg, #4f8cff, #76aaff);
    box-shadow: 0 14px 32px rgba(79, 140, 255, 0.2) !important;
  }

  .platform-nav button.active .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #4f8cff;
    background: #fff;
  }

  .platform-nav button.active > span:not(.nav-icon) {
    color: #fff;
  }

  .platform-nav button:hover,
  .platform-nav button:focus-visible {
    transform: translateX(2px);
    outline: none;
  }

  .platform-nav .platform-nav-logout {
    margin: auto auto 0;
    width: 74px;
    height: 62px;
    min-height: 62px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    border: 1px solid rgba(101, 115, 137, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(43, 64, 114, 0.08) !important;
  }

  .platform-nav .platform-nav-logout .nav-icon {
    color: var(--red);
  }

  .platform-nav .platform-nav-logout .nav-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.1;
  }
}

@media (max-width: 900px) {
  .platform-nav .platform-nav-avatar,
  .platform-nav .platform-nav-logout {
    display: none;
  }
}

/* Beta 1.3.3: cleaner streak celebration card. */
.streak-burst {
  background:
    radial-gradient(circle at 50% 46%, rgba(79, 140, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.7), rgba(255, 255, 255, 0.96) 42%, rgba(255, 239, 242, 0.72));
}

.streak-burst-card {
  width: min(920px, calc(100vw - 44px));
  min-height: min(720px, calc(100svh - 44px));
  padding: clamp(44px, 8vw, 84px) clamp(28px, 7vw, 80px);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 96% 2%, rgba(79, 140, 255, 0.3), rgba(106, 88, 255, 0.16) 22%, transparent 23%),
    radial-gradient(ellipse at 1% 91%, rgba(112, 88, 255, 0.2), rgba(79, 140, 255, 0.09) 24%, transparent 25%),
    repeating-radial-gradient(ellipse at 8% 8%, rgba(83, 100, 138, 0.045) 0 1px, transparent 1px 10px),
    repeating-radial-gradient(ellipse at 92% 70%, rgba(83, 100, 138, 0.035) 0 1px, transparent 1px 11px),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(37, 55, 95, 0.1);
}

.streak-burst .eyebrow {
  display: none;
}

.streak-burst h2 {
  margin-top: 18px;
  color: #101722;
  font-size: clamp(6rem, 16vw, 9rem);
  line-height: 0.82;
  text-shadow: 0 18px 34px rgba(17, 23, 34, 0.08);
}

.burst-flame {
  width: clamp(148px, 18vw, 210px);
  height: clamp(148px, 18vw, 210px);
  margin-bottom: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 140, 255, 0.12), transparent 44%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.82), transparent 34%);
  filter: drop-shadow(0 22px 30px rgba(79, 140, 255, 0.18));
}

.burst-flame::before {
  inset: 14px;
  border: 2px solid rgba(79, 140, 255, 0.1);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(79, 140, 255, 0.14) 49% 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, transparent 0 68%, rgba(79, 140, 255, 0.12) 69% 70%, transparent 71%);
  transform: none;
}

.burst-flame::after {
  left: auto;
  right: 18%;
  bottom: 37%;
  width: 10px;
  height: 10px;
  background: var(--red);
  box-shadow: none;
}

.burst-flame svg {
  width: 42%;
  height: 42%;
}

.burst-days {
  position: relative;
  margin-top: 12px;
  color: var(--red);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  letter-spacing: 0.04em;
}

.burst-days::before,
.burst-days::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(44px, 7vw, 70px);
  height: 2px;
  background: var(--red);
}

.burst-days::before {
  right: calc(100% + 24px);
}

.burst-days::after {
  left: calc(100% + 24px);
}

.streak-burst-card .platform-primary {
  margin-top: 22px;
  min-width: 230px;
  min-height: 66px;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #4f8cff, #4f8cff);
  box-shadow: 0 18px 34px rgba(79, 140, 255, 0.28) !important;
  font-size: 1.25rem;
}

.streak-burst-card .platform-primary::after {
  content: "->";
  margin-left: 18px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .streak-burst-card {
    width: calc(100vw - 28px);
    min-height: calc(100svh - 28px);
    border-radius: 24px;
  }

  .burst-days::before,
  .burst-days::after {
    width: 34px;
  }
}

/* Beta 1.2.8: AI fallback is visibly an error, not a fake Moti reply. */
.session-ai-message.is-error {
  max-width: min(78%, 620px);
  border: 1px solid rgba(79, 140, 255, 0.24);
  border-radius: 16px;
  color: #7d1515;
  background:
    linear-gradient(135deg, rgba(79, 140, 255, 0.1), rgba(255, 255, 255, 0.95));
  box-shadow: 0 12px 30px rgba(79, 140, 255, 0.08) !important;
}

/* Beta 1.2.5: readable desktop sidebar with the user's avatar at the top. */
.platform-nav-avatar {
  display: none;
}

.platform-nav-avatar span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(135deg, var(--blue), var(--red));
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 40px rgba(39, 72, 142, 0.12);
  font-weight: 950;
}

.platform-nav-avatar span.has-image {
  color: transparent;
}

@media (min-width: 961px) {
  .moti-platform {
    grid-template-columns: 210px minmax(0, 1fr);
    column-gap: 32px;
  }

  .platform-nav {
    width: 210px;
    min-height: calc(100vh - 44px);
    padding: 28px 18px 24px;
    gap: 14px;
    overflow: visible;
  }

  .platform-nav::before {
    display: none;
  }

  .platform-nav-avatar {
    display: grid;
    place-items: center;
    margin: 0 0 18px;
  }

  .platform-nav button {
    width: 100%;
    min-height: 54px;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 14px;
    overflow: visible;
  }

  .platform-nav button > span:not(.nav-icon) {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .platform-nav button.active {
    padding-right: 16px;
  }
}

/* Beta 1.2.3: give the desktop sidebar enough room for real labels. */
@media (min-width: 961px) {
  .moti-platform {
    grid-template-columns: 172px minmax(0, 1fr);
    column-gap: 34px;
  }

  .platform-nav {
    width: 172px;
    padding: 124px 20px 26px;
    gap: 16px;
    overflow: visible;
  }

  .platform-nav button {
    width: 100%;
    gap: 12px;
    padding: 0 16px;
  }

  .platform-nav button > span:not(.nav-icon) {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Beta 1.1.5: softer Moti app shell inspired by the clean desktop/mobile mockups. */
.moti-platform {
  width: min(1180px, 100%);
}

.platform-header,
.platform-card {
  border-color: rgba(20, 38, 72, 0.09);
  background:
    radial-gradient(circle at 92% 12%, rgba(79, 140, 255, 0.1), transparent 24%),
    radial-gradient(circle at 8% 96%, rgba(62, 123, 255, 0.11), transparent 30%),
    linear-gradient(rgba(255, 255, 255, 0.965), rgba(255, 255, 255, 0.965)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(22, 39, 66, 0.032) 33px 34px),
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(22, 39, 66, 0.032) 33px 34px);
  box-shadow: 0 22px 68px rgba(39, 72, 142, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.platform-header {
  border-top-width: 0;
  border-radius: 24px;
  box-shadow: 8px 10px 0 rgba(7, 7, 7, 0.86), 0 28px 80px rgba(39, 72, 142, 0.12);
}

.platform-header::before {
  right: 92px;
  top: -230px;
  border-color: rgba(62, 123, 255, 0.1);
}

.platform-header::after {
  right: 92px;
  bottom: 50px;
  width: 260px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 38%, rgba(79, 140, 255, 0.34), transparent 35%),
    linear-gradient(135deg, rgba(79, 140, 255, 0.13), rgba(62, 123, 255, 0.12));
  transform: rotate(-11deg);
}

.platform-header h2 {
  position: relative;
  width: fit-content;
  font-size: clamp(2.65rem, 6vw, 4.95rem);
  line-height: 0.92;
}

.platform-header h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--red);
}

.platform-header-actions {
  gap: 14px;
}

.platform-streak-indicator,
.weekly-streak-button {
  border-color: rgba(20, 38, 72, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(39, 72, 142, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.weekly-streak-button {
  min-width: 306px;
  min-height: 62px;
  border-radius: 18px;
}

.platform-hero-streak {
  min-height: 62px;
  padding: 12px 16px 12px 14px;
  border-radius: 18px;
  cursor: pointer;
}

.platform-hero-streak .platform-streak-flame {
  width: 32px;
  height: 32px;
  border-radius: 13px;
}

.platform-hero-streak.is-waiting .platform-streak-flame {
  color: #7b8798;
  background: rgba(101, 115, 137, 0.1);
}

.platform-nav-voron .nav-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

@media (min-width: 901px) {
  .platform-nav .platform-nav-voron {
    margin-top: auto !important;
    margin-bottom: 8px !important;
    min-height: 50px !important;
    padding: 0 10px !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 8px !important;
    border: 1px solid rgba(20, 38, 72, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 10px 24px rgba(39, 72, 142, 0.06) !important;
  }

  .platform-nav .platform-nav-voron > span:not(.nav-icon) {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    color: #111 !important;
    font-size: 0.72rem !important;
    line-height: 1.12 !important;
  }

  .platform-nav .platform-nav-voron:hover,
  .platform-nav .platform-nav-voron:focus-visible {
    background: rgba(255, 255, 255, 0.92) !important;
    transform: translateY(-1px) !important;
  }
}

.path-panel {
  min-height: 560px;
  border-top-width: 0;
  border-radius: 26px;
  padding: clamp(30px, 4vw, 46px);
  background:
    radial-gradient(circle at 76% 22%, rgba(62, 123, 255, 0.08), transparent 28%),
    radial-gradient(circle at 18% 86%, rgba(79, 140, 255, 0.055), transparent 32%),
    rgba(255, 255, 255, 0.94);
}

.path-heading {
  padding-bottom: 0;
}

.path-heading h3 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.path-heading h3::after {
  content: none;
}

.quote-of-day {
  max-width: none;
  min-height: 104px;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 28px;
  border-color: rgba(20, 38, 72, 0.08);
  border-left: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 98% 4%, rgba(79, 140, 255, 0.1), transparent 30%),
    linear-gradient(120deg, rgba(62, 123, 255, 0.055), rgba(255, 255, 255, 0.92) 38%, rgba(79, 140, 255, 0.05));
  box-shadow: 0 16px 42px rgba(39, 72, 142, 0.1);
}

.quote-of-day-label {
  display: grid;
  place-items: center;
  gap: 0;
}

.quote-of-day-label strong {
  grid-column: 2;
  align-self: center;
}

.quote-of-day-label span {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(62, 123, 255, 0.12);
}

.quote-of-day-label span::before,
.quote-of-day-label span::after {
  bottom: 12px;
  width: 16px;
  height: 18px;
}

.quote-of-day-label span::before {
  left: 8px;
}

.quote-of-day-label span::after {
  right: 8px;
}

.quote-of-day blockquote {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.path-track {
  width: min(620px, 100%);
  min-height: 380px;
}

.path-track::before {
  width: 84%;
  opacity: 0.58;
}

.path-curve-shadow {
  stroke-width: 8;
}

.path-node {
  width: 78px;
  height: 78px;
  border-color: rgba(62, 123, 255, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(39, 72, 142, 0.13), 0 0 0 12px rgba(255, 255, 255, 0.68);
}

.path-node-core {
  width: 56px;
  height: 56px;
  border-width: 2px;
}

@media (min-width: 961px) {
  .moti-shell {
    place-items: start center;
    padding: 30px 32px 70px;
  }

  .moti-platform {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    grid-template-areas:
      "nav header"
      "nav content";
    align-items: start;
    gap: 28px;
  }

  .platform-header {
    grid-area: header;
  }

  .platform-nav {
    grid-area: nav;
    position: sticky;
    top: 24px;
    min-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 122px 14px 18px;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 50% 22%, rgba(79, 140, 255, 0.08), transparent 28%),
      radial-gradient(circle at 50% 92%, rgba(62, 123, 255, 0.12), transparent 32%),
      rgba(255, 255, 255, 0.72);
    box-shadow: 18px 0 54px rgba(39, 72, 142, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .platform-nav::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 24px;
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background:
      url("../voron-logo.png") center / 34px 34px no-repeat,
      rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(79, 140, 255, 0.12);
    transform: translateX(-50%);
  }

  .platform-nav button {
    justify-content: flex-start;
    min-height: 54px;
    padding: 0 12px;
    border-radius: 15px;
    font-size: 0.82rem;
  }

  .platform-nav button::before {
    inset: 0;
    border-radius: 15px;
  }

  .platform-nav button.active {
    border-color: transparent;
    box-shadow: 5px 6px 0 rgba(7, 7, 7, 0.92), 0 18px 38px rgba(79, 140, 255, 0.11);
  }

  .nav-icon {
    width: 32px;
    height: 32px;
  }

  .moti-view.active {
    grid-area: content;
  }

  .path-panel {
    min-height: 600px;
  }
}

/* Beta 1.1.6: closer to the supplied Moti desktop/mobile UI references. */
@media (min-width: 961px) {
  .moti-header {
    position: relative;
    z-index: 12;
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto -8px;
    padding: 10px 0 0;
  }

  .moti-header-tools {
    order: 0;
    min-height: 38px;
  }

  .brand-link {
    order: 1;
    min-width: 210px;
    justify-content: center;
    min-height: 42px;
    padding: 7px 18px;
    border: 0;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 34px rgba(20, 42, 95, 0.1);
  }

  .brand-link img {
    width: 28px;
    height: 28px;
  }

  .moti-shell {
    padding: 18px 30px 80px;
  }

  .moti-platform {
    width: min(1180px, 100%);
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-areas:
      "nav header"
      "nav content";
    column-gap: 42px;
    row-gap: 30px;
  }

  .platform-nav {
    top: 0;
    min-height: calc(100vh - 0px);
    width: 132px;
    padding: 124px 18px 26px;
    gap: 22px;
    overflow: hidden;
    background:
      radial-gradient(circle at 52% 74%, rgba(79, 140, 255, 0.07), transparent 36%),
      radial-gradient(circle at 20% 95%, rgba(62, 123, 255, 0.12), transparent 34%),
      rgba(255, 255, 255, 0.78);
    box-shadow: 28px 0 70px rgba(39, 72, 142, 0.1);
  }

  .platform-nav::before {
    top: 28px;
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background:
      url("../assets/voron-logo.png") center / 35px 35px no-repeat,
      rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(79, 140, 255, 0.13);
  }

  .platform-nav button {
    justify-content: flex-start;
    gap: 12px;
    min-height: 54px;
    padding: 0 13px;
    border-radius: 14px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .platform-nav button.active {
    color: #fff;
    box-shadow: 6px 7px 0 rgba(7, 7, 7, 0.94), 0 18px 36px rgba(79, 140, 255, 0.14);
  }

  .platform-nav button.active .nav-icon {
    color: var(--red);
    background: #fff;
  }

  .platform-header {
    min-height: 320px;
    padding: 62px 64px;
    border-radius: 26px 26px 18px 26px;
    box-shadow: 12px 14px 0 rgba(7, 7, 7, 0.92), 0 34px 90px rgba(39, 72, 142, 0.14);
  }

  .platform-header::before {
    width: 520px;
    height: 520px;
    right: 118px;
    top: -272px;
    border-width: 34px;
  }

  .platform-header::after {
    width: 300px;
    height: 76px;
    right: 108px;
    bottom: 46px;
    opacity: 0.8;
  }

  .platform-header h2 {
    max-width: 410px;
    font-size: clamp(4.2rem, 6.4vw, 6.35rem);
    line-height: 0.9;
  }

  .platform-header h2 span {
    display: block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 1rem;
    line-height: 1;
    font-weight: 760;
  }

  .platform-header-actions {
    align-self: center;
    display: grid;
    grid-template-columns: auto auto;
    gap: 18px;
    max-width: none;
  }

  .platform-streak-indicator {
    min-height: 68px;
    padding: 13px 18px;
    border-radius: 16px;
    font-size: 0.94rem;
  }

  .platform-streak-flame {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .weekly-streak-button {
    min-width: 388px;
    min-height: 76px;
    padding: 14px 18px;
    border-radius: 18px;
  }

  .weekly-streak-button .weekly-streak {
    gap: 10px;
  }

  .weekly-streak-button .week-day {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }

  .path-panel {
    min-height: 640px;
    padding: 62px 64px 46px;
    border-radius: 26px;
  }

  .path-heading h3 {
    font-size: clamp(3.1rem, 4vw, 4.2rem);
  }

  .quote-of-day {
    min-height: 112px;
    margin-top: 10px;
    grid-template-columns: auto auto 1fr;
    justify-content: start;
    gap: 16px;
    padding: 22px 32px;
    border-radius: 18px;
  }

  .quote-of-day-label {
    display: contents;
  }

  .quote-of-day-label span {
    width: 54px;
    height: 54px;
    border-radius: 19px;
  }

  .quote-of-day-label strong {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    color: var(--blue-dark);
  }

  .quote-of-day blockquote {
    align-self: center;
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .path-track {
    width: min(610px, 82%);
    min-height: 360px;
    margin-top: 28px;
  }
}

@media (max-width: 960px) {
  .moti-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 16px 18px 0;
  }

  .moti-header-tools {
    grid-column: 3;
    justify-content: end;
  }

  .dev-day-button {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 0.62rem;
  }

  .header-streak-pill {
    display: none !important;
  }

  .brand-link {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    margin-top: 12px;
    min-height: 38px;
    padding: 7px 15px;
  }

  .brand-link span {
    font-size: 0.78rem;
  }

  .brand-link img {
    width: 24px;
    height: 24px;
  }

  .moti-shell {
    padding: 18px 14px 96px;
  }

  .moti-platform {
    gap: 16px;
  }

  .platform-header {
    padding: 28px 20px 22px;
    border-radius: 22px;
  }

  .platform-header h2 span {
    display: block;
    margin-bottom: 8px;
    color: var(--red);
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 720;
  }

  .platform-header h2::after {
    display: none;
  }

  .platform-header-actions {
    grid-template-columns: minmax(72px, 92px) 1fr;
  }

  .platform-streak-indicator {
    min-height: 60px;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 9px 8px;
    border-radius: 16px;
    text-align: center;
  }

  .platform-streak-flame {
    width: 26px;
    height: 26px;
  }

  .weekly-streak-button {
    min-height: 60px;
    padding: 9px;
  }

  .weekly-streak-button .week-day {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    font-size: 0.76rem;
  }

  .platform-nav {
    position: sticky;
    top: 8px;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 15;
    width: 100%;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(39, 72, 142, 0.13);
  }

  .platform-nav button {
    min-height: 58px;
    font-size: 0.68rem;
  }

  .platform-nav button.active {
    box-shadow: none;
  }

  .nav-icon {
    border-radius: 50%;
  }

  .path-panel {
    padding: 26px 18px 34px;
    border-radius: 22px;
  }

  .path-heading h3 {
    font-size: 1.55rem;
  }

  .quote-of-day {
    grid-template-columns: auto 1fr;
    padding: 18px;
  }

  .quote-of-day-label {
    display: contents;
  }

  .quote-of-day-label span {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .quote-of-day-label strong {
    grid-column: 2;
  }

  .quote-of-day blockquote {
    grid-column: 2;
  }
}

@media (max-width: 960px) {
  .moti-shell {
    padding-top: 20px;
  }

  .moti-platform {
    width: min(720px, 100%);
  }

  .platform-header {
    min-height: 0;
    padding: 28px 22px 24px;
    border-radius: 22px;
    box-shadow: 0 20px 58px rgba(39, 72, 142, 0.12);
  }

  .platform-header::before {
    width: 260px;
    height: 260px;
    right: -46px;
    top: -126px;
    border-width: 24px;
  }

  .platform-header::after {
    width: 118px;
    height: 82px;
    right: 10px;
    top: 16px;
    bottom: auto;
  }

  .platform-header h2 {
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .platform-header-actions {
    display: grid;
    grid-template-columns: minmax(82px, auto) 1fr;
    gap: 12px;
  }

  .platform-streak-indicator {
    justify-content: center;
    border-radius: 16px;
  }

  .weekly-streak-button {
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
  }

  .platform-nav {
    left: 14px;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 10px;
    border-radius: 22px;
  }

  .platform-nav button {
    min-width: 0;
    padding: 5px 2px;
  }

  .platform-card {
    border-radius: 22px;
    box-shadow: 0 18px 52px rgba(39, 72, 142, 0.1);
  }

  .path-panel {
    min-height: 500px;
    padding: 24px 18px 28px;
  }

  .path-heading h3 {
    font-size: 1.55rem;
  }

  .quote-of-day {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 18px;
  }

  .quote-of-day-label {
    display: inline-flex;
    justify-content: flex-start;
  }

  .path-track {
    width: 100%;
  }
}

/* Beta 1.2.2: final session chat polish, kept last so older overrides cannot win. */
.session-modal {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 22%, rgba(62, 123, 255, 0.12), transparent 34%),
    radial-gradient(circle at 94% 20%, rgba(79, 140, 255, 0.08), transparent 31%),
    rgba(250, 252, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.session-player {
  width: min(1120px, calc(100vw - 72px));
  min-height: min(86vh, 820px);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(54px, 7vw, 92px) clamp(34px, 7vw, 106px);
  border: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 95% 8%, rgba(79, 140, 255, 0.06), transparent 28%),
    radial-gradient(circle at 4% 12%, rgba(62, 123, 255, 0.055), transparent 30%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 90px rgba(35, 59, 116, 0.1) !important;
}

.session-player > .share-close {
  top: 18px;
  right: 18px;
  border: 1px solid rgba(45, 63, 92, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(35, 59, 116, 0.09) !important;
}

.session-progress {
  width: min(860px, 100%);
  height: 8px;
  margin: 0 auto 22px;
  border: 0;
  background: #e6ebf4;
  box-shadow: inset 0 1px 2px rgba(35, 59, 116, 0.12) !important;
}

.session-steps {
  width: min(880px, 100%);
  justify-items: center;
}

.session-step {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.session-step.is-ai {
  justify-items: center;
}

.session-ai-chat {
  width: min(860px, 100%);
  min-height: 410px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(45, 63, 92, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 8%, rgba(79, 140, 255, 0.095), transparent 30%),
    radial-gradient(circle at 8% 10%, rgba(62, 123, 255, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 64px rgba(35, 59, 116, 0.1) !important;
}

.session-ai-chat-head {
  min-height: 56px;
}

.session-ai-badge {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 16px 36px rgba(62, 123, 255, 0.16) !important;
}

.session-ai-chat-list {
  max-height: min(40vh, 360px);
  gap: 18px;
  padding: 8px 8px 8px 2px;
}

.session-ai-message {
  max-width: min(72%, 560px);
  padding: 14px 18px;
  border: 1px solid rgba(45, 63, 92, 0.08);
  border-radius: 16px 16px 16px 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(35, 59, 116, 0.08) !important;
  font-family: "Nunito Sans", "Manrope", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 650;
}

.session-ai-message.is-user {
  max-width: min(66%, 520px);
  border: 0;
  border-radius: 16px 16px 8px 16px;
  background: #070707;
  box-shadow: 0 14px 30px rgba(7, 7, 7, 0.13) !important;
}

.session-memory-chip-inline {
  margin-left: 0;
}

.session-ai-quick-replies {
  justify-content: flex-start;
  gap: 14px;
  margin-top: 4px;
}

.session-ai-quick-replies button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(45, 63, 92, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(35, 59, 116, 0.08) !important;
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
  font-size: 0.88rem;
}

.session-ai-reply {
  gap: 14px;
  margin-top: 18px;
}

.session-ai-reply input {
  height: 60px;
  padding: 0 22px;
  border: 1px solid rgba(45, 63, 92, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(35, 59, 116, 0.07) !important;
  font-weight: 750;
}

.session-ai-send {
  min-height: 60px;
  min-width: 138px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f8cff, var(--red));
  box-shadow: 0 16px 34px rgba(79, 140, 255, 0.2) !important;
  font-family: "Manrope", "Nunito Sans", Inter, sans-serif;
}

.session-actions {
  width: min(420px, 100%);
  justify-content: center;
  margin-top: 26px;
}

.session-actions .platform-primary {
  min-height: 72px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #55d600, #2fc400);
  box-shadow: 0 18px 40px rgba(55, 205, 0, 0.22) !important;
}

.session-ai-thinking-bubble {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  max-width: 64px;
  max-height: 64px;
  border: 1px solid rgba(45, 63, 92, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(35, 59, 116, 0.08) !important;
}

@media (max-width: 720px) {
  .session-player {
    width: min(420px, calc(100vw - 28px));
    min-height: calc(100svh - 28px);
    padding: 58px 16px 28px;
    border-radius: 24px;
  }

  .session-progress {
    margin-bottom: 18px;
  }

  .session-ai-chat {
    min-height: 450px;
    padding: 18px;
    border-radius: 24px;
  }

  .session-ai-chat-list {
    max-height: min(54vh, 500px);
    padding-right: 4px;
  }

  .session-ai-message,
  .session-ai-message.is-user {
    max-width: 86%;
  }

  .session-ai-reply {
    grid-template-columns: 1fr;
  }

  .session-ai-send {
    width: 100%;
  }
}

/* Beta 1.6.2: keep the logged-in welcome card readable above its decorative art. */
.platform-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 224px !important;
  gap: 28px !important;
  margin-bottom: 28px !important;
  isolation: isolate;
}

.platform-header::before,
.platform-header::after {
  z-index: 0 !important;
  pointer-events: none;
}

.platform-header > div,
.platform-header-actions {
  position: relative !important;
  z-index: 2 !important;
}

.platform-header h2 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  color: #0a1020 !important;
}

.platform-header h2 span {
  display: block !important;
  margin: 0 0 8px !important;
  color: var(--red) !important;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

.platform-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  min-width: min(500px, 48vw) !important;
}

@media (max-width: 760px) {
  .platform-header {
    min-height: 210px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    margin-bottom: 22px !important;
  }

  .platform-header-actions {
    justify-content: flex-start !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* Beta 1.9.9: keep Community, Stats, Memories, and Profile on the same panel edge system as Sessions. */
.moti-view.platform-card:not(.path-panel) {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(45, 63, 92, 0.1) !important;
  border-top: 1px solid rgba(45, 63, 92, 0.1) !important;
  border-radius: clamp(24px, 2.2vw, 30px) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(62, 123, 255, 0.075), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(79, 140, 255, 0.085), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)) !important;
  box-shadow: 0 24px 64px rgba(35, 59, 116, 0.08) !important;
}

.moti-view.platform-card:not(.path-panel)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 78%, rgba(62, 123, 255, 0.05), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(79, 140, 255, 0.04), transparent 30%);
}

.moti-view.platform-card:not(.path-panel) > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .moti-view.platform-card:not(.path-panel) {
    border-radius: 24px !important;
  }
}

/* Beta 1.10.1: remove the blue top accent bar from Moti page panels. */
.path-panel,
.moti-view.platform-card,
.community-panel,
.stats-panel,
.memories-panel,
.profile-panel {
  border-top: 1px solid rgba(45, 63, 92, 0.1) !important;
}

/* Beta 1.11.6: keep Moti page panels clean without the blue top strip. */
.moti-view.platform-card,
.community-panel,
.stats-panel,
.memories-panel,
.profile-panel,
.feedback-panel {
  border-top: 1px solid rgba(45, 63, 92, 0.1) !important;
}

/* Beta 1.12.1: responsive Moti ad spaces for mobile, tablet, and wide desktop. */
.moti-ad-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0 0;
}

.moti-ad-slot {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  min-height: 96px;
  border: 1px dashed rgba(45, 63, 92, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(247, 250, 255, 0.52)),
    radial-gradient(circle at 18% 22%, rgba(62, 123, 255, 0.08), transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(79, 140, 255, 0.08), transparent 38%);
  box-shadow: 0 18px 50px rgba(42, 64, 112, 0.07);
  color: rgba(91, 106, 130, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.moti-ad-unit {
  display: block;
  width: 100%;
  min-height: 96px;
}

.moti-ad-placeholder {
  position: absolute;
  inset: auto auto 14px 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(45, 63, 92, 0.08);
}

.moti-ad-slot[data-ad-ready="true"] {
  border-style: solid;
}

.moti-ad-slot[data-ad-ready="true"] .moti-ad-placeholder {
  display: none;
}

.moti-ad-slot[data-ad-ready="auto"]::after {
  content: "Auto ads active";
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: rgba(91, 106, 130, 0.5);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 560px) {
  .moti-ad-row {
    margin-top: 14px;
  }

  .moti-ad-slot {
    min-height: 74px;
    border-radius: 18px;
  }

  .moti-ad-unit {
    min-height: 74px;
  }

  .moti-ad-slot:nth-child(n + 2) {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1499px) {
  .moti-ad-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
  }

  .moti-ad-slot {
    aspect-ratio: 1 / 1;
    min-height: 210px;
    border-radius: 28px;
  }

  .moti-ad-unit {
    min-height: 210px;
  }
}

@media (min-width: 1500px) {
  .moti-ad-row {
    position: fixed;
    top: 170px;
    right: clamp(24px, 3.6vw, 72px);
    z-index: 2;
    width: clamp(150px, 10vw, 188px);
    gap: 18px;
    margin: 0;
    pointer-events: none;
  }

  .moti-ad-slot {
    min-height: 0;
    border-radius: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 0.72rem;
  }

  .moti-ad-unit {
    min-height: clamp(150px, 10vw, 188px);
  }
}

/* Beta 1.13.0: keep all seven weekly streak days visible on mobile. */
@media (max-width: 760px) {
  .platform-header-actions {
    display: grid !important;
    grid-template-columns: minmax(72px, 88px) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .weekly-streak-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 10px 8px !important;
    overflow: visible !important;
  }

  .weekly-streak-button .weekly-streak {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: clamp(3px, 1.2vw, 6px) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .weekly-streak-button .week-day {
    width: min(100%, 28px) !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    min-width: 0 !important;
    justify-self: center !important;
    border-radius: 10px !important;
    font-size: clamp(0.68rem, 2.5vw, 0.78rem) !important;
  }
}

@media (max-width: 380px) {
  .platform-header-actions {
    grid-template-columns: minmax(64px, 76px) minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .weekly-streak-button {
    padding-inline: 6px !important;
  }
}

.session-ai-badge.has-buddy {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.session-ai-badge.has-buddy .session-buddy-face {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), transparent 18%),
    color-mix(in srgb, var(--buddy-color) 82%, white) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--buddy-color) 24%, transparent) !important;
}

/* Beta 1.24.4: remove the old hard-shadow / black-outline treatment. */
body *,
body *::before,
body *::after {
  box-shadow: none !important;
}

.moti-card,
.questionnaire-card,
.questionnaire-welcome-card,
.questionnaire-age-card,
.questionnaire-option,
.moti-buddy-card,
.platform-card,
.moti-view.platform-card,
.platform-nav,
.platform-header,
.weekly-streak-button,
.platform-streak-indicator,
.quote-of-day,
.calendar-card,
.profile-badge,
.profile-stats div,
.profile-panel,
.setup-summary,
.setup-summary-pill,
.memory-chat-panel,
.memory-brain-stage,
.memory-detail-card,
.memory-chat-conversation-menu,
.session-player,
.session-panel,
.session-ai-chat,
.session-ai-message,
.session-answer-card,
.session-tip-card,
.community-feed-panel,
.community-post-card,
.community-form,
.feedback-card,
.moti-confirm-card,
.moti-ad-slot {
  border-width: 1px !important;
  border-color: rgba(7, 7, 7, 0.1) !important;
}

.platform-primary,
.questionnaire-submit,
.session-actions .platform-primary,
.memory-chat-form button[type="submit"],
.community-compose-open,
.community-post-submit,
.streak-burst-card .platform-primary {
  border-width: 1px !important;
  border-color: rgba(79, 140, 255, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(135deg, #4f8cff, #76aaff) !important;
  color: #fff !important;
}

.platform-secondary,
.platform-link,
.setup-edit-button,
.questionnaire-back,
.memory-attach-button,
.memory-chat-conversation-toggle,
.memory-detail-delete,
.stats-range-button,
.post-filter,
.session-chip,
.session-answer,
.session-quick-reply,
.text-button {
  border-width: 1px !important;
  border-color: rgba(7, 7, 7, 0.12) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--ink) !important;
}

.questionnaire-option.selected,
.moti-buddy-card.is-selected,
.platform-nav button.active,
.stats-range-button.is-active,
.post-filter.is-active {
  border-color: color-mix(in srgb, var(--blue) 42%, transparent) !important;
  background:
    radial-gradient(circle at 12% 16%, rgba(62, 123, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.94) !important;
}

.platform-primary:hover,
.platform-primary:focus-visible,
.platform-secondary:hover,
.platform-secondary:focus-visible,
.platform-link:hover,
.platform-link:focus-visible,
.setup-edit-button:hover,
.setup-edit-button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(62, 123, 255, 0.14);
}

.session-ai-badge.has-buddy .session-buddy-face {
  box-shadow: none !important;
}

/* Beta 1.25.0: center first-setup card and Voron return button on the same axis. */
.moti-header:has(+ .moti-shell [data-moti-onboarding]:not([hidden])) {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
  padding-inline: 0;
}

.moti-header:has(+ .moti-shell [data-moti-onboarding]:not([hidden])) .brand-link {
  justify-self: center;
}

.moti-shell:has([data-moti-onboarding]:not([hidden])) {
  display: grid;
  justify-items: center;
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
  padding-inline: 0;
}

.moti-shell:has([data-moti-onboarding]:not([hidden])) .moti-questionnaire {
  justify-self: center;
  width: min(680px, 100%);
  margin-inline: auto;
}

@media (max-width: 620px) {
  .moti-header:has(+ .moti-shell [data-moti-onboarding]:not([hidden])),
  .moti-shell:has([data-moti-onboarding]:not([hidden])) {
    width: min(100% - 28px, 430px);
  }

  .moti-shell:has([data-moti-onboarding]:not([hidden])) .moti-questionnaire {
    width: 100%;
  }
}

/* Beta 1.25.3: keep selected setup choices readable. */
.questionnaire-option.selected {
  border-color: rgba(62, 123, 255, 0.48) !important;
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 12% 22%, rgba(62, 123, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(62, 123, 255, 0.13), rgba(255, 255, 255, 0.96) 62%) !important;
}

.questionnaire-option.selected strong {
  color: var(--ink) !important;
}

.questionnaire-option.selected span {
  color: #526176 !important;
}

/* Beta 1.29.1: keep the active community feed filter readable. */
.community-feed-controls::before {
  border-color: rgba(7, 7, 7, 0.08) !important;
  background: #111 !important;
}

.community-feed-controls button.active {
  color: #fff !important;
  background: transparent !important;
}

/* Beta 1.28.8: keep only the session Next button green. */
.session-actions .platform-primary.is-ready {
  border-color: rgba(88, 204, 2, 0.24) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #58cc02, #45b800) !important;
  color: #fff !important;
}

/* Beta 1.28.3: make Premium feel like its own clear entry point. */
.platform-nav button[data-moti-nav="premium"] {
  border-color: rgba(79, 140, 255, 0.18) !important;
  background: linear-gradient(135deg, #4f8cff, #76aaff) !important;
  color: #fff !important;
}

.platform-nav button[data-moti-nav="premium"]::before,
.platform-nav button[data-moti-nav="premium"]::after {
  display: none !important;
}

.platform-nav button[data-moti-nav="premium"] .nav-icon {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(79, 140, 255, 0.24) !important;
  color: #fff !important;
  transform: none !important;
}

.platform-nav button[data-moti-nav="premium"]:hover,
.platform-nav button[data-moti-nav="premium"]:focus-visible,
.platform-nav button[data-moti-nav="premium"].active {
  color: #fff !important;
  background: linear-gradient(135deg, #4f8cff, #76aaff) !important;
  border-color: rgba(79, 140, 255, 0.24) !important;
}

/* Beta 1.30.4: Premium link should look like the normal sidebar tabs. */
@media (min-width: 901px) {
  .platform-nav .platform-nav-link {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 13px !important;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #657389 !important;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-align: left !important;
    text-decoration: none !important;
    overflow: visible !important;
  }

  .platform-nav .platform-nav-link > span:not(.nav-icon) {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: inherit !important;
  }

  .platform-nav .platform-nav-link:hover,
  .platform-nav .platform-nav-link:focus-visible {
    color: #657389 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateX(2px) !important;
    outline: none !important;
  }

  .platform-nav .platform-nav-link .nav-icon {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #66758b !important;
    transform: none !important;
  }

  .platform-nav .platform-nav-link:hover .nav-icon,
  .platform-nav .platform-nav-link:focus-visible .nav-icon {
    color: #66758b !important;
    background: transparent !important;
    transform: none !important;
  }

  .platform-nav .platform-nav-link .nav-icon svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }
}

/* Beta 1.31.8: keep Premium visually identical to the other sidebar tabs. */
@media (min-width: 901px) {
  .platform-nav .platform-nav-link:not(.platform-nav-voron) {
    min-height: 42px !important;
    padding: 0 13px !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 12px !important;
    color: #657389 !important;
    font-size: 0.84rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
  }

  .platform-nav .platform-nav-link:not(.platform-nav-voron) > span:not(.nav-icon) {
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .platform-nav .platform-nav-link:not(.platform-nav-voron) .nav-icon {
    width: 22px !important;
    height: 22px !important;
    color: #66758b !important;
  }

  .platform-nav .platform-nav-link:not(.platform-nav-voron) .nav-icon svg {
    width: 19px !important;
    height: 19px !important;
  }
}

/* Beta 1.32.1: keep Moti blue/white without making every accent blue. */
.platform-nav button.active {
  color: #fff !important;
  border-color: rgba(62, 123, 255, 0.24) !important;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #3e7bff, #76aaff) !important;
  box-shadow: 0 14px 34px rgba(62, 123, 255, 0.22) !important;
  transform: none !important;
}

.platform-nav button.active::before,
.platform-nav button.active::after {
  display: none !important;
}

.platform-nav button.active .nav-icon {
  color: #3e7bff !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 8px 18px rgba(39, 72, 142, 0.12) !important;
  transform: none !important;
}

.platform-nav button.active > span:not(.nav-icon) {
  color: #fff !important;
}

.header-streak-flame {
  color: #ff8a00;
  background: radial-gradient(circle at 50% 76%, #fff0b8, #fff8df 68%);
  box-shadow: 0 0 0 5px rgba(255, 176, 0, 0.14);
}

.burst-flame {
  color: #ff8a00;
  background:
    radial-gradient(circle at 50% 68%, rgba(255, 176, 0, 0.45), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 138, 0, 0.18), transparent 60%);
  filter: drop-shadow(0 26px 34px rgba(255, 138, 0, 0.28));
}

.burst-flame::before {
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 246, 174, 0.62), transparent 22%),
    radial-gradient(circle at 50% 58%, rgba(255, 138, 0, 0.34), transparent 43%),
    radial-gradient(circle at 50% 62%, rgba(255, 176, 0, 0.14), transparent 62%);
}

.burst-flame::after {
  background: #ffb000;
  box-shadow:
    -32px -8px 0 rgba(255, 176, 0, 0.62),
    28px -16px 0 rgba(255, 138, 0, 0.58),
    -14px -42px 0 rgba(255, 176, 0, 0.48),
    22px -54px 0 rgba(255, 138, 0, 0.42),
    0 -70px 0 rgba(255, 176, 0, 0.48);
}

/* Beta 1.38.9: mobile polish pass. */
html,
body {
  overflow-x: hidden;
}

.moti-platform,
.moti-shell,
.platform-card,
.moti-view,
.memory-chat-panel,
.session-player,
.questionnaire-card {
  max-width: 100%;
}

.memory-chat-form,
.session-ai-reply {
  position: relative;
  z-index: 40;
}

.memory-chat-form {
  grid-template-columns: 50px 50px minmax(140px, 1fr) 128px 58px;
}

.memory-chat-form input[name="memory-chat"],
.session-ai-reply input {
  min-width: 0;
}

.memory-chat-selected-image {
  justify-self: stretch;
}

.memory-chat-list,
.session-ai-chat-list,
.community-detail-body,
.community-feed-list,
.memory-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 140, 255, 0.62) rgba(62, 123, 255, 0.08);
}

.memory-chat-list::-webkit-scrollbar,
.session-ai-chat-list::-webkit-scrollbar,
.community-detail-body::-webkit-scrollbar,
.community-feed-list::-webkit-scrollbar,
.memory-list::-webkit-scrollbar {
  width: 10px;
}

.memory-chat-list::-webkit-scrollbar-track,
.session-ai-chat-list::-webkit-scrollbar-track,
.community-detail-body::-webkit-scrollbar-track,
.community-feed-list::-webkit-scrollbar-track,
.memory-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(62, 123, 255, 0.08);
}

.memory-chat-list::-webkit-scrollbar-thumb,
.session-ai-chat-list::-webkit-scrollbar-thumb,
.community-detail-body::-webkit-scrollbar-thumb,
.community-feed-list::-webkit-scrollbar-thumb,
.memory-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: linear-gradient(180deg, #76aaff, #3e7bff);
}

@media (max-width: 760px) {
  .moti-shell {
    width: min(100%, 520px);
    padding-inline: 14px;
  }

  .moti-platform {
    padding-bottom: 24px;
  }

  .platform-header,
  .platform-card,
  .session-player,
  .questionnaire-card,
  .questionnaire-welcome-card,
  .questionnaire-age-card {
    border-radius: 22px !important;
  }

  .platform-header {
    min-height: auto !important;
    padding: 28px 22px !important;
    gap: 18px !important;
  }

  .platform-header h2,
  .memory-chat-heading h3,
  .premium-heading h3,
  .questionnaire-title,
  .session-title,
  .community-heading h3,
  .stats-heading h3,
  .profile-heading h3,
  .feedback-heading h3 {
    font-size: clamp(2.15rem, 11vw, 3.4rem) !important;
    line-height: 0.98 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
  }

  .memory-chat-buddy-switcher,
  .post-filters,
  .stats-range-controls,
  .premium-plan-switch,
  .premium-currency-switch {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .memory-chat-buddy-switcher::-webkit-scrollbar,
  .post-filters::-webkit-scrollbar,
  .stats-range-controls::-webkit-scrollbar,
  .premium-plan-switch::-webkit-scrollbar,
  .premium-currency-switch::-webkit-scrollbar {
    display: none;
  }

  .memory-chat-panel {
    padding: 20px 14px 16px !important;
  }

  .memory-chat-list {
    min-height: 360px;
    max-height: min(58svh, 520px);
    padding: 14px 8px;
  }

  .memory-chat-message,
  .memory-chat-message.is-user,
  .session-ai-message,
  .session-ai-message.is-user {
    max-width: min(88%, 420px) !important;
  }

  .memory-chat-form {
    grid-template-columns: 48px 48px minmax(0, 1fr) 104px 54px;
    gap: 7px;
  }

  .memory-chat-form .ai-model-picker,
  .memory-chat-form > button {
    grid-column: auto !important;
    justify-self: stretch !important;
  }

  .memory-attach-button,
  .memory-chat-conversation-toggle,
  .memory-chat-form input[name="memory-chat"],
  .memory-chat-form > button,
  .ai-model-toggle {
    min-height: 48px;
    border-radius: 15px;
  }

  .memory-attach-button,
  .memory-chat-conversation-toggle {
    width: 48px;
    height: 48px;
  }

  .ai-model-picker,
  .ai-model-toggle,
  .ai-model-menu {
    width: 104px;
    min-width: 104px;
  }

  .ai-model-toggle {
    padding-inline: 10px;
  }

  .memory-chat-form > button {
    width: 54px;
  }

  .session-ai-reply {
    grid-template-columns: minmax(0, 1fr) 104px 58px !important;
    gap: 8px;
  }

  .session-ai-reply .ai-model-picker,
  .session-ai-reply .ai-model-toggle,
  .session-ai-reply .ai-model-menu {
    width: 104px !important;
    min-width: 104px !important;
  }

  .session-ai-send {
    width: 58px !important;
    min-width: 58px !important;
    padding-inline: 0 !important;
  }

  .premium-card,
  .premium-page-card,
  .voron-plus-card {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .premium-price-line,
  .voron-plus-price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .premium-price-line strong,
  .voron-plus-price strong {
    font-size: clamp(3rem, 17vw, 4.8rem) !important;
    line-height: 0.95 !important;
    white-space: nowrap;
  }

  .community-post-actions,
  .community-reply-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .community-post-card,
  .community-detail-card,
  .feedback-card,
  .profile-panel,
  .stats-card,
  .memory-workspace {
    padding-inline: 16px !important;
  }
}

@media (max-width: 520px) {
  .moti-shell {
    padding-inline: 10px;
  }

  .platform-header,
  .platform-card,
  .session-player,
  .questionnaire-card,
  .questionnaire-welcome-card,
  .questionnaire-age-card {
    border-radius: 18px !important;
  }

  .memory-chat-form {
    grid-template-columns: 46px 46px minmax(0, 1fr) 50px;
    gap: 6px;
  }

  .memory-chat-form > button {
    grid-column: auto !important;
    justify-self: stretch !important;
  }

  .memory-chat-form .ai-model-picker {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: stretch !important;
  }

  .memory-chat-form > button[type="submit"] {
    grid-column: 4 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
  }

  .memory-attach-button,
  .memory-chat-conversation-toggle {
    width: 46px;
    height: 46px;
  }

  .memory-chat-form input[name="memory-chat"] {
    padding-inline: 12px;
    font-size: 0.92rem;
  }

  .ai-model-picker,
  .ai-model-toggle,
  .ai-model-menu {
    width: 100%;
    min-width: 0;
  }

  .ai-model-toggle {
    gap: 6px;
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .memory-chat-form > button {
    width: 50px;
  }

  .session-ai-reply {
    grid-template-columns: 1fr 92px 50px !important;
  }

  .session-ai-reply input {
    height: 54px;
    padding-inline: 14px;
  }

  .session-ai-reply .ai-model-picker,
  .session-ai-reply .ai-model-toggle,
  .session-ai-reply .ai-model-menu {
    width: 92px !important;
    min-width: 92px !important;
  }

  .session-ai-send {
    width: 50px !important;
    min-width: 50px !important;
  }

  .memory-chat-selected-image {
    grid-template-columns: 1fr;
  }

  .memory-chat-selected-image-card {
    grid-template-columns: 52px minmax(0, 1fr) 34px;
  }

  .memory-chat-selected-image-card img {
    width: 52px;
    height: 42px;
  }

  .questionnaire-actions,
  .setup-actions,
  .profile-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Beta 1.39.4: cleaner desktop and mobile Moti surfaces. */
:root {
  --moti-surface: rgba(255, 255, 255, 0.94);
  --moti-surface-strong: rgba(255, 255, 255, 0.98);
  --moti-border-soft: rgba(91, 127, 184, 0.18);
  --moti-blue-glow: rgba(62, 123, 255, 0.14);
  --moti-panel-shadow: 0 22px 58px rgba(38, 72, 128, 0.08);
}

body {
  background:
    radial-gradient(circle at 10% 12%, rgba(62, 123, 255, 0.12), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(158, 199, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 48%, #f4f8ff 100%) !important;
}

.moti-background {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.blueprint-grid,
.blueprint-circle,
.blue-dot {
  max-width: 100vw !important;
}

.moti-shell {
  width: min(1180px, calc(100% - 40px));
  gap: clamp(18px, 2.6vw, 34px);
}

.moti-platform {
  gap: clamp(16px, 2.2vw, 28px);
}

.platform-header,
.platform-card,
.moti-view.platform-card,
.session-player,
.questionnaire-card,
.questionnaire-welcome-card,
.questionnaire-age-card,
.memory-chat-panel,
.memory-brain-stage,
.community-post-card,
.community-detail-card,
.profile-panel,
.feedback-card,
.stats-card,
.premium-panel {
  border-color: var(--moti-border-soft) !important;
  background:
    radial-gradient(circle at 8% 10%, rgba(62, 123, 255, 0.08), transparent 28%),
    radial-gradient(circle at 96% 0%, rgba(158, 199, 255, 0.12), transparent 30%),
    linear-gradient(135deg, var(--moti-surface-strong), var(--moti-surface)) !important;
  box-shadow: var(--moti-panel-shadow) !important;
}

.platform-header {
  padding: clamp(26px, 4vw, 48px) !important;
}

.platform-header h2,
.memory-chat-heading h3,
.premium-heading h3,
.community-heading h3,
.stats-heading h3,
.profile-heading h3,
.feedback-heading h3 {
  letter-spacing: 0 !important;
}

.platform-nav {
  border-color: rgba(91, 127, 184, 0.13) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)) !important;
  box-shadow: 14px 0 42px rgba(38, 72, 128, 0.06) !important;
}

.platform-nav button,
.platform-nav .platform-nav-link {
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease !important;
}

.platform-nav button.active {
  min-width: 152px !important;
  color: #fff !important;
  background:
    linear-gradient(90deg, #3e7bff 0%, #6aa7ff 62%, rgba(175, 212, 255, 0.72) 100%) !important;
  border-color: rgba(62, 123, 255, 0.32) !important;
  box-shadow: 0 14px 34px rgba(62, 123, 255, 0.2) !important;
}

.platform-nav button.active > span:not(.nav-icon) {
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.platform-nav button.active .nav-icon {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

.platform-nav button:not(.active):hover,
.platform-nav button:not(.active):focus-visible,
.platform-nav .platform-nav-link:not(.platform-nav-voron):hover,
.platform-nav .platform-nav-link:not(.platform-nav-voron):focus-visible {
  background: rgba(62, 123, 255, 0.07) !important;
  color: #3b4960 !important;
  transform: translateX(2px) !important;
}

.platform-nav .platform-nav-voron {
  border-color: rgba(91, 127, 184, 0.16) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 12px 26px rgba(38, 72, 128, 0.06) !important;
}

.memory-chat-panel {
  padding: clamp(22px, 3vw, 34px) !important;
}

.memory-chat-list,
.session-ai-chat-list {
  border: 1px solid rgba(91, 127, 184, 0.12) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
    repeating-linear-gradient(0deg, rgba(62, 123, 255, 0.035) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(62, 123, 255, 0.035) 0 1px, transparent 1px 32px) !important;
}

.session-ai-chat-list {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.memory-chat-form,
.session-ai-reply {
  border: 1px solid rgba(91, 127, 184, 0.16) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 38px rgba(38, 72, 128, 0.08) !important;
}

.memory-chat-form input[name="memory-chat"],
.session-ai-reply input,
.ai-model-toggle,
.memory-attach-button,
.memory-chat-conversation-toggle {
  border-color: rgba(91, 127, 184, 0.18) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.memory-chat-form input[name="memory-chat"]:focus,
.session-ai-reply input:focus,
.ai-model-toggle:focus-visible {
  border-color: rgba(62, 123, 255, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(62, 123, 255, 0.12) !important;
}

.memory-chat-message:not(.is-user) .memory-chat-bubble,
.session-ai-message:not(.is-user) .session-ai-bubble {
  border-color: rgba(91, 127, 184, 0.16) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 28px rgba(38, 72, 128, 0.06) !important;
}

.memory-chat-message.is-user .memory-chat-bubble,
.session-ai-message.is-user .session-ai-bubble {
  background: #0f1115 !important;
  box-shadow: 0 12px 28px rgba(15, 17, 21, 0.1) !important;
}

.memory-chat-list::-webkit-scrollbar,
.session-ai-chat-list::-webkit-scrollbar,
.community-detail-body::-webkit-scrollbar,
.community-feed-list::-webkit-scrollbar,
.memory-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.memory-chat-list::-webkit-scrollbar-thumb,
.session-ai-chat-list::-webkit-scrollbar-thumb,
.community-detail-body::-webkit-scrollbar-thumb,
.community-feed-list::-webkit-scrollbar-thumb,
.memory-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(62, 123, 255, 0.78), rgba(158, 199, 255, 0.8));
}

.session-tip-card,
.questionnaire-option,
.moti-buddy-card,
.community-post-card,
.stats-card,
.profile-actions > *,
.setup-summary {
  border-color: rgba(91, 127, 184, 0.16) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 30px rgba(38, 72, 128, 0.055) !important;
}

.questionnaire-option.selected,
.moti-buddy-card.is-selected,
.stats-range-button.is-active,
.post-filter.is-active {
  border-color: rgba(62, 123, 255, 0.42) !important;
  background:
    radial-gradient(circle at 8% 14%, rgba(62, 123, 255, 0.13), transparent 38%),
    rgba(255, 255, 255, 0.96) !important;
}

@media (max-width: 900px) {
  .moti-shell {
    width: min(100% - 24px, 760px);
    padding-block: 18px 30px;
  }

  .moti-platform {
    padding-inline: 0;
  }

  .platform-nav {
    border-radius: 0 24px 24px 0 !important;
    padding: 22px 14px !important;
  }

  .platform-nav button,
  .platform-nav .platform-nav-link {
    min-height: 48px !important;
    border-radius: 15px !important;
  }

  .platform-nav button.active {
    min-width: 160px !important;
    background:
      linear-gradient(90deg, #3e7bff 0%, #7fb3ff 100%) !important;
  }

  .platform-nav button.active > span:not(.nav-icon) {
    display: block !important;
    color: #fff !important;
  }

  .platform-header,
  .platform-card,
  .moti-view.platform-card,
  .memory-chat-panel,
  .session-player,
  .questionnaire-card {
    border-radius: 22px !important;
  }
}

@media (max-width: 640px) {
  .blueprint-grid {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
  }

  .blueprint-circle.circle-one {
    left: -120px !important;
    width: 280px !important;
    height: 280px !important;
  }

  .blueprint-circle.circle-two {
    right: 0 !important;
    left: auto !important;
    width: 240px !important;
    height: 240px !important;
  }

  .moti-shell {
    width: min(100% - 16px, 430px);
    gap: 14px;
  }

  .platform-header {
    padding: 24px 18px !important;
  }

  .platform-header h2,
  .memory-chat-heading h3,
  .premium-heading h3,
  .questionnaire-title,
  .session-title,
  .community-heading h3,
  .stats-heading h3,
  .profile-heading h3,
  .feedback-heading h3 {
    font-size: clamp(2rem, 11vw, 3.1rem) !important;
  }

  .memory-chat-panel,
  .platform-card,
  .moti-view.platform-card,
  .session-player,
  .questionnaire-card {
    padding: 16px !important;
  }

  .memory-chat-list,
  .session-ai-chat-list {
    min-height: 330px;
    max-height: min(58svh, 500px);
    padding: 12px 8px !important;
    border-radius: 16px !important;
  }

  .memory-chat-form {
    grid-template-columns: 46px 46px minmax(0, 1fr) 50px !important;
    padding: 8px !important;
    gap: 7px !important;
  }

  .session-ai-reply {
    grid-template-columns: minmax(0, 1fr) 96px 50px !important;
    padding: 8px !important;
    gap: 7px !important;
  }

  .memory-chat-form .ai-model-picker {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  .memory-chat-form input[name="memory-chat"],
  .session-ai-reply input {
    min-height: 50px !important;
  }

  .memory-chat-buddy-switcher {
    width: 100% !important;
    padding: 6px !important;
    border-radius: 18px !important;
  }

  .memory-chat-buddy-option {
    min-height: 46px !important;
    border-radius: 14px !important;
  }

  .path-track {
    overflow: hidden !important;
  }

  .path-node-label,
  .path-node.label-left .path-node-label {
    left: 50% !important;
    right: auto !important;
    top: calc(100% + 8px) !important;
    min-width: 0 !important;
    width: min(150px, calc(100vw - 48px)) !important;
    max-width: min(150px, calc(100vw - 48px)) !important;
    padding: 10px 12px !important;
    transform: translate3d(-50%, -4px, 0) scale(0.96) !important;
  }

  .path-node:hover .path-node-label,
  .path-node:focus-visible .path-node-label,
  .path-node.is-selected .path-node-label {
    transform: translate3d(-50%, 0, 0) scale(1) !important;
  }

  .path-node-label strong,
  .path-node-label small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .moti-ad-row,
  .moti-ad-slot,
  .moti-ad-unit {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .moti-ad-unit > *,
  .moti-ad-unit iframe,
  .moti-ad-unit div {
    max-width: 100% !important;
  }
}

/* Beta 1.40.0: Sessions slot now shows the active five-session chapter. */
.chapter-card {
  min-height: 116px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.chapter-card-label {
  display: block !important;
}

.chapter-card-label > span {
  display: none !important;
}

.chapter-card [data-session-chapter-title] {
  display: block;
  color: #071123 !important;
  font-size: clamp(2.1rem, 4vw, 4.5rem) !important;
  line-height: 0.95;
  font-weight: 900;
}

.chapter-card [data-session-chapter-range] {
  color: #60718c;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 900;
}

.community-quote-of-day {
  width: min(760px, 100%) !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
}

.community-report-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 15, 30, 0.36);
  backdrop-filter: blur(12px);
}

.community-report-backdrop[hidden] {
  display: none !important;
}

.community-report-card {
  position: relative;
  width: min(94vw, 560px);
  max-height: min(84dvh, 680px);
  overflow: auto;
  box-sizing: border-box;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(62, 123, 255, 0.24);
  border-top: 4px solid #3e7bff;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(62, 123, 255, 0.13), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(130, 184, 255, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(21, 33, 56, 0.18);
}

.community-report-card h2 {
  margin: 0;
  padding-right: 54px;
  color: #071123;
  font-size: clamp(3rem, 10vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.community-report-card p {
  margin: 0;
  color: #60718c;
  font-weight: 850;
  line-height: 1.45;
}

.community-report-card label {
  display: grid;
  gap: 8px;
  color: #071123;
  font-weight: 900;
}

.community-report-card select,
.community-report-card textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(15, 17, 21, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #071123;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.community-report-card textarea {
  min-height: 118px;
  resize: vertical;
}

.community-report-card select:focus,
.community-report-card textarea:focus {
  border-color: rgba(62, 123, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(62, 123, 255, 0.13);
}

.community-report-card .moti-round-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.community-report-card .platform-primary {
  width: 100%;
  justify-content: center;
  min-height: 54px;
}

.post-report,
.comment-report {
  color: #64748b;
}

.post-report:hover,
.comment-report:hover {
  border-color: rgba(62, 123, 255, 0.35);
  color: #2f6fff;
}

@media (max-width: 640px) {
  .chapter-card {
    min-height: 86px !important;
  }

  .chapter-card [data-session-chapter-title] {
    font-size: 2rem !important;
  }

  .community-quote-of-day {
    margin-bottom: 14px !important;
  }

  .community-report-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .community-report-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
    padding: 26px 18px 18px;
  }

  .community-report-card h2 {
    font-size: clamp(2.9rem, 15vw, 4.8rem);
  }
}
