:root {
  color-scheme: dark;
  --life-bg: #050816;
  --life-bg-2: #0b1328;
  --life-surface: rgba(15, 27, 56, 0.86);
  --life-surface-strong: rgba(20, 36, 73, 0.96);
  --life-border: rgba(125, 217, 255, 0.18);
  --life-text: #f8fbff;
  --life-muted: #aab8d6;
  --life-soft: #dce8ff;
  --life-cyan: #25c4f4;
  --life-blue: #66b8ff;
  --life-gold: #f4b928;
  --life-green: #58e6b0;
  --life-coral: #ff6b83;
  --life-violet: #a78bfa;
  --life-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --life-radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body.life-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(37, 196, 244, 0.2), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(244, 185, 40, 0.12), transparent 28%),
    linear-gradient(145deg, #050816 0%, #090f20 45%, #101934 100%);
  color: var(--life-text);
  overflow-x: hidden;
}

body.life-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 217, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 217, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

a { color: inherit; }

button,
input,
textarea,
select { font: inherit; }

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hidden { display: none !important; }

.life-shell {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.life-topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--life-border);
  border-radius: 999px;
  background: rgba(7, 12, 27, 0.74);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.life-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
}

.life-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--life-gold), #ffe59a);
  color: #11172b;
  box-shadow: 0 0 28px rgba(244, 185, 40, 0.32);
}

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

.life-link,
.life-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(125, 217, 255, 0.2);
  border-radius: 999px;
  color: var(--life-text);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.life-btn.primary,
.life-link.primary {
  border-color: rgba(244, 185, 40, 0.5);
  background: linear-gradient(135deg, var(--life-gold), #ffe07d);
  color: #121526;
  box-shadow: 0 15px 36px rgba(244, 185, 40, 0.24);
}

.life-btn.secondary,
.life-link.secondary { background: rgba(37, 196, 244, 0.1); }

.life-btn:hover,
.life-link:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 217, 255, 0.46);
}

.life-btn:focus-visible,
.life-link:focus-visible,
.lifeos-stage button:focus-visible,
.lifeos-stage a:focus-visible,
.lifeos-textarea:focus-visible {
  outline: 3px solid rgba(102, 184, 255, 0.72);
  outline-offset: 3px;
}

.life-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 28px;
}

.life-hero-copy,
.life-card,
.life-panel {
  border: 1px solid var(--life-border);
  border-radius: var(--life-radius);
  background: linear-gradient(145deg, rgba(18, 31, 63, 0.92), rgba(8, 15, 32, 0.86));
  box-shadow: var(--life-shadow);
}

.life-hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: clamp(28px, 5vw, 58px);
}

.life-hero-copy::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 196, 244, 0.2), transparent 68%);
  pointer-events: none;
}

.life-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--life-gold);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.life-title {
  max-width: 780px;
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.life-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--life-muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.life-hero-actions,
.life-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.life-skill-row,
.life-scenario-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.life-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(125, 217, 255, 0.18);
  border-radius: 999px;
  color: var(--life-soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 800;
}

.life-universe {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  padding: 24px;
}

.life-universe::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(125, 217, 255, 0.12);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.life-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 174px;
  height: 174px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244, 185, 40, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.42), transparent 18%),
    radial-gradient(circle, rgba(244, 185, 40, 0.32), rgba(37, 196, 244, 0.13) 58%, transparent 72%);
  box-shadow: 0 0 52px rgba(244, 185, 40, 0.24), inset 0 0 34px rgba(255, 255, 255, 0.1);
  text-align: center;
}

.life-orb strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.life-orb span {
  display: block;
  margin-top: 8px;
  color: var(--life-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.life-float-card {
  position: absolute;
  display: grid;
  gap: 8px;
  width: 178px;
  padding: 16px;
  border: 1px solid rgba(125, 217, 255, 0.18);
  border-radius: 18px;
  background: rgba(8, 15, 32, 0.76);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
  animation: lifeFloat 6s ease-in-out infinite;
}

.life-float-card b { color: var(--life-text); }

.life-float-card span {
  color: var(--life-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.life-float-card.one { top: 40px; left: 34px; --lift: -9px; }
.life-float-card.two { top: 68px; right: 28px; --lift: -13px; animation-delay: -1.6s; }
.life-float-card.three { bottom: 64px; left: 28px; --lift: -11px; animation-delay: -3.1s; }
.life-float-card.four { right: 36px; bottom: 42px; --lift: -8px; animation-delay: -4.5s; }

@keyframes lifeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--lift, -10px)); }
}

