:root {
  --bg: #05070d;
  --panel: #0d1322;
  --panel-2: #121a2b;
  --text: #f4f7fb;
  --muted: #9dadc5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #8bd3ff;
  --accent-2: #c084fc;
  --green: #4ade80;
  --red: #fb7185;
  --gold: #f5c56b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.2), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(192, 132, 252, 0.16), transparent 30rem),
    radial-gradient(circle at 60% 80%, rgba(245, 197, 107, 0.08), transparent 28rem),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 58% 44%, rgba(139, 211, 255, 0.08), transparent 24rem),
    radial-gradient(circle at 64% 54%, rgba(245, 197, 107, 0.06), transparent 20rem),
    linear-gradient(115deg, transparent 18%, rgba(139, 211, 255, 0.035) 42%, rgba(245, 197, 107, 0.045) 55%, transparent 78%);
  opacity: 0.8;
}

.cosmic-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.62;
  mix-blend-mode: screen;
}

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

button,
input {
  font: inherit;
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.45);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.75rem;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.nav-button {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero,
.section,
.article-page {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: center;
  padding: 5.5rem 0 4rem;
}

.hero.hero-simple {
  position: relative;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.5fr);
  max-width: 1320px;
  margin-left: auto;
  overflow: hidden;
}

.palantir-public-hero {
  min-height: min(760px, calc(100vh - 8rem));
}

.hero-copy,
.hero-links {
  position: relative;
  z-index: 1;
}

