:root {
  color-scheme: light;
  --ink: #172016;
  --muted: #667067;
  --line: #dfe4db;
  --paper: #f7f8f4;
  --surface: #f8f7f3;
  --surface-2: #eef3ec;
  --green: #315739;
  --green-2: #6f9469;
  --teal: #2f7576;
  --rose: #b75c64;
  --gold: #bd8746;
  --shadow: 0 22px 70px rgba(23, 32, 22, .12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 10%, rgba(220, 231, 215, .52), transparent 30%),
    linear-gradient(135deg, #f8f7f3 0%, #eef2ea 56%, #dce7d7 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 250, 235, .48), transparent 28%),
    linear-gradient(135deg, #f8f7f3 0%, #eef2ea 56%, #dce7d7 100%);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.desktop-public {
  min-height: 100vh;
  background:
    radial-gradient(circle at calc(50% + var(--cursor-x, 0) * 8%) calc(22% + var(--cursor-y, 0) * 8%), rgba(220, 231, 215, .46), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 244, 214, .32), transparent 26%),
    linear-gradient(135deg, #f8f7f3 0%, #eef2ea 56%, #dce7d7 100%);
  isolation: isolate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(223, 228, 219, .82);
  background: rgba(248, 247, 243, .72);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a,
.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover,
.link-button:hover {
  color: var(--green);
}

.enter-curb-button {
  min-height: 38px;
  border: 1px solid rgba(49, 87, 57, .24);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(23, 32, 22, .12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 430px;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 64px 56px 72px;
}

.universe-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: 48px 56px;
  background:
    radial-gradient(circle at 50% 42%, rgba(248, 247, 243, .78) 0 18%, rgba(238, 242, 234, .35) 48%, transparent 70%),
    linear-gradient(135deg, rgba(248, 247, 243, .72) 0%, rgba(238, 242, 234, .64) 48%, rgba(220, 231, 215, .58) 100%);
}

.aurora-field,
.particle-field {
  position: absolute;
  inset: -18%;
  pointer-events: none;
}

.aurora-field {
  z-index: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(94, 134, 106, .38), transparent 27%),
    radial-gradient(circle at 76% 30%, rgba(232, 227, 214, .86), transparent 30%),
    radial-gradient(circle at 56% 82%, rgba(220, 231, 215, .72), transparent 34%);
  filter: blur(84px);
  animation: aurora-flow 12s ease-in-out infinite alternate;
  transform: translate3d(calc(var(--cursor-x, 0) * 18px), calc(var(--cursor-y, 0) * 18px), 0);
}

.particle-field {
  z-index: 1;
  opacity: .44;
  background-image:
    radial-gradient(circle, rgba(54, 87, 66, .22) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, .92) 0 1px, transparent 1.5px);
  background-size: 74px 74px, 118px 118px;
  background-position: 0 0, 34px 22px;
  animation: particle-drift 16s linear infinite;
}

.hero-universe-copy {
  position: absolute;
  left: 56px;
  top: 72px;
  z-index: 3;
  width: min(440px, calc(100vw - 112px));
}

.hero-universe-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 1.06;
  font-weight: 950;
}

.hero-universe-copy p:not(.eyebrow) {
  max-width: 560px;
  color: #354036;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 720;
}

.companion-3d-stage {
  position: relative;
  z-index: 2;
  width: min(690px, 62vw);
  height: min(650px, 68vh);
  cursor: none;
}

.companion-3d-stage canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.hero-companion-stage {
  filter: drop-shadow(0 38px 70px rgba(23, 32, 22, .18));
}

.model-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .3s ease;
}

.model-fallback img {
  max-width: min(430px, 74%);
  max-height: 76%;
  object-fit: contain;
  animation: companion-float 4s ease-in-out infinite;
}

.is-3d-ready .model-fallback {
  opacity: 0;
}

.hero-bottom-bar {
  position: absolute;
  left: 56px;
  bottom: 54px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.launcher-button {
  border-radius: 999px;
  padding: 0 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.launcher-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 46px rgba(49, 87, 57, .32);
}

.curb-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(132, 205, 198, .2);
  box-shadow:
    0 0 18px rgba(73, 178, 168, .2),
    0 0 42px rgba(220, 231, 215, .34);
  pointer-events: none;
  translate: -50% -50%;
  transition: background .18s ease, box-shadow .18s ease;
  mix-blend-mode: multiply;
}

.curb-cursor-trail {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 998;
  width: calc(18px - var(--i) * .7px);
  height: calc(18px - var(--i) * .7px);
  border-radius: 50%;
  background: rgba(52, 178, 210, calc(.095 - var(--i) * .006));
  box-shadow: 0 0 20px rgba(52, 178, 210, calc(.085 - var(--i) * .005));
  pointer-events: none;
  translate: -50% -50%;
  filter: blur(2px);
  transition: transform .22s ease;
}

body.auth-open {
  overflow: hidden;
}

.auth-experience {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at 50% 36%, rgba(44, 71, 52, .28), transparent 34%),
    radial-gradient(circle at 80% 16%, rgba(156, 228, 182, .14), transparent 26%),
    linear-gradient(135deg, #0b0f0c, #111811 58%, #172016);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity .28s ease, transform .28s ease;
  overflow: hidden;
}

.auth-experience.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.auth-close {
  position: absolute;
  top: 26px;
  right: 30px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 16px 42px rgba(23, 32, 22, .12);
  backdrop-filter: blur(18px);
}

.auth-only-shell .auth-close {
  display: grid;
  top: 22px;
  right: 24px;
  z-index: 30;
  border-color: rgba(49, 87, 57, .18);
  background: rgba(255, 255, 255, .82);
  color: var(--green);
}

.auth-only-shell .auth-experience {
  padding: 36px clamp(28px, 5vw, 72px);
}

.auth-only-shell .auth-experience-inner {
  grid-template-columns: minmax(320px, 520px) minmax(390px, 460px);
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(1080px, 100%);
}

.auth-only-shell .auth-companion-guide {
  min-height: min(560px, calc(100vh - 96px));
  overflow: hidden;
}

.auth-only-shell .login-companion-stage {
  justify-self: center;
  width: min(460px, 100%);
  height: min(500px, 56vh);
  min-height: 360px;
}

.auth-only-shell .login-companion-stage .model-fallback {
  display: grid;
  place-items: end center;
  inset: 0;
}