.life-section { margin-top: 28px; }

.life-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.life-section-head h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.life-section-head p,
.life-scenario-card p {
  color: var(--life-muted);
  line-height: 1.6;
}

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

.life-scenario-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 22px;
}

.life-scenario-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 20% 15%, rgba(37, 196, 244, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(20, 35, 67, 0.98), rgba(9, 15, 31, 0.94));
}

.life-scenario-card.locked { opacity: 0.8; }

.life-scenario-card h3 {
  margin: 12px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

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

.life-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(125, 217, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.life-muted { color: var(--life-muted); }

.life-alert {
  padding: 14px 16px;
  border: 1px solid rgba(125, 217, 255, 0.18);
  border-radius: 16px;
  background: rgba(37, 196, 244, 0.1);
  color: var(--life-soft);
  line-height: 1.5;
}

.life-alert.error {
  border-color: rgba(255, 107, 131, 0.38);
  background: rgba(255, 107, 131, 0.1);
}

.life-alert.success {
  border-color: rgba(88, 230, 176, 0.38);
  background: rgba(88, 230, 176, 0.1);
}

.life-result-hero {
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
  margin-top: 28px;
}

.life-ending-tier {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(244, 185, 40, 0.14);
  color: var(--life-gold);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.life-result-title {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
}

.life-result-grid,
.life-feedback-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.life-feedback-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.life-result-stat {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 18px;
  text-align: center;
}

.life-result-stat strong {
  color: var(--life-gold);
  font-size: 2.45rem;
}

.life-result-stat span,
.life-feedback-grid li { color: var(--life-muted); }

.lifeos-loading,
.lifeos-stage {
  min-height: 100vh;
}

.lifeos-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 430px);
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 3.5vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 8, 22, 0.18), rgba(5, 8, 22, 0.9)),
    radial-gradient(circle at 50% 20%, rgba(102, 184, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #070b16 0%, #101a31 100%);
}

.lifeos-stage.lifeos-phone-only {
  grid-template-columns: minmax(390px, 430px);
}

.lifeos-stage.env-station {
  background:
    radial-gradient(circle at 32% 20%, rgba(244, 185, 40, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.04), rgba(5, 8, 22, 0.82)),
    linear-gradient(135deg, #0a0f21, #111a35 44%, #090d18);
}

.lifeos-stage.env-rain {
  background:
    repeating-linear-gradient(105deg, rgba(125, 217, 255, 0.08) 0 1px, transparent 1px 15px),
    radial-gradient(circle at 70% 14%, rgba(244, 185, 40, 0.11), transparent 30%),
    linear-gradient(145deg, #050816, #0b1225 62%, #11172b);
}

.lifeos-stage.env-cafe {
  background:
    radial-gradient(circle at 20% 22%, rgba(244, 185, 40, 0.22), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(37, 196, 244, 0.12), transparent 28%),
    linear-gradient(145deg, #0b0b16, #17101f 48%, #091326);
}

.lifeos-stage.env-underground {
  background:
    linear-gradient(90deg, rgba(244, 185, 40, 0.1) 0 2px, transparent 2px 84px),
    radial-gradient(circle at 48% 18%, rgba(125, 217, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #060914, #12172a);
}

.lifeos-stage.env-hotel,
.lifeos-stage.env-residence {
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 215, 106, 0.16), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(37, 196, 244, 0.12), transparent 34%),
    linear-gradient(145deg, #070b16, #101934 62%, #091224);
}

.lifeos-environment-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.lifeos-environment-art span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(125, 217, 255, 0.08);
  filter: blur(0.5px);
  animation: lifeDrift 16s ease-in-out infinite;
}

.lifeos-environment-art span:nth-child(1) {
  width: 72vw;
  height: 8px;
  left: 14vw;
  top: 17vh;
  box-shadow: 0 84px rgba(125, 217, 255, 0.045), 0 168px rgba(244, 185, 40, 0.055);
}

.lifeos-environment-art span:nth-child(2) {
  width: 160px;
  height: 260px;
  left: 7vw;
  bottom: 4vh;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(125, 217, 255, 0.1), rgba(125, 217, 255, 0.02));
  animation-delay: -5s;
}

.lifeos-environment-art span:nth-child(3) {
  width: 220px;
  height: 340px;
  right: 5vw;
  bottom: -60px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(244, 185, 40, 0.1), rgba(37, 196, 244, 0.04));
  animation-delay: -9s;
}

@keyframes lifeDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

.lifeos-track {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.lifeos-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--life-cyan), var(--life-gold));
}