.hero-market-line {
  position: absolute;
  inset: 5% 0 auto 0;
  width: 100%;
  height: 74%;
  opacity: 0.78;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-orbit {
  position: relative;
  min-height: 520px;
  align-self: stretch;
}

.orbit-line {
  position: absolute;
  right: 7%;
  width: min(28vw, 420px);
  height: min(28vw, 420px);
  border: 1px solid rgba(139, 211, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(139, 211, 255, 0.08), 0 0 80px rgba(192, 132, 252, 0.08);
}

.orbit-line span {
  position: absolute;
  top: 18%;
  right: 8%;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.life-line {
  top: 6%;
}

.invest-line {
  top: 28%;
  right: 26%;
  border-color: rgba(245, 197, 107, 0.22);
}

.invest-line span {
  color: var(--gold);
}

.orbit-node {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 30px var(--accent);
}

.node-a {
  top: 20%;
  right: 22%;
}

.node-b {
  top: 52%;
  right: 42%;
  background: var(--gold);
  box-shadow: 0 0 30px var(--gold);
}

.node-c {
  top: 70%;
  right: 14%;
  background: var(--accent-2);
  box-shadow: 0 0 30px var(--accent-2);
}

.hero-links {
  display: grid;
  gap: 0.85rem;
  align-self: center;
}

.hero-links a {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 92% 12%, rgba(245, 197, 107, 0.08), transparent 9rem),
    rgba(255, 255, 255, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 197, 107, 0.38);
}

.hero-links span {
  color: var(--accent);
  font-weight: 800;
}

.hero-links strong {
  font-size: 1.25rem;
}

.hero-links small {
  color: var(--muted);
}


.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 820px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-subtitle {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.primary-button,
.secondary-button,
.article-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.secondary-button,
.article-card button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.trust-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card,
.article-card,
.metric-card,
.price-card,
.login-section,
.chart-panel,
.article-body {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-card {
  padding: 1.4rem;
}

.card-header,
.signal-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.card-header {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.hero-card h2 {
  font-size: 1.7rem;
  line-height: 1.15;
}

.hero-card p,
.section-heading p,
.article-card p,
.chart-panel p,
.price-card li,
.login-section p,
.article-body p {
  color: var(--muted);
  line-height: 1.75;
}

.signal-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.signal-list div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.signal-list span {
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.physical-heading {
  max-width: 980px;
}

.physical-heading-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
}

.physical-heading-row h2 {
  margin: 0;
}

.physical-heading-row .primary-button {
  flex: 0 0 auto;
}

.physical-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.section-heading h2,
.login-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.article-grid,
.dashboard-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

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

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

.feed-list {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 1rem;
}

.feed-list .article-card h3 {
  min-height: auto;
}

.compact-article-grid .article-card {
  padding: 1rem;
}

.compact-article-grid .article-card-cover {
  max-height: 135px;
  margin-bottom: 0.7rem;
}

.compact-article-grid .article-card h3 {
  min-height: 2.7rem;
  margin: 0.65rem 0;
  font-size: 1.12rem;
}

.compact-article-grid .article-card p {
  min-height: 2.8rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}

.macro-module-grid,
.macro-admin-grid {
  display: grid;
  gap: 1rem;
}

.macro-system-card {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(260px, 0.38fr);
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 88% 15%, rgba(139, 211, 255, 0.14), transparent 16rem),
    linear-gradient(135deg, rgba(139, 211, 255, 0.08), rgba(245, 197, 107, 0.045)),
    rgba(255, 255, 255, 0.04);
}

.macro-system-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.macro-system-card p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
}

.macro-system-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.macro-system-points span {
  padding: 0.8rem;
  color: var(--accent);
  border: 1px solid rgba(139, 211, 255, 0.2);
  border-radius: 1rem;
  background: rgba(139, 211, 255, 0.07);
  font-weight: 800;
  text-align: center;
}

.macro-cycle-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(192, 132, 252, 0.22), transparent 22rem),
    radial-gradient(circle at 12% 10%, rgba(139, 211, 255, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.045);
}

.macro-cycle-copy h3 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.macro-cycle-copy p,
.macro-cycle-copy small {
  color: var(--muted);
  line-height: 1.75;
}

.macro-cycle-visual {
  display: grid;
  gap: 1rem;
}

.cycle-chart {
  width: 100%;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 68% 18%, rgba(139, 211, 255, 0.1), transparent 13rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(10, 11, 18, 0.92));
}

.cycle-axis {
  fill: none;
  stroke: rgba(244, 247, 251, 0.82);
  stroke-width: 2.4;
}

.tech-curve,
.business-curve {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tech-curve {
  stroke: url(#techGradient);
  stroke-width: 4.4;
}

.business-curve {
  stroke: url(#businessGradient);
  stroke-width: 3.2;
}

.tech-curve.glow,
.business-curve.glow {
  opacity: 0.22;
  stroke-width: 12;
}

.tech-curve.glow {
  stroke: url(#techGradient);
}

.cycle-point {
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px currentColor);
}

.business-point {
  color: var(--accent);
  fill: var(--accent);
}

.cycle-ripple {
  fill: none;
  stroke: rgba(139, 211, 255, 0.55);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: cycleRipple 2.4s ease-out infinite;
}

.cycle-ripple.delay {
  animation-delay: 1.1s;
}

@keyframes cycleRipple {
  0% {
    opacity: 0.68;
    transform: scale(0.45);
  }
  70% {
    opacity: 0.08;
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.cycle-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cycle-status-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
}

.cycle-status-row span,
.cycle-phase-legend {
  color: var(--muted);
  font-size: 0.9rem;
}

.cycle-phase-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.cycle-phase-legend span {
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
}

.macro-module {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.045);
}

.macro-module-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.macro-module-copy p,
.macro-module-copy small,
.muted-text {
  color: var(--muted);
  line-height: 1.75;
}

.macro-chart-slot {
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(0, 0, 0, 0.24);
}

.macro-chart-slot img,
.macro-admin-preview {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.empty-chart {
  color: var(--muted);
}

.macro-admin-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.045);
}

.macro-admin-card label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.macro-admin-card textarea,
.macro-admin-card input {
  width: 100%;
  padding: 0.8rem 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}


.life-page {
  width: min(920px, 100%);
  margin: 0 auto;
}

.life-shell {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.life-header {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.96);
}

.life-header h1 {
  margin-bottom: 0.25rem;
  font-size: 1.6rem;
}

.life-header p,
.life-login-tip a {
  color: var(--muted);
}

.life-composer,
.life-post {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 999px;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-weight: 900;
}

.avatar-img {
  object-fit: cover;
}

.life-composer textarea {
  width: 100%;
  padding: 0.8rem 0;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 1.35rem;
  outline: none;
  resize: vertical;
}

.life-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}

.image-upload-button {
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.image-upload-button input {
  display: none;
}

.life-login-tip,
.life-new-posts {
  padding: 0.9rem 1rem;
  color: var(--accent);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.life-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.life-post-meta span,
.life-post-stats {
  color: var(--muted);
}

.life-post-content {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.7;
}

.life-post-image {
  display: block;
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
}

.life-post-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.life-post-stats a,
.inline-action button {
  color: var(--muted);
}

.inline-action {
  margin: 0;
}

.inline-action button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.inline-action button:hover,
.inline-action.is-active button {
  color: var(--accent);
}

.pinned-label {
  padding: 0.15rem 0.45rem;
  color: #06111f;
  border-radius: 999px;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.post-actions button,
.comment-form button {
  padding: 0.5rem 0.8rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.comment-form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.discuss-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem auto;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.discuss-search input,
.discuss-search select,
.discuss-search button,
.post-actions input {
  padding: 0.65rem 0.8rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.discuss-search button {
  cursor: pointer;
}

.comment-form textarea {
  width: 100%;
  padding: 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.24);
  resize: vertical;
}

.comment-card {
  background: rgba(255, 255, 255, 0.025);
}

.section-card {
  display: block;
  min-height: 13rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(139, 211, 255, 0.11), rgba(192, 132, 252, 0.07)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, border-color 160ms ease;
}

.section-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 211, 255, 0.5);
}

.section-card span {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-card p {
  color: var(--muted);
  line-height: 1.75;
}

.article-card,
.price-card,
.metric-card {
  padding: 1.25rem;
}

.article-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 180px;
  margin: -0.25rem 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.22);
}

.feed-list .article-card-cover {
  max-height: 220px;
}

.article-cover-preview,
.admin-cover-thumb {
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.article-cover-preview {
  width: min(100%, 420px);
  aspect-ratio: 16 / 9;
}

.admin-cover-thumb {
  width: 7rem;
  height: 4rem;
}

.article-card h3 {
  min-height: 4.5rem;
  margin: 0.9rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.article-card a {
  color: var(--accent);
  font-weight: 800;
}

.tag,
.badge {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.free {
  color: #052e16;
  background: var(--green);
}

.tag.paid,
.badge {
  color: #211006;
  background: var(--gold);
}

.locked {
  position: relative;
  overflow: hidden;
}

.locked::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(8, 17, 31, 0.9));
  pointer-events: none;
}

.metric-card {
  background: var(--panel);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 0.55rem 0;
  font-size: 1.8rem;
}

.metric-card.up small {
  color: var(--green);
}

.metric-card.down small {
  color: var(--red);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.palantir-page {
  padding: 3rem 0 5rem;
}

.palantir-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(139, 211, 255, 0.18);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 72% 24%, rgba(245, 197, 107, 0.14), transparent 18rem),
    radial-gradient(circle at 18% 10%, rgba(139, 211, 255, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(9, 18, 32, 0.92), rgba(13, 19, 34, 0.76));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.palantir-hero h1 {
  max-width: 900px;
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.palantir-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.palantir-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.palantir-module-card,
.palantir-panel {
  border: 1px solid rgba(139, 211, 255, 0.16);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(139, 211, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(5, 10, 18, 0.62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.palantir-module-card {
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.palantir-module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 107, 0.45);
  background:
    radial-gradient(circle at 85% 8%, rgba(245, 197, 107, 0.13), transparent 11rem),
    linear-gradient(180deg, rgba(139, 211, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.palantir-module-card h3,
.palantir-panel h3 {
  margin: 0.4rem 0 0.75rem;
  font-size: 1.35rem;
}

.palantir-module-card p,
.palantir-module-card small,
.palantir-panel li,
.palantir-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.palantir-card-metrics {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.palantir-card-metrics span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.palantir-card-metrics strong {
  color: var(--text);
  text-align: right;
}

.palantir-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.palantir-panel {
  overflow: hidden;
  padding: 1.2rem;
}

.palantir-page[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.palantir-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.palantir-panel th,
.palantir-panel td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.palantir-entry {
  background:
    radial-gradient(circle at 80% 12%, rgba(245, 197, 107, 0.22), transparent 12rem),
    linear-gradient(135deg, rgba(139, 211, 255, 0.16), rgba(192, 132, 252, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.sentinel-family-page {
  display: grid;
  gap: 1rem;
}

.sentinel-family-board {
  display: grid;
  gap: 1rem;
}

.sentinel-board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sentinel-board-heading h3 {
  margin-bottom: 0.4rem;
}

.sentinel-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sentinel-stat-card {
  padding: 1rem;
  border: 1px solid rgba(139, 211, 255, 0.16);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(34, 197, 94, 0.14), transparent 9rem),
    rgba(255, 255, 255, 0.035);
}

.sentinel-stat-card span,
.sentinel-stat-card small {
  display: block;
  color: var(--muted);
}

.sentinel-stat-card strong {
  display: block;
  margin: 0.35rem 0;
  color: #86efac;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
}

.sentinel-family-board h4,
.sentinel-person-panel h4 {
  margin: 0.35rem 0 0.65rem;
  color: var(--text);
}

.sentinel-person-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sentinel-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sentinel-chart-card {
  display: grid;
  gap: 0.65rem;
}

.sentinel-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sentinel-subject-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.sentinel-subject-tab {
  min-width: 3.2rem;
  padding: 0.45rem 0.8rem;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.sentinel-subject-tab.is-active {
  color: #08111f;
  background: #86efac;
}

.sentinel-subject-panel[hidden] {
  display: none;
}

.family-step-chart,
.sentinel-empty-chart {
  width: 100%;
  min-height: 18rem;
  border: 1px solid rgba(139, 211, 255, 0.12);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.26);
}

.family-step-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.2rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.family-step-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.family-step-legend i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.sentinel-empty-chart {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.family-step-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.family-step-grid text {
  fill: var(--muted);
  font-size: 0.78rem;
}

.family-step-series path {
  fill: none;
  stroke: var(--series-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.family-step-series circle {
  fill: var(--series-color);
  stroke: #08111f;
  stroke-width: 2;
}

.family-step-axis text {
  fill: var(--muted);
  font-size: 0.78rem;
  text-anchor: middle;
}


.health-intel-grid,
.health-symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.health-intel-card,
.health-symptom-card {
  padding: 1rem;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 88% 8%, rgba(245, 197, 107, 0.1), transparent 9rem),
    rgba(255, 255, 255, 0.035);
}

.health-intel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.health-intel-top span {
  padding: 0.28rem 0.55rem;
  color: #06111f;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 0.78rem;
  font-weight: 900;
}

.health-intel-top code,
.palantir-panel code {
  color: #bfdbfe;
  word-break: break-all;
}

.sparkbot-console {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  margin: 1rem 0;
}

.sparkbot-experiment-console {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.sparkbot-experiment-console .sparkbot-status-grid {
  grid-template-columns: repeat(4, minmax(7.2rem, 1fr));
}

.sparkbot-video-panel,
.sparkbot-control-panel {
  padding: 1rem;
  border: 1px solid rgba(139, 211, 255, 0.16);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(139, 211, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.sparkbot-video-frame {
  position: relative;
  display: grid;
  min-height: 360px;
  max-height: min(72vh, 640px);
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 211, 255, 0.12), transparent 16rem),
    rgba(2, 6, 23, 0.68);
}

.sparkbot-video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(72vh, 640px);
  object-fit: contain;
}

.sparkbot-video-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

#sparkbotStreamToggle[data-active="1"] {
  background: linear-gradient(135deg, #fca5a5, #fcd34d);
}

.sparkbot-video-frame span {
  position: absolute;
  color: var(--muted);
  font-weight: 900;
}

.sparkbot-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(7.2rem, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.sparkbot-status-grid span {
  padding: 0.65rem;
  border: 1px solid rgba(139, 211, 255, 0.12);
  border-radius: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
}

.sparkbot-status-grid strong {
  display: flex;
  min-height: 1.35rem;
  gap: 0.38rem;
  align-items: center;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 1rem;
}

.sparkbot-status-grid strong i {
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 0.18rem rgba(148, 163, 184, 0.14);
}

#sparkbotStatus[data-state="online"] {
  color: #86efac;
}

#sparkbotStatus[data-state="offline"] {
  color: #fca5a5;
}

#sparkbotRobotOnline[data-state="online"],
#sparkbotMacOnline[data-state="online"] {
  color: #86efac;
}

#sparkbotRobotOnline[data-state="online"] i,
#sparkbotMacOnline[data-state="online"] i {
  background: #22c55e;
  box-shadow: 0 0 0 0.18rem rgba(34, 197, 94, 0.16);
}

#sparkbotRobotOnline[data-state="offline"],
#sparkbotMacOnline[data-state="offline"] {
  color: #fca5a5;
}

#sparkbotRobotOnline[data-state="offline"] i,
#sparkbotMacOnline[data-state="offline"] i {
  background: #64748b;
}

#sparkbotCurrentMode,
#sparkbotUploading,
#sparkbotLastSentinel {
  color: #f8d97a;
}

.sparkbot-control-panel {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.sparkbot-joystick {
  position: relative;
  width: min(260px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(139, 211, 255, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(139, 211, 255, 0.16), transparent 56%),
    rgba(2, 6, 23, 0.55);
  touch-action: none;
  user-select: none;
}

.sparkbot-joystick::before,
.sparkbot-joystick::after {
  position: absolute;
  background: rgba(148, 163, 184, 0.18);
  content: "";
}

.sparkbot-joystick::before {
  top: 50%;
  left: 12%;
  width: 76%;
  height: 1px;
}

.sparkbot-joystick::after {
  top: 12%;
  left: 50%;
  width: 1px;
  height: 76%;
}

.sparkbot-joystick span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid rgba(245, 197, 107, 0.55);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 26px rgba(245, 197, 107, 0.22);
  transform: translate(-50%, -50%);
}

.sparkbot-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

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

.sparkbot-command-grid button {
  padding: 0.7rem 0.85rem;
  color: var(--text);
  border: 1px solid rgba(139, 211, 255, 0.18);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 900;
}

.sparkbot-experiment-panel {
  padding: 0.75rem;
  border: 1px solid rgba(245, 197, 107, 0.18);
  border-radius: 0.8rem;
  background: rgba(245, 197, 107, 0.055);
}

.sparkbot-experiment-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.sparkbot-experiment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.sparkbot-experiment-grid span {
  min-width: 0;
  padding: 0.55rem;
  color: var(--muted);
  border: 1px solid rgba(139, 211, 255, 0.12);
  border-radius: 0.65rem;
  background: rgba(2, 6, 23, 0.28);
  font-size: 0.78rem;
}

.sparkbot-experiment-grid span:nth-child(3),
.sparkbot-experiment-grid span:nth-child(4),
.sparkbot-experiment-grid span:nth-child(5) {
  grid-column: 1 / -1;
}

.sparkbot-experiment-grid strong {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.18rem;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.9rem;
}

.sparkbot-label-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.sparkbot-label-grid button {
  min-height: 3rem;
  padding: 0.65rem;
  color: var(--text);
  border: 1px solid rgba(139, 211, 255, 0.18);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 900;
}

.sparkbot-label-grid button:hover {
  border-color: rgba(248, 217, 122, 0.44);
  background: rgba(248, 217, 122, 0.1);
}

.sparkbot-alert-heading {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.sparkbot-alert-heading h3 {
  margin: 0;
}

.sparkbot-alert-heading button {
  padding: 0.5rem 0.75rem;
  color: var(--text);
  border: 1px solid rgba(139, 211, 255, 0.18);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 900;
}

.sparkbot-alert-heading button[data-active="1"] {
  color: #07111f;
  border-color: rgba(248, 217, 122, 0.6);
  background: linear-gradient(135deg, #9bdcff, #f8d97a);
}

.sparkbot-footstep-alert {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.28);
}

.sparkbot-footstep-alert div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.sparkbot-footstep-alert strong {
  color: var(--text);
  font-size: 1.05rem;
}

.sparkbot-footstep-alert span {
  color: var(--muted);
  font-size: 0.86rem;
}

.sparkbot-footstep-alert[data-state="watch"] {
  border-color: rgba(248, 217, 122, 0.5);
  background: rgba(248, 217, 122, 0.1);
}

.sparkbot-footstep-alert[data-state="warn"] {
  border-color: rgba(252, 165, 165, 0.72);
  background: rgba(248, 113, 113, 0.16);
  box-shadow: 0 0 0 0.18rem rgba(248, 113, 113, 0.08);
}

.sparkbot-footstep-alert[data-state="warn"] strong {
  color: #fca5a5;
}

.sparkbot-footstep-alert[data-state="unavailable"] strong {
  color: #fca5a5;
}

.muted-text.compact {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
}

#sparkbotVibrationLevel[data-level="quiet"] {
  color: #86efac;
}

#sparkbotVibrationLevel[data-level="light"] {
  color: #f8d97a;
}

#sparkbotVibrationLevel[data-level="medium"] {
  color: #fbbf24;
}

#sparkbotVibrationLevel[data-level="strong"],
#sparkbotVibrationLevel[data-level="unavailable"] {
  color: #fca5a5;
}

.sparkbot-log {
  min-height: 2.4rem;
  padding: 0.65rem;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.28);
  font-size: 0.9rem;
}

.meeting-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.meeting-bulk-form {
  display: grid;
  gap: 1rem;
}

.meeting-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 1rem;
  background: rgba(5, 10, 18, 0.68);
}

.meeting-delete-notice {
  width: fit-content;
  margin-bottom: 0.9rem;
  padding: 0.55rem 0.75rem;
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.24);
  border-radius: 0.75rem;
  background: rgba(22, 101, 52, 0.18);
  font-weight: 800;
}

.danger-button {
  background: linear-gradient(135deg, #fb7185, #f59e0b);
}

.meeting-card {
  position: relative;
  display: grid;
  min-height: 18rem;
  gap: 0.7rem;
  align-content: start;
  padding: 1rem;
  color: var(--text);
  border: 1px solid rgba(139, 211, 255, 0.16);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(245, 197, 107, 0.14), transparent 8rem),
    linear-gradient(180deg, rgba(139, 211, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(5, 10, 18, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.meeting-card-link {
  display: grid;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.meeting-select {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.34rem 0.55rem;
  color: var(--text);
  border: 1px solid rgba(139, 211, 255, 0.24);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.76);
  font-size: 0.78rem;
  font-weight: 900;
}

.meeting-select input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
}

.meeting-card-photo {
  display: grid;
  min-height: 9rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.35);
}

.meeting-card-photo img {
  display: block;
  width: 100%;
  height: 9rem;
  object-fit: cover;
}

.meeting-card-photo-empty {
  color: var(--muted);
  font-weight: 800;
}

.meeting-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 197, 107, 0.48);
}

.meeting-card-kicker {
  width: fit-content;
  padding: 0.22rem 0.5rem;
  color: #06111f;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 0.76rem;
  font-weight: 900;
}

.meeting-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.meeting-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.meeting-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.meeting-card-meta span {
  padding: 0.26rem 0.5rem;
  color: var(--muted);
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
}

.meeting-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.meeting-detail-block {
  padding: 1rem;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.meeting-detail-block h3,
.meeting-summary-panel h3 {
  margin-top: 0;
}

.meeting-detail-block li {
  margin: 0.45rem 0;
  color: var(--muted);
  line-height: 1.65;
}

.meeting-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.meeting-photo-grid a {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
}

.meeting-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.35);
}

.meeting-transcript {
  max-height: 28rem;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
  font: inherit;
  line-height: 1.75;
}

.health-intel-card h3,
.health-symptom-card h3 {
  margin: 0.3rem 0 0.6rem;
}

.health-intel-card p,
.health-symptom-card p,
.health-symptom-card small {
  color: var(--muted);
  line-height: 1.75;
}

.health-intel-card strong {
  display: block;
  margin-top: 0.8rem;
  color: var(--text);
  line-height: 1.65;
}

.health-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.health-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.9rem 0 1rem;
}

.health-section-nav a {
  padding: 0.55rem 0.8rem;
  color: #bfdbfe;
  border: 1px solid rgba(139, 211, 255, 0.16);
  border-radius: 999px;
  background: rgba(139, 211, 255, 0.06);
  font-size: 0.9rem;
  font-weight: 900;
}

.health-section-nav a.is-active {
  color: #06111f;
  border-color: rgba(245, 197, 107, 0.65);
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.health-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.health-home-card {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  border: 1px solid rgba(139, 211, 255, 0.16);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 88% 8%, rgba(245, 197, 107, 0.12), transparent 10rem),
    linear-gradient(180deg, rgba(139, 211, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(5, 10, 18, 0.62);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.health-home-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 107, 0.46);
  background:
    radial-gradient(circle at 88% 8%, rgba(245, 197, 107, 0.18), transparent 10rem),
    linear-gradient(180deg, rgba(139, 211, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.health-home-card h3 {
  margin: 0.25rem 0 0.55rem;
  color: var(--text);
  font-size: 1.25rem;
}

.health-home-card p {
  color: var(--muted);
  line-height: 1.7;
}

.health-module-card {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgba(139, 211, 255, 0.16);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 90% 8%, rgba(245, 197, 107, 0.1), transparent 11rem),
    linear-gradient(180deg, rgba(139, 211, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(5, 10, 18, 0.62);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.health-module-wide {
  grid-column: span 2;
}

.health-module-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.health-module-top h3 {
  margin: 0.2rem 0 0;
  font-size: 1.28rem;
}

.health-module-top strong {
  flex: 0 0 auto;
  padding: 0.35rem 0.6rem;
  color: #06111f;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 0.8rem;
  white-space: nowrap;
}

.health-module-card > p {
  color: var(--muted);
  line-height: 1.75;
}

.health-module-details {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(139, 211, 255, 0.12);
}

.health-module-details summary {
  cursor: pointer;
  color: #bfdbfe;
  font-weight: 900;
  list-style: none;
}

.health-module-details summary::-webkit-details-marker {
  display: none;
}

.health-module-details summary::before {
  margin-right: 0.45rem;
  color: var(--gold);
  content: "+";
}

.health-module-details[open] summary::before {
  content: "-";
}

.health-module-details table {
  margin-top: 0.75rem;
}

.health-timeline-preview {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.health-timeline-preview li {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(139, 211, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.2);
}

.health-timeline-preview strong {
  color: var(--text);
}

.health-timeline-preview span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-rule-box {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(245, 197, 107, 0.22);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 92% 12%, rgba(245, 197, 107, 0.12), transparent 10rem),
    rgba(245, 197, 107, 0.035);
}

.health-rule-box strong {
  color: var(--gold);
}

.health-rule-box p {
  margin: 0.45rem 0 0.8rem;
  color: var(--muted);
  line-height: 1.75;
}

.health-window-list {
  display: grid;
  gap: 1rem;
}

.health-window-card {
  padding: 1rem;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 95% 8%, rgba(139, 211, 255, 0.1), transparent 11rem),
    rgba(255, 255, 255, 0.03);
}

.health-window-head,
.health-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.health-window-head h3,
.health-context-head h4 {
  margin: 0.2rem 0 0;
}

.health-window-head > strong,
.health-context-head > strong {
  flex: 0 0 auto;
  padding: 0.32rem 0.55rem;
  color: #06111f;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 0.78rem;
  white-space: nowrap;
}

.health-context-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.health-context-block {
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.95rem;
  background: rgba(2, 6, 23, 0.22);
}

.health-context-block p {
  margin: 0.45rem 0 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}

.health-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.health-chart-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 1.05rem;
  background:
    radial-gradient(circle at 86% 10%, rgba(245, 197, 107, 0.11), transparent 9rem),
    linear-gradient(180deg, rgba(139, 211, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.health-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.health-chart-head span,
.health-chart-meta,
.health-chart-card p {
  color: var(--muted);
  font-size: 0.82rem;
}

.health-chart-head h4 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.35;
}

.health-chart-head strong {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  color: #dbeafe;
  border: 1px solid rgba(139, 211, 255, 0.18);
  border-radius: 999px;
  background: rgba(139, 211, 255, 0.08);
  font-size: 0.86rem;
  white-space: nowrap;
}

.health-chart-head strong.is-alert {
  color: #06111f;
  border-color: rgba(245, 197, 107, 0.72);
  background: linear-gradient(135deg, var(--gold), #f97316);
}

.health-trend-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.health-trend-svg text {
  fill: rgba(203, 213, 225, 0.7);
  font-size: 10px;
}

.health-trend-grid {
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
}

.health-trend-area {
  fill: rgba(139, 211, 255, 0.1);
}

.health-trend-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(139, 211, 255, 0.35));
}

.health-trend-point {
  fill: #06111f;
  stroke: var(--accent);
  stroke-width: 2.4;
}

.health-trend-point.is-alert {
  stroke: var(--gold);
  filter: drop-shadow(0 0 7px rgba(245, 197, 107, 0.52));
}

.health-chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: -0.25rem;
}

.health-chart-card p {
  margin: 0.65rem 0 0;
  line-height: 1.55;
}

.health-record-table {
  overflow-x: auto;
}

.health-timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.health-timeline-card {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.22fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 98% 8%, rgba(139, 211, 255, 0.1), transparent 10rem),
    rgba(255, 255, 255, 0.03);
}

.health-timeline-date {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(139, 211, 255, 0.14);
}

.health-timeline-date span {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
}

.health-timeline-date strong {
  width: fit-content;
  padding: 0.32rem 0.55rem;
  color: #06111f;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 0.78rem;
}

.health-timeline-body {
  min-width: 0;
}

.health-timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.health-timeline-top h4 {
  margin: 0;
  font-size: 1.05rem;
}

.health-timeline-top small {
  max-width: 42%;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}

.health-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.health-chip {
  padding: 0.32rem 0.55rem;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  font-weight: 800;
}

.health-chip.is-alert {
  color: #06111f;
  border-color: rgba(245, 197, 107, 0.7);
  background: linear-gradient(135deg, var(--gold), #f97316);
}

.health-chip.is-normal {
  color: #bfdbfe;
  border-color: rgba(139, 211, 255, 0.25);
  background: rgba(139, 211, 255, 0.08);
}

.health-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.health-focus-grid span {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(139, 211, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.22);
}

.health-focus-grid small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-focus-grid strong,
.health-metric-drawer summary strong {
  display: block;
  margin-top: 0.25rem;
  color: #dbeafe;
  font-size: 0.95rem;
}

.health-focus-grid strong.is-alert,
.health-metric-drawer summary strong.is-alert {
  color: var(--gold);
}

.health-date-details,
.health-full-records,
.health-metric-group,
.health-metric-drawer {
  margin-top: 0.85rem;
}

.health-date-details summary,
.health-full-records summary,
.health-metric-group summary,
.health-metric-drawer summary {
  cursor: pointer;
  color: #bfdbfe;
  font-weight: 900;
}

.health-metric-library {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.health-metric-group {
  padding: 0.85rem;
  border: 1px solid rgba(139, 211, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.028);
}

.health-metric-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.health-metric-group > summary::-webkit-details-marker,
.health-metric-drawer > summary::-webkit-details-marker,
.health-full-records > summary::-webkit-details-marker,
.health-date-details > summary::-webkit-details-marker {
  display: none;
}

.health-metric-group > summary::before,
.health-metric-drawer > summary::before,
.health-full-records > summary::before,
.health-date-details > summary::before {
  color: var(--gold);
  content: "+";
  margin-right: 0.45rem;
}

.health-metric-group[open] > summary::before,
.health-metric-drawer[open] > summary::before,
.health-full-records[open] > summary::before,
.health-date-details[open] > summary::before {
  content: "-";
}

.health-metric-group > summary strong {
  color: var(--gold);
}

.health-metric-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.health-metric-drawer {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.24);
}

.health-metric-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  list-style: none;
}

.health-metric-drawer > summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-metric-drawer .health-chart-card {
  margin-top: 0.8rem;
}

.chart-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.25rem;
}

.chart-line {
  height: 220px;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, transparent 18%, rgba(125, 211, 252, 0.4) 18% 20%, transparent 20% 35%, rgba(245, 197, 107, 0.55) 35% 37%, transparent 37% 58%, rgba(167, 139, 250, 0.5) 58% 60%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.price-card {
  position: relative;
  background: var(--panel);
}

.price-card.featured {
  border-color: rgba(125, 211, 252, 0.6);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.12), rgba(255, 255, 255, 0.04));
}

.price {
  margin: 0.7rem 0 1rem;
  font-size: 2.5rem;
  font-weight: 900;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
}

.price-card ul {
  min-height: 9rem;
  padding-left: 1.2rem;
}

.login-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 1.5rem;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

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

.form-error {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, 0.5);
  border-radius: 0.9rem;
  background: rgba(127, 29, 29, 0.32);
  line-height: 1.6;
}

.login-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}

.login-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}

.login-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  resize: vertical;
}

.nav-user {
  max-width: 14rem;
  overflow: hidden;
  color: var(--accent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-box,
.admin-table {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(0, 0, 0, 0.16);
}

.pay-address {
  overflow-x: auto;
  padding: 1rem;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  white-space: nowrap;
}

.payment-support-box {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  color: var(--muted);
  border: 1px solid rgba(139, 211, 255, 0.2);
  border-radius: 1rem;
  background: rgba(139, 211, 255, 0.06);
  line-height: 1.7;
}

.payment-support-box a {
  color: var(--accent);
  font-weight: 800;
}

.qr-placeholder {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.admin-table {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
}

.admin-table input {
  width: 5rem;
  padding: 0.4rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.admin-table button {
  margin-left: 0.4rem;
  padding: 0.45rem 0.7rem;
  color: #06111f;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.checkbox-label {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem !important;
}

.checkbox-label input {
  width: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.paywall-dialog {
  max-width: 520px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--panel-2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.paywall-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.dialog-close {
  float: right;
  width: 2rem;
  height: 2rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.article-page {
  padding: 3rem 0 5rem;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 3rem);
}

.article-body h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.article-body h2 {
  margin-top: 2rem;
}

.article-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin-top: 2rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.9;
}

.article-content *:not(img):not(figure):not(figcaption) {
  color: var(--text) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.9 !important;
}

.article-content p,
.article-content li,
.article-content div,
.article-content span {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.9;
}

.article-content div {
  margin: 0.8rem 0;
}

.article-content strong,
.article-content b {
  color: var(--text);
  font-weight: 700;
}

.article-content a {
  color: var(--text);
  font-weight: 700;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.9;
}

.article-content h1 p,
.article-content h2 p,
.article-content h3 p,
.article-content h4 p,
.article-content h1 div,
.article-content h2 div,
.article-content h3 div,
.article-content h4 div,
.article-content h1 span,
.article-content h2 span,
.article-content h3 span,
.article-content h4 span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.article-content h1 {
  font-size: 1.05rem;
}

.article-content h2 {
  font-size: 1.05rem;
}

.article-content h3 {
  font-size: 1.05rem;
}

.article-content img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
  margin: 2rem auto;
  object-fit: contain;
}

.article-meta,
.back-link {
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
}

.article-disclaimer {
  margin-top: 2rem;
  padding: 1rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.paywall-box {
  margin: 2.2rem 0;
  padding: 1.4rem;
  border: 1px solid rgba(245, 197, 107, 0.28);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 197, 107, 0.16), transparent 14rem),
    rgba(0, 0, 0, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.paywall-box h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.paywall-box p {
  color: var(--muted);
  line-height: 1.8;
}

.macro-paywall-box {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.paywall-marker {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  color: var(--gold);
  border: 1px dashed rgba(245, 197, 107, 0.45);
  border-radius: 0.9rem;
  background: rgba(245, 197, 107, 0.08);
  font-weight: 800;
}

.article-social {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.article-social-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.045);
}

.article-social-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.article-social-card strong {
  font-size: 1.8rem;
}

.article-image {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 2rem auto;
  overflow: visible;
}

.article-image.size-25 {
  width: 25%;
  margin-left: auto;
  margin-right: auto;
}

.article-image.size-50 {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.article-image.size-75 {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.article-image.size-100 {
  width: 100%;
}

.article-image.is-selected {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.article-image img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  max-height: 720px;
  box-sizing: border-box;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.article-image figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.editor-toolbar button {
  padding: 0.55rem 0.8rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.editor-file-input {
  display: none;
}

.rich-editor {
  width: 100%;
  max-width: 100%;
  min-height: 460px;
  padding: 1rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.24);
  line-height: 1.8;
  outline: none;
}

.rich-editor .article-image {
  cursor: pointer;
}

.rich-editor .article-image::after {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  content: "点击图片后，可用上方 图25% / 图50% / 图75% / 图100% 调整大小";
}

.rich-editor *:not(img):not(figure) {
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.8 !important;
}

.rich-editor a {
  text-decoration: none;
}

.rich-editor figcaption {
  display: none;
}

.rich-editor:focus {
  border-color: rgba(139, 211, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 211, 255, 0.12);
}

.rich-editor img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: 0.9rem;
  cursor: pointer;
}

.rich-editor blockquote {
  margin: 1rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
}

@media (max-width: 860px) {
  .article-image.size-25,
  .article-image.size-50,
  .article-image.size-75 {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero,
  .article-grid,
  .dashboard-grid,
  .pricing-grid,
  .section-grid,
  .section-grid.two-columns,
  .section-grid.three-columns,
  .metric-grid,
  .palantir-module-grid,
  .palantir-split,
  .meeting-card-grid,
  .meeting-detail-grid,
  .meeting-photo-grid,
  .sparkbot-console,
  .health-home-grid,
  .health-module-grid,
  .health-intel-grid,
  .health-symptom-grid,
  .health-chart-grid,
  .health-focus-grid,
  .sentinel-person-grid,
  .sentinel-chart-grid,
  .sentinel-stat-grid,
  .chart-panel,
  .login-section {
    grid-template-columns: 1fr;
  }

  .sparkbot-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .sentinel-chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sparkbot-video-frame {
    min-height: 0;
    max-height: 48vh;
  }

  .sparkbot-video-frame img {
    max-height: 48vh;
  }

  .sparkbot-status-grid span {
    min-width: 0;
    padding: 0.4rem 0.25rem;
    font-size: 0.68rem;
  }

  .sparkbot-status-grid strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sparkbot-control-panel {
    gap: 0.65rem;
  }

  .sparkbot-joystick {
    width: min(180px, 48vw);
  }

  .sparkbot-joystick span {
    width: 3.2rem;
    height: 3.2rem;
  }

  .sparkbot-command-grid button {
    padding: 0.55rem 0.5rem;
  }

  .health-module-wide {
    grid-column: auto;
  }

  .health-module-top,
  .health-window-head,
  .health-context-head,
  .health-metric-drawer > summary {
    flex-direction: column;
  }

  .health-timeline-preview li {
    grid-template-columns: 1fr;
  }

  .health-timeline-preview span {
    white-space: normal;
  }

  .health-timeline-card {
    grid-template-columns: 1fr;
  }

  .health-timeline-date {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-right: 0;
    padding-bottom: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid rgba(139, 211, 255, 0.14);
  }

  .health-timeline-top {
    flex-direction: column;
  }

  .health-timeline-top small {
    max-width: none;
    text-align: left;
  }

  .macro-module {
    grid-template-columns: 1fr;
  }

  .macro-cycle-card,
  .macro-system-card,
  .cycle-status-grid,
  .cycle-phase-legend {
    grid-template-columns: 1fr;
  }

  .macro-system-points {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero.hero-simple {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    display: none;
  }

  .article-card h3,
  .price-card ul {
    min-height: auto;
  }

  .life-composer,
  .life-post {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .avatar {
    width: 2.6rem;
    height: 2.6rem;
  }
}