.auth-only-shell .login-companion-stage .model-fallback img,
.auth-only-shell .login-companion-stage canvas {
  width: min(420px, 88%);
  height: min(460px, 100%);
  object-fit: contain;
  object-position: center bottom;
}

.auth-only-shell .auth-companion-bubble {
  left: 50%;
  bottom: 22px;
  width: min(360px, calc(100% - 28px));
  max-width: none;
  transform: translateX(-50%) translateY(12px);
}

.auth-only-shell .auth-companion-bubble.is-visible {
  transform: translateX(-50%) translateY(0);
}

.auth-only-shell .auth-experience .auth-panel {
  width: 100%;
}

.auth-experience-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 430px;
  align-items: center;
  gap: 54px;
  width: min(1180px, 100%);
}

.auth-companion-guide {
  position: relative;
  min-height: 640px;
  display: grid;
  align-content: center;
  overflow: visible;
}

.login-companion-stage {
  width: min(620px, 100%);
  height: min(560px, 64vh);
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.auth-companion-bubble {
  position: absolute;
  left: clamp(56px, 8vw, 92px);
  bottom: clamp(36px, 6vh, 54px);
  max-width: 330px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  padding: 15px 18px;
  background:
    linear-gradient(135deg, rgba(70, 126, 143, .92), rgba(42, 82, 76, .9));
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
  font-size: 16px;
  line-height: 1.58;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}

.auth-companion-bubble::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 44px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(255,255,255,.72);
  border-left: 1px solid rgba(255,255,255,.72);
  background: inherit;
  transform: rotate(45deg);
  backdrop-filter: inherit;
  -webkit-backdrop-filter: inherit;
}

.auth-companion-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-companion-bubble.is-typing::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 3px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: -2px;
  animation: caret-blink .8s ease-in-out infinite;
}

.auth-companion-bubble[data-mood="happy"],
.auth-companion-bubble[data-mood="celebrate"] {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(69, 139, 104, .94), rgba(45, 92, 70, .92));
}

.auth-companion-bubble[data-mood="confused"] {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(180, 92, 100, .94), rgba(112, 56, 72, .92));
}

.auth-experience .auth-panel {
  position: relative;
  z-index: 3;
  min-height: 566px;
  background: rgba(248,247,243,.82);
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
  transition: opacity .18s ease-out, transform .18s ease-out;
}

.auth-experience .auth-panel.is-entering {
  opacity: 0;
  transform: translateY(8px) scale(.992);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 660px;
  margin-bottom: 32px;
  color: #354036;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
}

.primary-button {
  background: var(--green);
  color: #fff;
  box-shadow: 0 16px 34px rgba(49, 87, 57, .24);
}

.secondary-button {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.ghost-button {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 14px;
  max-width: 680px;
}

.trust-item,
.auth-panel,
.feature-card,
.workspace-panel,
.metric-card,
.mobile-card,
.mobile-login-card {
  border: 1px solid rgba(223, 228, 219, .9);
  background: rgba(248, 247, 243, .68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.trust-item {
  min-height: 96px;
  padding: 18px;
  border-radius: 8px;
}

.trust-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 22px;
}

.trust-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-panel {
  border-radius: 8px;
  padding: 26px;
  backdrop-filter: blur(18px);
}

.panel-title {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 950;
}

.panel-subtitle {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.segmented button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented button.is-active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 8px 18px rgba(23, 32, 22, .08);
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.field label {
  color: #2d382f;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(248, 247, 243, .82);
  color: var(--ink);
  outline: none;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: rgba(49, 87, 57, .1);
  color: var(--green);
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle:hover {
  background: rgba(49, 87, 57, .16);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(49, 87, 57, .42);
  outline-offset: 2px;
}

.field textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 4px rgba(111, 148, 105, .15);
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.terms input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--green);
}

.form-error,
.form-note {
  min-height: 18px;
  margin: 0;
  color: var(--rose);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.form-note {
  color: var(--muted);
}

.section {
  padding: 76px 56px;
  background:
    radial-gradient(circle at 72% 18%, rgba(220, 231, 215, .22), transparent 32%),
    linear-gradient(135deg, rgba(248, 247, 243, .82) 0%, rgba(238, 242, 234, .72) 100%);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section h2 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 950;
}

.section-lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
}

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

.feature-card {
  min-height: 190px;
  border-radius: 8px;
  padding: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(220, 231, 215, .72);
  color: var(--green);
  font-size: 22px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 56px;
}

.companion-section {
  background: linear-gradient(180deg, rgba(248, 247, 243, .74), rgba(238, 243, 236, .78));
}

.companion-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  width: min(620px, 100%);
  height: 560px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.76), rgba(238,243,236,.18) 44%, transparent 66%),
    linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,.16));
  box-shadow: 0 24px 80px rgba(23, 32, 22, .12);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.companion-visual img {
  max-width: min(360px, 70%);
  max-height: 76%;
  object-fit: contain;
}

.companion-visual .companion-pet {
  position: static;
  width: min(360px, 70%);
  animation: companion-float 4s ease-in-out infinite;
}

.login-companion-stage {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.login-companion-stage canvas {
  filter: drop-shadow(0 34px 56px rgba(0, 0, 0, .24));
}

.login-companion-stage .model-fallback {
  background: transparent;
}

.login-companion-stage .model-fallback img {
  max-width: min(390px, 78%);
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, .18));
}

.scene-section {
  background: linear-gradient(180deg, rgba(238, 243, 236, .84), rgba(248, 247, 243, .72));
}

.section-heading-row {
  max-width: 780px;
  margin-bottom: 38px;
}

.scene-image {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(23, 32, 22, .16);
}

.scene-coverflow {
  display: grid;
  grid-template-columns: .82fr 1.16fr .82fr;
  align-items: center;
  gap: 22px;
  perspective: 1400px;
}

.scene-coverflow article {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 22, .14);
  transform: rotateY(16deg) scale(.86);
  opacity: .62;
}

.scene-coverflow article:nth-child(3) {
  transform: rotateY(-16deg) scale(.86);
}

.scene-coverflow article.is-active {
  transform: rotateY(0) scale(1);
  opacity: 1;
}

.scene-coverflow img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.scene-coverflow span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 2px 18px rgba(0,0,0,.32);
}

.analytics-section {
  background: linear-gradient(180deg, rgba(248, 247, 243, .78), rgba(242, 245, 238, .74));
}