.lifeos-phone-wrap {
  position: relative;
  z-index: 3;
  justify-self: center;
}

.lifeos-stage.is-ringing .lifeos-phone {
  animation: lifeRing 820ms ease-in-out infinite;
}

@keyframes lifeRing {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  20% { transform: translate3d(-1px, 0, 0) rotate(-0.25deg); }
  40% { transform: translate3d(1px, 0, 0) rotate(0.25deg); }
  60% { transform: translate3d(-1px, 0, 0) rotate(-0.15deg); }
  80% { transform: translate3d(1px, 0, 0) rotate(0.15deg); }
}

.lifeos-phone {
  position: relative;
  width: min(430px, calc(100vw - 34px));
  height: min(850px, calc(100vh - 44px));
  min-height: 720px;
  padding: 15px;
  border: 1px solid rgba(248, 251, 255, 0.16);
  border-radius: 48px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 14%),
    linear-gradient(145deg, #171b27, #050711 68%);
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.52),
    inset 0 0 0 2px rgba(255, 255, 255, 0.045);
}

.lifeos-phone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 16;
  width: 132px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background:
    radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.13), transparent 8%),
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08), transparent 7%),
    linear-gradient(180deg, #05060b, #020309);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.44);
  transform: translateX(-50%);
}

.lifeos-statusbar {
  position: absolute;
  top: 25px;
  left: 30px;
  right: 30px;
  z-index: 14;
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 8px;
  color: rgba(248, 251, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 900;
}

.lifeos-status-title,
.lifeos-signal,
.lifeos-weather {
  justify-self: center;
  color: rgba(248, 251, 255, 0.62);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lifeos-signal {
  justify-self: start;
  color: rgba(248, 251, 255, 0.82);
}

.lifeos-weather {
  justify-self: end;
  color: rgba(255, 215, 106, 0.86);
}

.lifeos-battery-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lifeos-battery-percent {
  min-width: 30px;
  color: rgba(248, 251, 255, 0.86);
  font-size: 0.69rem;
  text-align: right;
}

.lifeos-battery {
  position: relative;
  width: 34px;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(248, 251, 255, 0.6);
  border-radius: 5px;
}

.lifeos-battery::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -4px;
  width: 3px;
  height: 6px;
  border-radius: 0 3px 3px 0;
  background: rgba(248, 251, 255, 0.6);
}

.lifeos-battery span {
  display: block;
  height: 100%;
  background: var(--life-green);
}

.lifeos-battery.low span { background: var(--life-gold); }
.lifeos-battery.critical span { background: var(--life-coral); }

.lifeos-menu-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(125, 217, 255, 0.2);
  border-radius: 999px;
  color: var(--life-text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.lifeos-menu {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 20;
  display: grid;
  width: 220px;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(125, 217, 255, 0.2);
  border-radius: 18px;
  background: rgba(6, 10, 23, 0.96);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.lifeos-menu button,
.lifeos-menu a {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  color: var(--life-text);
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
  text-decoration: none;
  font-weight: 800;
}

.lifeos-menu-note {
  padding: 6px 4px 2px;
  color: var(--life-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.lifeos-objective-wrap {
  position: absolute;
  top: 68px;
  right: 28px;
  z-index: 11;
}

.lifeos-objective-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(125, 217, 255, 0.14);
  border-radius: 999px;
  color: var(--life-text);
  background: rgba(8, 15, 32, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.lifeos-objective-pill span,
.lifeos-objective-popover > span {
  display: block;
  color: var(--life-gold);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lifeos-objective-pill strong {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(244, 185, 40, 0.12);
  color: var(--life-gold);
  font-size: 0.74rem;
}

.lifeos-objective-popover {
  position: absolute;
  top: 46px;
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 56px));
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(125, 217, 255, 0.22);
  border-radius: 20px;
  background: rgba(6, 10, 23, 0.94);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  animation: lifeDropIn 220ms ease both;
}

.lifeos-objective-popover strong {
  display: block;
  color: var(--life-soft);
  font-size: 0.92rem;
  line-height: 1.36;
}

.lifeos-objective-popover small {
  display: block;
  color: rgba(220, 232, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 850;
}

.lifeos-objective-popover button {
  justify-self: start;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(244, 185, 40, 0.28);
  border-radius: 999px;
  color: var(--life-gold);
  background: rgba(244, 185, 40, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
}

.lifeos-phone-screen {
  position: absolute;
  inset: 15px;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 20% 8%, rgba(102, 184, 255, 0.2), transparent 30%),
    radial-gradient(circle at 86% 30%, rgba(244, 185, 40, 0.12), transparent 30%),
    linear-gradient(180deg, #101934, #060914 74%);
}

.lifeos-live-notification {
  position: absolute;
  top: 112px;
  left: 28px;
  right: 28px;
  z-index: 9;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 217, 255, 0.18);
  border-radius: 20px;
  color: var(--life-text);
  background: rgba(6, 10, 23, 0.82);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  text-align: left;
  animation: lifeDropIn 360ms ease both;
}

.lifeos-live-notification:not(.incoming) {
  grid-template-columns: 1fr;
}

.lifeos-live-notification span {
  display: block;
  color: var(--life-gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lifeos-live-notification strong {
  display: block;
  overflow: hidden;
  color: var(--life-soft);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lifeos-live-notification.incoming {
  border-color: rgba(88, 230, 176, 0.28);
  background: rgba(9, 28, 31, 0.9);
}

@keyframes lifeDropIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lifeos-phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

.lifeos-app-screen {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: auto;
  padding: 106px 16px 108px;
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 217, 255, 0.28) transparent;
}

.lifeos-app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lifeos-app-head span,
.lifeos-task-card > span,
.lifeos-response-panel > span {
  display: block;
  color: var(--life-gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lifeos-app-head h1 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.lifeos-lock {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 38px;
  text-align: center;
}

.lifeos-lock-time {
  font-size: 4.2rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.lifeos-lock-place {
  color: var(--life-muted);
  font-weight: 850;
}

.lifeos-notification-card {
  display: grid;
  width: 100%;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(125, 217, 255, 0.22);
  border-radius: 22px;
  color: var(--life-text);
  background: rgba(255, 255, 255, 0.1);
  text-align: left;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.lifeos-notification-card span {
  color: var(--life-blue);
  font-weight: 900;
}

.lifeos-notification-card strong { font-size: 1.08rem; }

.lifeos-notification-card em {
  color: var(--life-muted);
  font-style: normal;
  font-size: 0.86rem;
}

.lifeos-notification-card.pulse {
  animation: lifePulse 1.5s ease-in-out infinite;
}

@keyframes lifePulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28); }
  50% { transform: translateY(-2px); box-shadow: 0 26px 58px rgba(37, 196, 244, 0.22); }
}

.lifeos-message-list {
  display: grid;
  gap: 12px;
}

.lifeos-message-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  opacity: 0;
  transform: translateY(10px);
  animation: lifeMessageIn 360ms ease forwards;
  animation-delay: calc(var(--msg-index, 0) * 170ms);
}

.lifeos-message-row.mine {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.lifeos-message-row.system {
  display: block;
  text-align: center;
}

.lifeos-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(248, 251, 255, 0.22);
  border-radius: 16px;
  color: var(--life-text);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3), transparent 25%),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.3), transparent 10%),
    radial-gradient(circle at 42% 54%, rgba(6, 10, 23, 0.36), transparent 12%),
    radial-gradient(circle at 58% 54%, rgba(6, 10, 23, 0.36), transparent 12%),
    linear-gradient(135deg, var(--avatar-color, #66b8ff), rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  font-size: 0.78rem;
  font-weight: 950;
}

@keyframes lifeMessageIn {
  to { opacity: 1; transform: translateY(0); }
}

.lifeos-typing {
  display: inline-flex;
  width: max-content;
  gap: 4px;
  margin-left: 50px;
  padding: 11px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(8px);
  animation: lifeMessageIn 300ms ease forwards;
  animation-delay: calc(var(--msg-index, 0) * 170ms);
}

.lifeos-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(220, 232, 255, 0.72);
  animation: lifeTypingDot 900ms ease-in-out infinite;
}

.lifeos-typing i:nth-child(2) { animation-delay: 120ms; }
.lifeos-typing i:nth-child(3) { animation-delay: 240ms; }

@keyframes lifeTypingDot {
  0%, 100% { transform: translateY(0); opacity: 0.42; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.lifeos-bubble {
  max-width: 96%;
  padding: 12px 14px;
  border: 1px solid rgba(125, 217, 255, 0.13);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.08);
}

.lifeos-message-row.mine .lifeos-bubble {
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, rgba(37, 196, 244, 0.26), rgba(102, 184, 255, 0.14));
}

.lifeos-message-row.system .lifeos-bubble {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.lifeos-bubble span {
  display: block;
  color: var(--life-blue);
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.lifeos-bubble p {
  margin: 0;
  color: var(--life-soft);
  line-height: 1.45;
}

.lifeos-call-card,
.lifeos-voice-note,
.lifeos-document,
.lifeos-photo-card,
.lifeos-task-card,
.lifeos-response-panel,
.lifeos-empty {
  padding: 16px;
  border: 1px solid rgba(125, 217, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.lifeos-call-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 260px;
  text-align: center;
}

.lifeos-call-card .lifeos-avatar {
  width: 94px;
  height: 94px;
  border-radius: 32px;
  font-size: 1.4rem;
}

.lifeos-call-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.lifeos-call-card p,
.lifeos-call-card em,
.lifeos-app-copy,
.lifeos-task-card p,
.lifeos-lock p,
.lifeos-photo-card p {
  color: var(--life-muted);
  line-height: 1.55;
}

.lifeos-call-card em {
  color: rgba(125, 217, 255, 0.86);
  font-style: normal;
  font-weight: 850;
}

.lifeos-call-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(88, 230, 176, 0.28);
  border-radius: 999px;
  color: var(--life-text);
  background: rgba(88, 230, 176, 0.12);
  font-weight: 900;
}

.lifeos-call-play:disabled,
.lifeos-voice-body button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.lifeos-call-play[data-playing="1"],
.lifeos-voice-body button[data-playing="1"] {
  border-color: rgba(125, 217, 255, 0.42);
  background: rgba(125, 217, 255, 0.14);
}

.lifeos-call-lines {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
}

.lifeos-call-lines div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--life-soft);
  line-height: 1.45;
  animation: lifeCallLineIn 0.38s ease both;
  animation-delay: calc(var(--line-index, 0) * 120ms);
}

.lifeos-call-lines.locked {
  min-height: 88px;
}

.lifeos-call-placeholder {
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
  border: 1px dashed rgba(125, 217, 255, 0.2);
  background: linear-gradient(135deg, rgba(12, 21, 42, 0.78), rgba(4, 8, 18, 0.72)) !important;
}

.lifeos-call-placeholder span {
  width: min(180px, 70%);
  height: 18px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(125, 217, 255, 0.32) 0 6px, transparent 6px 13px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  background-size: auto, 80px 100%;
  animation: lifeWaveSweep 1.4s linear infinite;
}

.lifeos-call-placeholder strong {
  color: var(--life-text);
}

.lifeos-call-placeholder p {
  margin: 0;
  color: var(--life-muted);
  font-size: 0.82rem;
}

.lifeos-voice-note {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

@keyframes lifeCallLineIn {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lifeWaveSweep {
  from { background-position: 0 0, -80px 0; }
  to { background-position: 0 0, 180px 0; }
}

.lifeos-voice-body {
  display: grid;
  gap: 10px;
}

.lifeos-voice-body button,
.lifeos-history-list button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(37, 196, 244, 0.28);
  border-radius: 999px;
  color: var(--life-text);
  background: rgba(37, 196, 244, 0.12);
  font-weight: 900;
}

.lifeos-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}

.lifeos-wave i {
  display: block;
  width: 3px;
  height: 9px;
  border-radius: 999px;
  background: var(--life-cyan);
  animation: lifeWave 950ms ease-in-out infinite;
}

.lifeos-wave i:nth-child(2n) { height: 16px; animation-delay: -300ms; }
.lifeos-wave i:nth-child(3n) { height: 21px; animation-delay: -520ms; }

@keyframes lifeWave {
  0%, 100% { transform: scaleY(0.62); opacity: 0.62; }
  50% { transform: scaleY(1); opacity: 1; }
}

.lifeos-map-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(125, 217, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(37, 196, 244, 0.12), transparent 38%),
    radial-gradient(circle at 72% 38%, rgba(244, 185, 40, 0.18), transparent 26%),
    rgba(255, 255, 255, 0.07);
}

.lifeos-map-lines {
  position: absolute;
  inset: 28px;
  border: 2px solid rgba(125, 217, 255, 0.22);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 120px 0 0;
  transform: rotate(-8deg);
}

.lifeos-map-lines::before,
.lifeos-map-lines::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(244, 185, 40, 0.5);
}

.lifeos-map-lines::before {
  width: 80%;
  height: 3px;
  left: -20px;
  bottom: 54px;
}

.lifeos-map-lines::after {
  width: 3px;
  height: 82%;
  left: 45%;
  top: -16px;
}

.lifeos-map-current,
.lifeos-map-pin {
  position: absolute;
  z-index: 2;
  max-width: 142px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.82);
  color: var(--life-soft);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.lifeos-map-current {
  left: 18px;
  top: 18px;
  color: var(--life-gold);
}

.lifeos-map-pin::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--life-cyan);
}

.lifeos-map-pin.pin-1 { left: 42%; top: 32%; }
.lifeos-map-pin.pin-2 { left: 14%; bottom: 28%; }
.lifeos-map-pin.pin-3 { right: 9%; top: 22%; }
.lifeos-map-pin.pin-4 { right: 17%; bottom: 18%; }

.lifeos-document,
.lifeos-photo-card {
  display: grid;
  gap: 10px;
}

.lifeos-document > span,
.lifeos-photo-card > span {
  color: var(--life-gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lifeos-document h2,
.lifeos-photo-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.lifeos-document-row {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--life-soft);
}

.lifeos-photo-visual {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 72% 18%, rgba(244, 185, 40, 0.32), transparent 24%),
    linear-gradient(145deg, rgba(37, 196, 244, 0.18), rgba(255, 255, 255, 0.05));
}

.lifeos-photo-visual span {
  position: absolute;
  border-radius: 16px;
  background: rgba(5, 8, 22, 0.55);
  box-shadow: inset 0 0 0 1px rgba(125, 217, 255, 0.14);
}

.lifeos-photo-visual span:nth-child(1) { width: 42%; height: 54%; left: 10%; top: 20%; }
.lifeos-photo-visual span:nth-child(2) { width: 28%; height: 34%; right: 13%; top: 16%; }
.lifeos-photo-visual span:nth-child(3) { width: 58%; height: 18%; left: 22%; bottom: 12%; }

.lifeos-photo-card ul,
.lifeos-compact-list {
  margin: 0;
  padding-left: 20px;
  color: var(--life-soft);
  line-height: 1.55;
}

.lifeos-task-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border-color: rgba(244, 185, 40, 0.24);
  background: rgba(244, 185, 40, 0.075);
}