.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1fr);
  align-items: center;
  gap: 58px;
}

.analytics-orbit {
  min-height: 440px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 8px;
  padding: 36px;
  background:
    radial-gradient(circle at 50% 36%, rgba(220,231,215,.74), transparent 42%),
    rgba(255,255,255,.58);
  box-shadow: 0 28px 80px rgba(23, 32, 22, .12);
}

.analytics-number strong {
  display: block;
  font-size: clamp(64px, 8vw, 124px);
  line-height: .9;
  color: var(--green);
}

.analytics-number span {
  color: var(--muted);
  font-weight: 900;
}

.analytics-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 14px;
  height: 190px;
  margin-top: 46px;
}

.analytics-bars i {
  display: block;
  height: var(--h);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--green-2), var(--teal));
  animation: bar-rise 1.2s ease both;
}

.achievement-section {
  background:
    radial-gradient(circle at 24% 12%, rgba(111, 148, 105, .26), transparent 30%),
    linear-gradient(135deg, #172016 0%, #223321 58%, #121611 100%);
  color: #f8f7f3;
}

.achievement-section .eyebrow,
.achievement-section h2 {
  color: #f8f7f3;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.achievement-grid article {
  min-height: 190px;
  border: 1px solid rgba(220, 231, 215, .18);
  border-radius: 8px;
  padding: 28px;
  background:
    radial-gradient(circle at 24px 24px, rgba(111,148,105,.36), transparent 34%),
    rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.achievement-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 44px rgba(111, 148, 105, .28);
}

.achievement-grid strong {
  display: block;
  margin-bottom: 14px;
  font-size: 28px;
}

.achievement-grid span {
  color: rgba(248,247,243,.72);
  font-weight: 800;
}

.choose-section {
  background: linear-gradient(180deg, rgba(238, 243, 236, .84), rgba(248, 247, 243, .78));
}

.skin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skin-row button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(255,255,255,.72);
  color: var(--green);
  font-weight: 900;
}

.download-section {
  padding: 92px 56px;
  background:
    radial-gradient(circle at 50% 20%, rgba(220, 231, 215, .28), transparent 34%),
    linear-gradient(135deg, #456b53, #5e866a);
  color: #fff;
}

.download-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.download-inner img {
  width: min(360px, 56vw);
  max-height: 360px;
  object-fit: contain;
  margin-bottom: 24px;
  animation: companion-float 4s ease-in-out infinite;
}

.download-inner h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.08;
}

.download-section .secondary-button {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}

@keyframes companion-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes bar-rise {
  from {
    transform: scaleY(.16);
    transform-origin: bottom;
  }

  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes aurora-flow {
  0% {
    background-position: 0% 0%, 80% 30%, 50% 80%;
  }

  100% {
    background-position: 6% 4%, 72% 26%, 56% 76%;
  }
}

@keyframes caret-blink {
  0%,
  100% {
    opacity: .18;
  }

  50% {
    opacity: .72;
  }
}

@keyframes particle-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-74px, -74px, 0);
  }
}

.desktop-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  background:
    radial-gradient(circle at 82% 0%, rgba(111, 148, 105, .18), transparent 30%),
    linear-gradient(135deg, #f3f5ef 0%, #e9eee3 100%);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid rgba(223, 228, 219, .76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(247, 248, 244, .64));
  backdrop-filter: blur(18px);
}

.sidebar .brand {
  margin-bottom: 24px;
}

.side-profile {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  border: 1px solid rgba(223, 228, 219, .82);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .68);
}

.side-profile span,
.side-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.side-profile strong,
.side-footer strong {
  color: var(--green);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.side-profile small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.side-progress,
.goal-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e1e7dc;
}

.side-progress i,
.goal-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.side-nav button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(49, 87, 57, .08);
  color: var(--green);
}

.side-nav button:hover {
  background: rgba(231, 238, 228, .72);
  color: var(--ink);
}

.side-nav button.is-active {
  background: #172016;
  color: var(--green);
  color: #fff;
  transform: translateX(2px);
}

.side-nav button.is-active span {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.side-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  border-top: 1px solid rgba(223, 228, 219, .82);
  padding-top: 18px;
}

.desktop-main {
  min-width: 0;
  padding: 30px 36px 42px;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto 22px;
}

.workspace-header h1 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.15;
}

.workspace-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  overflow-wrap: anywhere;
}

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

.workspace-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(49, 87, 57, .1);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.workbench-hero,
.metric-grid,
.dashboard-grid,
.account-layout {
  width: min(1320px, 100%);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.workspace-header > div,
.workbench-hero-copy,
.workspace-panel,
.metric-card {
  min-width: 0;
}

.workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 18px;
}

.workbench-hero-copy,
.workbench-companion {
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, rgba(220, 231, 215, .68), transparent 32%),
    rgba(255, 255, 255, .66);
  box-shadow: 0 18px 48px rgba(23, 32, 22, .1);
  backdrop-filter: blur(18px);
}

.workbench-hero-copy {
  padding: 30px;
}

.workbench-hero-copy h2 {
  max-width: 720px;
  margin: 14px 0 10px;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 950;
  text-wrap: balance;
}

.workbench-hero-copy p {
  max-width: 680px;
  margin-bottom: 26px;
  color: #354036;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.goal-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.goal-meta strong {
  color: var(--green);
}

.workbench-companion {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 20px;
}

.workbench-companion img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(23, 32, 22, .16));
}

.workbench-companion span,
.workbench-companion small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.workbench-companion strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--green);
  font-size: 52px;
  line-height: .9;
  font-weight: 950;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr);
  gap: 18px;
}

.workspace-panel,
.metric-card {
  border-radius: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 42px rgba(23, 32, 22, .08);
  backdrop-filter: blur(18px);
}

.dashboard-primary,
.dashboard-secondary {
  display: grid;
  gap: 18px;
}

.dashboard-primary {
  grid-row: span 2;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.panel-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.panel-copy {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 760;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 112px;
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.metric-card strong {
  display: block;
  color: var(--green);
  font-size: 30px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.timer-face {
  display: grid;
  place-items: center;
  width: min(380px, 100%);
  aspect-ratio: 1;
  margin: 22px auto;
  border-radius: 50%;
  border: 0;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--green) var(--timer-progress, 0deg), #e1e7dc 0deg);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, .76);
}

.timer-value {
  font-size: 62px;
  font-weight: 950;
  line-height: 1;
}

.timer-label {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.duration-row,
.timer-actions,
.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.duration-row button,
.quick-row button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .62);
  color: var(--ink);
  font-weight: 900;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.duration-row button:hover,
.quick-row button:hover {
  border-color: rgba(49, 87, 57, .28);
  background: #fff;
  transform: translateY(-1px);
}

.duration-row button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 220px;
  padding-top: 14px;
}

.bar-wrap {
  display: grid;
  gap: 8px;
  align-items: end;
}

.bar {
  min-height: 8px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--green-2), var(--teal));
  box-shadow: 0 10px 18px rgba(49, 87, 57, .12);
}

.bar-wrap span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.chat-log {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.chat-message {
  max-width: 88%;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.55;
  font-weight: 750;
}

.chat-message.pet {
  justify-self: start;
  background: #eef3ec;
}

.chat-message.user {
  justify-self: end;
  background: var(--green);
  color: #fff;
}

.chat-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.session-row,
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  border: 1px solid rgba(223, 228, 219, .76);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(248, 247, 243, .58);
}

.session-row strong,
.account-row strong {
  display: block;
  color: var(--ink);
  font-weight: 950;
}

.session-row span,
.account-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.session-row em {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(183, 92, 100, .1);
  color: var(--rose);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.session-row em.is-complete {
  background: rgba(49, 87, 57, .1);
  color: var(--green);
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.heatmap i {
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #e4e9df;
}

.heatmap i[data-level="1"] { background: #cfdcc9; }
.heatmap i[data-level="2"] { background: #a9c0a1; }
.heatmap i[data-level="3"] { background: #6f9469; }
.heatmap i[data-level="4"] { background: #315739; }

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 18px;
}

.account-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

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

.status-list span,
.empty-state {
  border-radius: 8px;
  padding: 12px 14px;
  background: #eef3ec;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.mobile-app {
  min-height: 100dvh;
  background: #f6f7f1;
}

.phone-screen {
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 18px max(84px, env(safe-area-inset-bottom));
}

.mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 10px;
}

.mobile-top h1 {
  margin: 0;
  font-size: 26px;
}

.mobile-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mobile-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(255, 255, 255, .52);
  color: var(--green);
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(23, 32, 22, .08);
}

.mobile-card,
.mobile-login-card {
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 14px 42px rgba(23, 32, 22, .1);
}

.mobile-hero-img {
  display: block;
  width: min(250px, 78vw);
  margin: 8px auto 16px;
}

.mobile-login-card {
  margin-top: 16px;
}

.mobile-grid {
  display: grid;
  gap: 12px;
}

.mobile-home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 18px;
}

.mobile-pet-scene {
  position: relative;
  height: 224px;
  overflow: hidden;
}

.mobile-pet-scene .pet-main {
  position: absolute;
  inset: 28px 0 0;
  width: 100%;
  height: 186px;
  object-fit: contain;
  animation: petFloat 4.2s ease-in-out infinite;
  transform-origin: center bottom;
}

.pet-bubble,
.pet-spark {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.pet-bubble {
  top: 14px;
  right: 8px;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 32, 22, .08);
  animation: bubbleFloat 4.2s ease-in-out infinite;
}

.pet-spark {
  color: var(--green-2);
  font-size: 20px;
  font-weight: 950;
  animation: sparkFloat 4.2s ease-in-out infinite;
}

.pet-spark-left {
  left: 16px;
  top: 48px;
  color: var(--rose);
}

.pet-spark-right {
  right: 22px;
  bottom: 36px;
}

.mobile-focus-stat {
  min-height: 138px;
  margin-top: 18px;
}

.mobile-label {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.mobile-focus-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.mobile-focus-stat p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  min-height: 42px;
}

.mini-bars i {
  display: block;
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green-2), #e1e5dc);
}

.mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  height: 64px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 14px 28px rgba(23, 32, 22, .08);
  backdrop-filter: blur(18px);
}

.mode-selector button {
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.mode-selector button.is-active {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .5);
  color: var(--ink);
}

.mobile-timer-wrap {
  display: grid;
  place-items: center;
}

.mobile-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-timer {
  display: grid;
  place-items: center;
  width: 218px;
  aspect-ratio: 1;
  margin: 0 auto 20px;
  padding: 13px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--timer-progress, 0deg), #ecebe5 0);
}

.mobile-timer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 192px;
  height: 192px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.48), rgba(255,255,255,.36));
  box-shadow: 0 16px 30px rgba(23, 32, 22, .08);
}

.mobile-timer .timer-value {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.1;
}

.timer-main-button {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 13px;
}

.mobile-duration-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-duration-row button {
  min-height: 40px;
  border-color: transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.mobile-duration-row button.is-active {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .48);
  color: var(--green);
}

.ambient-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(54, 85, 64, .14);
}

.ambient-row span {
  flex: 1;
  text-align: left;
  font-weight: 850;
}

.ambient-row strong {
  font-size: 13px;
}

.mobile-secondary-actions {
  margin-top: 14px;
}