.lifeos-task-card.completed {
  border-color: rgba(88, 230, 176, 0.26);
  background: rgba(88, 230, 176, 0.085);
}

.lifeos-task-card h2,
.lifeos-response-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.22;
}

.lifeos-response-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.lifeos-response-list {
  display: grid;
  gap: 9px;
}

.lifeos-response-option {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(125, 217, 255, 0.15);
  border-radius: 16px;
  color: var(--life-text);
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.lifeos-response-option:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 217, 255, 0.38);
  background: rgba(255, 255, 255, 0.105);
}

.lifeos-response-option.selected {
  border-color: rgba(244, 185, 40, 0.48);
  background: rgba(244, 185, 40, 0.14);
}

.lifeos-response-option em {
  color: var(--life-muted);
  font-style: normal;
  font-size: 0.82rem;
}

.lifeos-textarea {
  width: 100%;
  resize: vertical;
  min-height: 108px;
  padding: 12px 13px;
  border: 1px solid rgba(125, 217, 255, 0.2);
  border-radius: 16px;
  color: var(--life-text);
  background: rgba(0, 0, 0, 0.18);
  line-height: 1.45;
}

.lifeos-primary-action,
.lifeos-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 185, 40, 0.52);
  background: linear-gradient(135deg, var(--life-gold), #ffe07d);
  color: #101526;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(244, 185, 40, 0.2);
}