@keyframes petFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) rotate(1.4deg);
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes sparkFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.bottom-nav {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 58px;
  border: 1px solid rgba(223, 228, 219, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 40px rgba(23, 32, 22, .16);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav button.is-active {
  color: var(--green);
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f7f7f1 0%, #fbfaf6 48%, #e9eee3 100%);
  }

  .desktop-public,
  .desktop-app {
    display: none;
  }

  .mobile-app {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f7f7f1 0%, #fbfaf6 48%, #e9eee3 100%);
  }

  .phone-screen {
    width: min(100%, 430px);
    max-width: 430px;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 18px max(94px, calc(82px + env(safe-area-inset-bottom)));
    overflow-x: hidden;
  }

  .mobile-top {
    min-height: 54px;
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .mobile-top h1 {
    color: var(--ink);
    font-size: 25px;
    line-height: 1.12;
    font-weight: 950;
  }

  .mobile-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-icon-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .42);
    color: var(--green);
    box-shadow: 0 12px 28px rgba(23, 32, 22, .09);
    font-weight: 950;
    backdrop-filter: blur(14px);
  }

  .mobile-card,
  .mobile-login-card,
  .workspace-panel,
  .metric-card {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .48);
    box-shadow: 0 18px 44px rgba(23, 32, 22, .1);
    backdrop-filter: blur(18px);
  }

  .mobile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    align-items: center;
    gap: 12px;
    min-height: 178px;
    overflow: hidden;
  }

  .mobile-hero img,
  .mobile-card img,
  .mobile-login-card img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .mobile-hero img {
    width: 148px;
    max-height: 148px;
    justify-self: end;
  }

  .mobile-hero h2 {
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 950;
  }

  .mobile-hero .panel-subtitle {
    margin-bottom: 0;
    font-size: 13px;
  }

  .mobile-hero-img {
    width: min(220px, 70vw);
    max-height: 168px;
    object-fit: contain;
  }

  .mobile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px 0;
  }

  .metric-card {
    min-height: 84px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 25px;
  }

  .timer-face,
  .mobile-timer {
    width: min(252px, 72vw);
    max-width: 252px;
    margin: 18px auto 16px;
    border-width: 14px;
  }

  .mobile-timer .timer-value,
  .timer-value {
    font-size: 45px;
  }

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

  .duration-row button,
  .quick-row button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 13px;
  }

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

  .timer-actions .ghost-button {
    grid-column: 1 / -1;
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(394px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .mobile-home-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-bottom: 18px;
  }

  .mobile-pet-scene {
    position: relative;
    height: 224px;
    min-width: 0;
    overflow: hidden;
  }

  .mobile-pet-scene .pet-main {
    position: absolute;
    left: 50%;
    right: auto;
    top: 28px;
    bottom: auto;
    width: min(190px, 47vw);
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    transform: translateX(-50%);
    animation: pet-float 4.2s ease-in-out infinite;
  }

  .pet-bubble {
    position: absolute;
    right: 4px;
    top: 14px;
    z-index: 1;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(23, 32, 22, .08);
  }

  .pet-spark {
    position: absolute;
    z-index: 1;
    font-size: 20px;
    font-weight: 900;
  }

  .pet-spark-left {
    left: 16px;
    top: 48px;
    color: var(--rose);
  }

  .pet-spark-right {
    right: 20px;
    bottom: 36px;
    color: var(--green-2);
  }

  .mobile-focus-stat {
    min-height: 138px;
    margin-top: 18px;
    padding: 18px;
  }

  .mobile-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-focus-stat strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
  }

  .mobile-focus-stat p {
    margin: 6px 0 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
  }

  .mini-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 7px;
    min-height: 42px;
  }

  .mini-bars i {
    display: block;
    min-height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--green-2), #e1e5dc);
  }

  .mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    height: 64px;
    padding: 6px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 20px;
    background: rgba(255, 255, 255, .42);
    box-shadow: 0 14px 34px rgba(23, 32, 22, .08);
    backdrop-filter: blur(18px);
  }

  .mode-selector button {
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 950;
  }

  .mode-selector button.is-active {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .52);
    color: var(--ink);
  }

  .mobile-timer-wrap {
    display: grid;
    place-items: center;
    margin: 0 0 20px;
  }

  .mobile-timer {
    position: relative;
    display: grid;
    place-items: center;
    width: 218px;
    max-width: 218px;
    aspect-ratio: 1;
    margin: 0 auto;
    border: 0;
    border-radius: 50%;
    background:
      conic-gradient(var(--green) var(--timer-progress, 0deg), #ecebe5 0deg),
      #ecebe5;
    box-shadow: none;
  }

  .mobile-timer::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.48), rgba(255,255,255,.36));
    border: 1px solid rgba(255, 255, 255, .82);
    box-shadow: 0 16px 30px rgba(23, 32, 22, .08);
    backdrop-filter: blur(18px);
  }

  .mobile-timer-inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .mobile-timer .timer-value {
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
  }

  .timer-main-button {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: none;
  }

  .mobile-duration-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
  }

  .mobile-duration-row button {
    min-height: 42px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-duration-row button.is-active {
    background: rgba(255, 255, 255, .5);
    color: var(--green);
  }

  .ambient-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    margin: 0;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 22px rgba(54, 85, 64, .14);
  }

  .ambient-row span {
    flex: 1;
    text-align: left;
    font-weight: 900;
  }

  .ambient-row strong {
    font-size: 13px;
  }

  .mobile-secondary-actions {
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
  }

  @keyframes pet-float {
    0%,
    100% {
      transform: translateX(-50%) translateY(0) rotate(-1deg);
    }

    50% {
      transform: translateX(-50%) translateY(-8px) rotate(1deg);
    }
  }
}

@media (min-width: 921px) {
  .mobile-app {
    display: none;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
  }

  .workbench-hero,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .field input,
  .field textarea {
    font-size: 16px;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-nav button {
    justify-content: flex-start;
  }

  .side-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .timer-main-button {
    width: auto;
  }
}

/* Desktop-first portal: the native mobile app simulation is disabled. */
@media (max-width: 920px) {
  .desktop-public {
    display: block;
  }

  .desktop-app {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-app {
    display: none !important;
  }

  .site-header {
    position: static;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 22px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 22px 58px;
  }

  .universe-hero {
    min-height: auto;
    width: 100%;
    max-width: 100vw;
    padding: 34px 22px 38px;
    overflow: hidden;
  }

  .hero-universe-copy,
  .hero-bottom-bar {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(100%, calc(100vw - 44px));
    max-width: calc(100vw - 44px);
  }

  .hero-universe-copy {
    align-self: start;
    margin-bottom: 12px;
  }

  .hero-universe-copy h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero-universe-copy p:not(.eyebrow) {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.68;
  }

  .hero-companion-stage {
    width: min(100%, 520px);
    height: 420px;
  }

  .hero-bottom-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    margin: 4px 0 16px;
  }

  .hero-bottom-bar .primary-button,
  .hero-bottom-bar .secondary-button {
    width: auto;
    min-width: 0;
    padding: 0 12px;
    white-space: nowrap;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .auth-experience {
    padding: 72px 20px 28px;
    overflow-y: auto;
  }

  .auth-experience-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-companion-guide {
    min-height: 320px;
  }

  .login-companion-stage {
    height: 300px;
  }

  .auth-companion-bubble {
    left: 50%;
    bottom: 12px;
    width: min(360px, 100%);
    transform: translateX(-50%) translateY(12px);
    font-size: 14px;
  }

  .auth-companion-bubble::before {
    right: 56px;
  }

  .auth-companion-bubble.is-visible {
    transform: translateX(-50%) translateY(0);
  }

  .auth-experience .auth-panel {
    min-height: auto;
  }

  .auth-only-shell .auth-experience {
    padding: 26px 16px;
  }

  .auth-only-shell .auth-experience-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(460px, 100%);
  }

  .auth-only-shell .auth-companion-guide {
    min-height: 180px;
    order: -1;
  }

  .auth-only-shell .login-companion-stage {
    height: 170px;
    min-height: 170px;
  }

  .auth-only-shell .login-companion-stage .model-fallback img,
  .auth-only-shell .login-companion-stage canvas {
    width: 180px;
    height: 180px;
  }

  .auth-only-shell .auth-companion-bubble {
    display: none;
  }

  .trust-row,
  .feature-grid,
  .split-section,
  .metric-grid,
  .analytics-layout,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .download-section {
    padding: 54px 22px;
  }

  .companion-visual {
    width: 100%;
    height: 360px;
    min-height: 360px;
  }

  .scene-image {
    min-height: 260px;
  }

  .scene-coverflow {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 14px;
    perspective: none;
  }

  .scene-coverflow article,
  .scene-coverflow article:nth-child(3),
  .scene-coverflow article.is-active {
    flex: 0 0 78%;
    min-height: 320px;
    transform: none;
    opacity: 1;
  }

  .scene-coverflow img {
    min-height: 320px;
  }

  .analytics-orbit {
    min-height: 330px;
    padding: 24px;
  }

  .sidebar {
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    position: static;
  }

  .side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .side-nav button {
    justify-content: center;
    padding: 0 8px;
    font-size: 13px;
    min-width: 0;
  }

  .desktop-main {
    width: 100%;
    max-width: 100vw;
    padding: 22px;
    overflow-x: hidden;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .workbench-hero-copy {
    padding: 22px;
  }

  .workbench-hero-copy h2 {
    font-size: 28px;
  }

  .workbench-companion {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .workbench-companion img {
    width: 116px;
    height: 116px;
  }

  .workbench-companion strong {
    font-size: 40px;
  }

  .dashboard-grid,
  .dashboard-primary,
  .dashboard-secondary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-primary {
    grid-row: auto;
  }

  .heatmap {
    grid-template-columns: repeat(7, minmax(22px, 1fr));
  }
}

@media (max-width: 640px) {
  .workspace-header,
  .workbench-hero,
  .metric-grid,
  .dashboard-grid,
  .account-layout {
    width: min(100%, calc(100vw - 44px));
    max-width: calc(100vw - 44px);
  }

  .workspace-header p,
  .workbench-hero-copy p,
  .goal-meta {
    max-width: 100%;
    word-break: break-word;
  }

  .goal-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-nav button {
    justify-content: flex-start;
  }

  .side-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (pointer: coarse) {
  .curb-cursor {
    display: none;
  }

  .companion-3d-stage {
    cursor: default;
  }
}

.focusflow-app {
  --ff-ink: #151b14;
  --ff-muted: #697469;
  --ff-green: #365f43;
  --ff-sage: #cfd9cb;
  --ff-line: rgba(49, 87, 57, .12);
  --ff-panel: rgba(255, 255, 255, .72);
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 52% 8%, rgba(211, 224, 207, .74), transparent 30%),
    radial-gradient(circle at 86% 26%, rgba(244, 235, 211, .36), transparent 26%),
    linear-gradient(135deg, #fbfaf7 0%, #f5f6f1 54%, #e4ece0 100%);
  color: var(--ff-ink);
}

.focusflow-app button,
.focusflow-app input,
.focusflow-app textarea,
.focusflow-app select {
  font: inherit;
}

.ff-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 30px 18px;
  border-right: 1px solid rgba(49, 87, 57, .1);
  background: rgba(248, 248, 244, .82);
  backdrop-filter: blur(24px);
}

.ff-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  color: var(--ff-green);
}

.ff-brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 12px;
  font-weight: 950;
}

.ff-brand strong {
  display: block;
  font-size: 27px;
  line-height: 1;
  font-weight: 850;
}

.ff-brand small {
  display: block;
  margin-top: 5px;
  color: var(--ff-ink);
  font-size: 14px;
  font-weight: 650;
}

.ff-nav {
  display: grid;
  gap: 10px;
  margin-top: 70px;
}

.ff-nav button,
.ff-bottom-link {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  background: transparent;
  color: var(--ff-ink);
  font-weight: 760;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ff-nav button span,
.ff-bottom-link span {
  display: grid;
  place-items: center;
  width: 26px;
  color: var(--ff-green);
  font-size: 23px;
}

.ff-nav button:hover,
.ff-bottom-link:hover {
  background: rgba(232, 239, 228, .72);
}

.ff-nav button.is-active {
  background: #e9eee5;
  color: var(--ff-green);
  box-shadow: inset -4px 0 0 var(--ff-green);
}

.ff-sidebar-spacer {
  flex: 1;
}

.ff-side-progress {
  display: grid;
  gap: 12px;
  padding: 22px 12px;
  border-top: 1px solid var(--ff-line);
  color: var(--ff-muted);
  font-weight: 750;
}

.ff-side-progress strong {
  color: var(--ff-green);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.ff-side-progress i,
.ff-level-bar,
.ff-badge-card i {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e4e8e0;
}

.ff-side-progress b,
.ff-level-bar i,
.ff-badge-card b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ff-green);
}

.ff-bottom-link {
  margin-top: 18px;
}

.ff-main {
  min-width: 0;
  padding: 28px 28px 42px;
}

.ff-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.ff-topbar h1 {
  margin: 0 0 6px;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.ff-topbar p {
  margin: 0;
  color: var(--ff-muted);
  font-weight: 720;
}

.ff-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ff-icon-button,
.ff-round-action {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: var(--ff-ink);
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(23, 32, 22, .06);
}

.ff-start-button,
.ff-play-button,
.ff-secondary,
.ff-danger,
.ff-plain-button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 850;
}

.ff-start-button,
.ff-play-button {
  background: var(--ff-green);
  color: #fff;
  box-shadow: 0 18px 36px rgba(54, 95, 67, .2);
}

.ff-play-button {
  min-width: 190px;
  min-height: 74px;
  font-size: 30px;
}

.ff-plain-button {
  background: transparent;
  color: var(--ff-ink);
}

.ff-secondary {
  border: 1px solid rgba(54, 95, 67, .22);
  background: rgba(255, 255, 255, .58);
  color: var(--ff-green);
}

.ff-danger {
  margin-top: 12px;
  border: 1px solid rgba(183, 92, 100, .24);
  background: rgba(255, 255, 255, .58);
  color: #9d414a;
}

.ff-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 13px;
  background: #dfe9dc;
  color: var(--ff-green);
  font-size: 13px;
  font-weight: 850;
}