.lifeos-secondary-action {
  border-color: rgba(125, 217, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--life-text);
  box-shadow: none;
}

.lifeos-primary-action.compact,
.lifeos-secondary-action.compact {
  min-height: 40px;
  padding: 0 13px;
  font-size: 0.86rem;
}

.lifeos-continue-row,
.lifeos-task-actions,
.lifeos-recorder {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.lifeos-inline-feedback {
  min-height: 20px;
  color: var(--life-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.lifeos-inline-feedback.error { color: #ffb4c0; }
.lifeos-inline-feedback.success { color: #a6f5d7; }

.lifeos-order-source {
  display: grid;
  gap: 8px;
}

.lifeos-order-source button {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(125, 217, 255, 0.15);
  border-radius: 14px;
  color: var(--life-text);
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}

.lifeos-order-source button.selected {
  border-color: rgba(244, 185, 40, 0.4);
  background: rgba(244, 185, 40, 0.12);
}

.lifeos-order-built {
  min-height: 52px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--life-muted);
}

.lifeos-order-built span {
  display: inline-flex;
  margin: 3px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(37, 196, 244, 0.14);
  color: var(--life-soft);
  font-weight: 900;
}

.lifeos-speaking-prep {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
}

.lifeos-speaking-prep span {
  color: var(--life-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
}

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

.lifeos-evidence-list.compact {
  max-height: 310px;
  overflow: auto;
}

.lifeos-evidence-list article,
.lifeos-history-list article,
.lifeos-note-list div {
  padding: 13px;
  border: 1px solid rgba(125, 217, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.lifeos-evidence-list article span,
.lifeos-history-list article span {
  display: block;
  color: var(--life-gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lifeos-evidence-list h3 {
  margin: 5px 0 0;
  font-size: 1rem;
}

.lifeos-evidence-list p,
.lifeos-history-list p {
  margin: 6px 0 0;
  color: var(--life-muted);
  line-height: 1.45;
}

.lifeos-evidence-list em {
  display: block;
  margin-top: 7px;
  color: var(--life-blue);
  font-style: normal;
  font-weight: 800;
}

.lifeos-note-list,
.lifeos-history-list {
  display: grid;
  gap: 10px;
}

.lifeos-dock {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 7;
  display: flex;
  gap: 7px;
  padding: 9px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid rgba(125, 217, 255, 0.14);
  border-radius: 24px;
  background: rgba(6, 10, 23, 0.78);
  backdrop-filter: blur(16px);
}

.lifeos-dock::-webkit-scrollbar { display: none; }

.lifeos-app-icon {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  flex: 0 0 58px;
  min-height: 52px;
  padding: 6px 4px;
  border: 0;
  border-radius: 16px;
  color: var(--life-text);
  background: transparent;
}

.lifeos-app-icon span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.08);
  color: var(--life-gold);
}

.lifeos-app-icon svg {
  width: 20px;
  height: 20px;
}

.lifeos-app-icon em {
  max-width: 100%;
  overflow: hidden;
  color: var(--life-muted);
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lifeos-app-icon.active span {
  background: linear-gradient(135deg, var(--life-cyan), var(--life-blue));
  color: #06101f;
}

.lifeos-app-icon.active em { color: var(--life-soft); }

.lifeos-app-icon b {
  position: absolute;
  top: 2px;
  right: 5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--life-coral);
  color: white;
  font-size: 0.62rem;
  line-height: 17px;
}

.lifeos-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  max-width: min(520px, calc(100% - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(125, 217, 255, 0.24);
  border-radius: 999px;
  background: rgba(6, 10, 23, 0.9);
  color: var(--life-soft);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.36);
  transform: translateX(-50%);
}

.lifeos-access-card {
  width: min(760px, calc(100% - 32px));
  margin: 12vh auto;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--life-border);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18, 31, 63, 0.92), rgba(8, 15, 32, 0.88));
  box-shadow: var(--life-shadow);
  text-align: center;
}

.lifeos-access-card h1 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.96;
}

.lifeos-access-card p {
  color: var(--life-muted);
  line-height: 1.6;
}

details {
  color: var(--life-muted);
}

details summary {
  cursor: pointer;
  color: var(--life-soft);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .lifeos-stage {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }

  .lifeos-phone-wrap { order: 1; }
}

@media (max-width: 780px) {
  .life-shell {
    width: min(100% - 22px, 720px);
    padding-top: 12px;
  }

  .life-topbar {
    position: relative;
    top: 0;
    border-radius: 20px;
    align-items: flex-start;
  }

  .life-top-actions { gap: 8px; }

  .life-link,
  .life-btn { min-height: 38px; padding: 0 12px; }

  .life-hero,
  .life-grid,
  .life-result-grid,
  .life-feedback-grid {
    grid-template-columns: 1fr;
  }

  .life-scenario-card.featured { grid-column: auto; }

  .life-universe { min-height: 360px; }

  .life-float-card { width: 152px; }

  .life-section-head {
    display: grid;
    align-items: start;
  }

  .life-history-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.life-page {
    background: #060914;
  }

  body.life-page::before { display: none; }

  .lifeos-stage {
    display: block;
    min-height: 100svh;
    padding: 0;
    background: #060914;
  }

  .lifeos-environment-art {
    display: none;
  }

  .lifeos-phone-wrap {
    width: 100%;
    min-height: 100svh;
  }

  .lifeos-phone {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .lifeos-phone::before {
    display: block;
    top: 8px;
    width: 118px;
    height: 34px;
  }

  .lifeos-phone-screen {
    inset: 0;
    border-radius: 0;
  }

  .lifeos-statusbar {
    top: 10px;
    left: 12px;
    right: 12px;
    grid-template-columns: 42px 1fr auto auto;
    gap: 6px;
  }

  .lifeos-objective-wrap {
    top: 50px;
    right: 10px;
  }

  .lifeos-objective-popover {
    width: min(320px, calc(100vw - 20px));
    right: 0;
  }

  .lifeos-app-screen {
    padding: 94px 12px 104px;
  }

  .lifeos-dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 20px;
  }

  .lifeos-app-icon {
    min-height: 50px;
  }

  .lifeos-lock {
    padding: 26px 18px;
  }

  .lifeos-lock-time {
    font-size: 3.6rem;
  }

  .lifeos-app-head h1 {
    font-size: 1.75rem;
  }

  .lifeos-toast {
    bottom: 92px;
    border-radius: 18px;
  }
}

@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;
  }
}

.lifeos-stage.reduced-motion *,
.lifeos-stage.reduced-motion *::before,
.lifeos-stage.reduced-motion *::after {
  animation: none !important;
  transition: none !important;
}