.ff-panel {
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background: var(--ff-panel);
  box-shadow: 0 22px 56px rgba(23, 32, 22, .08);
  backdrop-filter: blur(24px);
}

.ff-workbench {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(330px, 1fr) minmax(210px, 250px);
  gap: 18px;
  align-items: center;
  min-height: calc(100vh - 144px);
  background:
    linear-gradient(rgba(251, 250, 247, .5), rgba(251, 250, 247, .66)),
    url("../app/assets/assets/images/focus_scene_city.webp") center / cover;
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
}

.ff-left-stack,
.ff-center-stack,
.ff-right-stack,
.ff-achievement-side {
  display: grid;
  gap: 22px;
}

.ff-companion-card {
  display: grid;
  justify-items: center;
  min-height: 300px;
  padding: 28px 24px;
}

.ff-companion-card img {
  width: 122px;
  height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(23, 32, 22, .12));
}

.ff-speech {
  position: relative;
  margin-top: 34px;
  width: min(100%, 250px);
  border: 1px solid #f2f0ea;
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff;
  color: var(--ff-ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 760;
}

.ff-speech::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 22px;
  height: 22px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.ff-task-panel {
  padding: 24px;
}

.ff-task-panel h2,
.ff-right-stack h2,
.ff-panel h2,
.ff-panel h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.ff-task-input {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.ff-task-input input,
.ff-chat-form textarea,
.ff-select-row select {
  width: 100%;
  border: 1px solid rgba(23, 32, 22, .12);
  border-radius: 14px;
  background: rgba(246, 246, 242, .78);
  color: var(--ff-ink);
  outline: 0;
}

.ff-task-input input {
  min-height: 46px;
  padding: 0 16px;
}

.ff-task-input button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ff-green);
  color: #fff;
  font-size: 24px;
}

.ff-task {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  font-weight: 720;
}

.ff-task input,
.ff-switch-row input {
  accent-color: var(--ff-green);
}

.ff-timer-panel {
  min-height: 330px;
  padding: 24px;
}

.ff-timer-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--ff-ink);
  font-weight: 720;
}

.ff-timer-head i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ff-green);
}

.ff-time-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 22px;
}

.ff-time-picker button {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ff-ink);
  font-size: 32px;
}

.ff-time-picker strong {
  min-width: 190px;
  text-align: center;
  font-size: 66px;
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ff-timer-ring {
  display: none;
}

.ff-timer-chip {
  display: block;
  width: max-content;
  min-height: 36px;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #dfe9dc;
  color: var(--ff-green);
  font-weight: 820;
}

.ff-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.ff-mark-done {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--ff-muted);
  font-weight: 760;
}

.ff-right-stack {
  align-self: stretch;
  align-content: center;
}

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

.ff-mode-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, .68);
  color: var(--ff-ink);
  text-align: left;
}

.ff-mode-card.is-active {
  border-color: rgba(54, 95, 67, .38);
  background: rgba(255, 255, 255, .9);
}

.ff-mode-card span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e6eee2;
  color: var(--ff-green);
}

.ff-mode-card strong {
  font-weight: 900;
}

.ff-mode-card small {
  color: var(--ff-muted);
  font-weight: 700;
}

.ff-noise-panel {
  padding: 22px;
}

.ff-noise-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.ff-noise-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}

.ff-noise-row span {
  width: 24px;
}

.ff-noise-row input {
  flex: 1;
  accent-color: var(--ff-green);
}

.ff-stats-layout,
.ff-achievement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
  max-width: 1240px;
}

.ff-page-intro h2 {
  margin: 0 0 6px;
  font-size: 36px;
  line-height: 1.15;
}

.ff-page-intro p {
  margin: 0 0 34px;
  font-size: 20px;
  font-style: italic;
}

.ff-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.ff-metric-card {
  min-height: 150px;
  border-radius: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, .68);
}

.ff-metric-card span {
  display: block;
  color: var(--ff-green);
  font-size: 24px;
  margin-bottom: 20px;
}

.ff-metric-card small,
.ff-metric-card em {
  display: block;
  color: var(--ff-muted);
  font-style: normal;
  font-weight: 720;
}

.ff-metric-card strong {
  display: block;
  margin: 8px 0;
  color: var(--ff-green);
  font-size: 30px;
  font-weight: 900;
}

.ff-stat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  margin-bottom: 28px;
}

.ff-trend-panel,
.ff-donut-panel,
.ff-calendar-panel,
.ff-recent-panel {
  padding: 30px;
}

.ff-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 20px;
  min-height: 250px;
  margin-top: 26px;
}

.ff-chart .bar-wrap {
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 12px;
}

.ff-chart .bar {
  width: 56px;
  border-radius: 999px 999px 0 0;
  background: #d5ded3;
}

.ff-chart .bar-wrap:nth-last-child(1) .bar {
  background: var(--ff-green);
}

.ff-chart span {
  color: var(--ff-muted);
  font-size: 13px;
  font-weight: 700;
}

.ff-donut {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  margin: 30px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fbfaf7 58%, transparent 59%),
    conic-gradient(var(--ff-green) var(--p), #98620f 0 86%, #d1d8cf 0);
}

.ff-donut strong {
  font-size: 30px;
}

.ff-donut-panel p {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  color: var(--ff-muted);
  font-weight: 720;
}

.ff-heatmap {
  display: grid;
  grid-template-columns: repeat(21, minmax(18px, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.ff-heatmap i,
.heatmap i {
  display: block;
  aspect-ratio: 1;
  border-radius: 9px;
  background: #e8ebe4;
}

.ff-heatmap i[data-level="1"],
.heatmap i[data-level="1"] {
  background: #d4dfd1;
}

.ff-heatmap i[data-level="2"],
.heatmap i[data-level="2"] {
  background: #a7bfa2;
}

.ff-heatmap i[data-level="3"],
.heatmap i[data-level="3"],
.ff-heatmap i[data-level="4"],
.heatmap i[data-level="4"] {
  background: var(--ff-green);
}

.ff-achievement-main {
  display: grid;
  gap: 26px;
}

.ff-level-panel {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 30px;
  padding: 30px;
}

.ff-level-panel img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  background: #efeee8;
}

.ff-level-panel h2 {
  margin-bottom: 4px;
  font-size: 36px;
}

.ff-level-panel p {
  color: var(--ff-green);
  font-size: 18px;
  font-weight: 850;
}

.ff-level-meta {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 8px;
  color: var(--ff-muted);
  font-weight: 740;
}

.ff-quote-panel {
  display: flex;
  gap: 20px;
  padding: 28px 34px;
  border: 2px solid rgba(54, 95, 67, .72);
}

.ff-quote-panel span {
  color: #9fb294;
  font-size: 42px;
}

.ff-quote-panel p {
  margin: 0;
  font-size: 22px;
  line-height: 1.55;
  font-style: italic;
  font-weight: 680;
}

.ff-section-heading {
  margin: 8px 0 0;
  font-size: 30px;
}

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

.ff-badge-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 220px;
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, .68);
}

.ff-badge-card div {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #e5e8e2;
  color: var(--ff-green);
  font-size: 32px;
}

.ff-badge-card strong {
  font-size: 18px;
}

.ff-badge-card span,
.ff-badge-card small {
  color: var(--ff-muted);
  font-weight: 700;
}

.ff-badge-card i {
  width: 100%;
}

.ff-next-form,
.ff-milestones {
  padding: 28px;
  text-align: center;
}

.ff-next-form img {
  width: 120px;
  opacity: .38;
  filter: grayscale(1);
  margin: 20px auto;
}

.ff-next-form p {
  line-height: 1.55;
  font-weight: 720;
}

.ff-milestones {
  text-align: left;
}

.ff-milestones p {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 14px;
  margin: 24px 0;
}

.ff-milestones i {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 3px solid var(--ff-green);
  border-radius: 50%;
}

.ff-milestones span {
  grid-column: 2;
  color: var(--ff-muted);
  font-size: 13px;
}

.ff-settings-layout {
  display: grid;
  gap: 28px;
  max-width: 1120px;
}

.ff-profile-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.ff-profile-banner img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  background: #efeee8;
}

.ff-profile-banner div {
  flex: 1;
}

.ff-profile-banner h2 {
  font-size: 30px;
}

.ff-profile-banner p {
  color: var(--ff-muted);
  font-size: 18px;
}

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

.ff-settings-grid .ff-panel {
  padding: 30px;
}

.ff-switch-row,
.ff-select-row,
.ff-setting-line,
.ff-settings-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 54px;
  color: var(--ff-ink);
  font-weight: 760;
}

.ff-select-row {
  align-items: flex-start;
  flex-direction: column;
  margin-top: 14px;
}

.ff-select-row select {
  min-height: 54px;
  padding: 0 16px;
}

.ff-pet-preview {
  display: grid;
  place-items: center;
  height: 150px;
  margin-top: 22px;
  border-radius: 18px;
  background: #efeee8;
}

.ff-pet-preview img {
  height: 116px;
  object-fit: contain;
}

.ff-range {
  width: 100%;
  margin: 18px 0;
  accent-color: var(--ff-green);
}

.ff-preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.ff-preset-row button {
  min-height: 78px;
  border: 0;
  border-radius: 18px;
  background: #efeee8;
  font-weight: 820;
}

.ff-settings-action {
  border: 0;
  border-bottom: 1px solid rgba(23, 32, 22, .08);
  background: transparent;
  padding: 0;
}

.ff-settings-action strong {
  margin-left: auto;
  color: var(--ff-muted);
}

.ff-chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 600px;
  padding: 0;
  overflow: hidden;
}

.ff-companion-page {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(460px, 1.2fr);
  max-width: 1180px;
  min-height: calc(100vh - 150px);
}

.ff-companion-stage {
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 16px 0 0 16px;
  border-right: 0;
}

.ff-companion-stage img {
  width: min(260px, 62%);
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(23, 32, 22, .12));
}

.ff-companion-stage .ff-speech {
  margin-top: 54px;
}

.ff-companion-page .ff-chat-panel {
  border-radius: 0 16px 16px 0;
}

.ff-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(23, 32, 22, .08);
}

.ff-chat-log {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px;
  overflow: auto;
}

.ff-chat-message {
  max-width: 72%;
  border-radius: 16px;
  padding: 16px 20px;
  background: #fff;
  line-height: 1.55;
  font-weight: 720;
}

.ff-chat-message.user {
  justify-self: end;
  background: var(--ff-green);
  color: #fff;
}

.ff-chat-form {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 12px;
  padding: 24px 30px;
  border-top: 1px solid rgba(23, 32, 22, .08);
}

.ff-chat-form textarea {
  min-height: 70px;
  padding: 16px;
  resize: vertical;
}

.ff-chat-form button {
  border: 0;
  border-radius: 18px;
  background: var(--ff-green);
  color: #fff;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .focusflow-app {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .ff-brand div,
  .ff-nav button:not(.is-active),
  .ff-nav button.is-active,
  .ff-bottom-link,
  .ff-side-progress {
    font-size: 0;
  }

  .ff-nav button,
  .ff-bottom-link {
    justify-content: center;
    padding: 0;
    box-shadow: none;
  }

  .ff-workbench,
  .ff-stats-layout,
  .ff-achievement-layout {
    grid-template-columns: 1fr;
  }

  .ff-stat-cards,
  .ff-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ff-companion-page {
    grid-template-columns: 1fr;
  }

  .ff-companion-stage,
  .ff-companion-page .ff-chat-panel {
    border-radius: 16px;
  }
}

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

  .ff-sidebar {
    position: static;
    min-height: auto;
  }

  .ff-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .ff-main {
    padding: 22px;
  }

  .ff-topbar,
  .ff-profile-banner {
    flex-direction: column;
  }

  .ff-workbench,
  .ff-stat-grid,
  .ff-settings-grid {
    grid-template-columns: 1fr;
  }

  .ff-time-picker strong {
    min-width: 0;
    font-size: 54px;
  }

  .ff-stat-cards,
  .ff-badge-grid {
    grid-template-columns: 1fr;
  }
}
