/* home.css — Editorial "award-style" dashboard design system
 * =================================================================
 * This sheet powers ONLY the Home dashboard. It deliberately departs
 * from the app-wide glass-card language to feel like a hand-crafted
 * Framer / Webflow site: oversized serif display type, numbered
 * sections, per-section color "worlds", soft gradient meshes, a subtle
 * grain overlay, and magnetic hover states.
 *
 * Each section is a `.hsec` with a color modifier that sets CSS custom
 * properties (--accent, --accent-2, --tint). Everything inside inherits
 * that world so sections feel distinct yet part of one editorial system.
 * ================================================================= */

.home-x {
  /* Shared tokens */
  --grain:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}

/* ----------------------------- Masthead ------------------------------- */
.hmast {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(0.5rem, 2vw, 1rem);
}
.hmast__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-ink-eyebrow, #6b6df8);
  font-weight: 600;
}
.hmast__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  animation: hpulse 2.6s ease-in-out infinite;
}
@keyframes hpulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

.hmast__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  font-size: clamp(2.6rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  color: #11152a;
}
.dark .hmast__title { color: #f4f7ff; }
.hmast__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  background: linear-gradient(105deg, #6b6df8 0%, #a855f7 45%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hmast__sub {
  margin-top: 1.1rem;
  max-width: 42ch;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.5;
  color: #4a5570;
}
.dark .hmast__sub { color: #aab6d5; }

.hmast__meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  margin-top: 1.6rem; align-items: center;
}
.hmast__chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: #4a5570;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(20,25,40,0.1);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.dark .hmast__chip {
  color: #aab6d5; border-color: rgba(255,255,255,0.12);
  background: rgba(20,25,37,0.5);
}
.hmast__chip b { color: #11152a; font-weight: 700; }
.dark .hmast__chip b { color: #f4f7ff; }

/* A thin animated rule under the masthead */
.hrule {
  height: 1px; width: 100%;
  background: linear-gradient(90deg,
    transparent, rgba(107,109,248,0.5), rgba(168,85,247,0.5),
    rgba(6,182,212,0.5), transparent);
  background-size: 200% 100%;
  animation: hrule 9s linear infinite;
}
@keyframes hrule { to { background-position: 200% 0; } }

/* --------------------------- Section shell ---------------------------- */
.hsec {
  --accent: #6b6df8;
  --accent-2: #a855f7;
  --tint: 107,109,248;
  position: relative;
  border-radius: clamp(1.25rem, 2.4vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow: clip;
  border: 1px solid rgba(var(--tint), 0.16);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(var(--tint), 0.10), transparent 55%),
    radial-gradient(90% 90% at 100% 0%, rgba(var(--tint), 0.06), transparent 50%),
    rgba(255,255,255,0.55);
  box-shadow: 0 24px 60px -36px rgba(var(--tint), 0.5);
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.4s ease;
}
.dark .hsec {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(var(--tint), 0.16), transparent 55%),
    radial-gradient(90% 90% at 100% 0%, rgba(var(--tint), 0.10), transparent 50%),
    rgba(15,19,33,0.55);
  border-color: rgba(var(--tint), 0.22);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.7);
}
/* Grain overlay */
.hsec::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 180px;
  opacity: 0.4; mix-blend-mode: overlay;
}
.dark .hsec::after { opacity: 0.25; }
/* Floating mesh blob */
.hsec__mesh {
  position: absolute; pointer-events: none; z-index: 0;
  width: 46%; aspect-ratio: 1; right: -8%; top: -22%;
  background: radial-gradient(circle at 50% 50%,
    rgba(var(--tint), 0.5), transparent 62%);
  filter: blur(54px); opacity: 0.5;
  animation: hfloat 16s ease-in-out infinite;
}
@keyframes hfloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-6%, 8%) scale(1.12); }
}
/* Lift content above the grain/mesh — but NEVER touch the mesh itself:
 * it must stay position:absolute or its 46%-wide square inflates the
 * section with phantom empty space. */
.hsec > *:not(.hsec__mesh) { position: relative; z-index: 1; }
.hsec > .hsec__mesh { position: absolute; }

/* Color worlds */
.hsec--indigo  { --accent:#6b6df8; --accent-2:#a855f7; --tint:107,109,248; }
.hsec--teal    { --accent:#06b6d4; --accent-2:#22d3ee; --tint:6,182,212; }
.hsec--emerald { --accent:#10b981; --accent-2:#34d399; --tint:16,185,129; }
.hsec--amber   { --accent:#f59e0b; --accent-2:#f43f5e; --tint:245,158,11; }
.hsec--violet  { --accent:#a855f7; --accent-2:#d946ef; --tint:168,85,247; }
.hsec--rose    { --accent:#f43f5e; --accent-2:#fb7185; --tint:244,63,94; }
.hsec--blue    { --accent:#3b82f6; --accent-2:#5b87ff; --tint:59,130,246; }
.hsec--slate   { --accent:#64748b; --accent-2:#94a3b8; --tint:100,116,139; }

/* Section header with ghost number */
.hsec__head {
  display: flex; align-items: flex-start; gap: clamp(0.8rem, 2vw, 1.5rem);
  margin-bottom: 1.4rem;
}
.hsec__num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(var(--tint), 0.55);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.hsec__kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.dark .hsec__kicker { filter: brightness(1.25); }
.hsec__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin-top: 0.35rem;
  color: #14182a;
}
.dark .hsec__title { color: #f1f4ff; }
.hsec__title em {
  font-style: italic;
  color: var(--accent);
}
.hsec__lead {
  margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.5;
  color: #4a5570; max-width: 52ch;
}
.dark .hsec__lead { color: #aab6d5; }
.hsec__action { margin-left: auto; flex-shrink: 0; }

/* Editorial mini-button */
.hbtn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid rgba(var(--tint), 0.4);
  background: rgba(var(--tint), 0.06);
  text-decoration: none; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2,0.7,0.2,1);
}
.hbtn:hover {
  background: var(--accent); color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(var(--tint), 0.7);
}
.hbtn--solid {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: white; border-color: transparent;
}
.hbtn--solid:hover { color: white; box-shadow: 0 14px 30px -10px rgba(var(--tint), 0.8); }

/* ----------------------------- Masthead grid -------------------------- */
.hmast__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end;
}
@media (max-width: 860px){ .hmast__grid { grid-template-columns: 1fr; } }

/* The big clarity orb in the masthead */
.hclarity {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem;
}
.hclarity__ring { position: relative; width: clamp(130px, 26vw, 190px); aspect-ratio: 1; }
.hclarity__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  flex-direction: column; text-align: center;
}
.hclarity__val {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1;
  color: #14182a;
}
.dark .hclarity__val { color: #f4f7ff; }
.hclarity__cap {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: #6b7690; margin-top: 4px;
}

/* --------------------------- Problem matcher -------------------------- */
.hmatch {
  display: grid; gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.hmatch__tile {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  text-decoration: none; color: inherit;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(20,25,40,0.08);
  transition: all 0.24s cubic-bezier(0.2,0.7,0.2,1);
  position: relative; overflow: hidden;
}
.dark .hmatch__tile { background: rgba(20,25,37,0.5); border-color: rgba(255,255,255,0.08); }
.hmatch__tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.24s ease;
}
.hmatch__tile:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--tint), 0.45);
  box-shadow: 0 16px 30px -18px rgba(var(--tint), 0.6);
}
.hmatch__tile:hover::before { transform: scaleY(1); }
.hmatch__emoji { font-size: 1.4rem; line-height: 1; }
.hmatch__label { font-size: 0.84rem; font-weight: 600; line-height: 1.2; }
.dark .hmatch__label { color: #e8eefc; }
.hmatch__hint {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8893ad; margin-top: 2px;
}

/* ------------------------------ Top action ---------------------------- */
.htoday {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
}
@media (max-width: 720px){ .htoday { grid-template-columns: 1fr; } }
.htoday__kind {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--accent);
}
.htoday__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.05;
  letter-spacing: -0.02em; margin-top: 0.6rem;
  color: #14182a;
}
.dark .htoday__title { color: #f4f7ff; }
.htoday__body { margin-top: 0.7rem; font-size: 0.98rem; line-height: 1.5; color: #4a5570; max-width: 48ch; }
.dark .htoday__body { color: #aab6d5; }
.htoday__cta { margin-top: 1.2rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Big action button */
.hcta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  color: white; border: none; cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px -14px rgba(var(--tint), 0.8);
  transition: transform 0.2s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.2s ease;
}
.hcta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 22px 44px -14px rgba(var(--tint), 0.9); }
.hcta:active { transform: translateY(0) scale(0.99); }
.hcta__ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; font-weight: 600;
  padding: 0.85rem 1.1rem; border-radius: 999px; cursor: pointer;
  color: #4a5570; border: 1px solid rgba(20,25,40,0.12); background: transparent;
}
.dark .hcta__ghost { color: #aab6d5; border-color: rgba(255,255,255,0.14); }

/* Adaptive tone borders for the Today section (set via data-tone) */
.hsec[data-tone="stress"] { --accent:#f43f5e; --accent-2:#fb7185; --tint:244,63,94; }
.hsec[data-tone="warn"]   { --accent:#f59e0b; --accent-2:#fbbf24; --tint:245,158,11; }
.hsec[data-tone="action"] { --accent:#10b981; --accent-2:#34d399; --tint:16,185,129; }
.hsec[data-tone="clarity"]{ --accent:#3b82f6; --accent-2:#5b87ff; --tint:59,130,246; }

/* ------------------------------ Stat blocks --------------------------- */
.hstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
@media (max-width: 720px){ .hstats { grid-template-columns: repeat(2, 1fr); } }
.hstat {
  position: relative; padding: 1.1rem 1.15rem;
  border-radius: 1.1rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(20,25,40,0.08);
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.24s ease;
}
.dark .hstat { background: rgba(20,25,37,0.5); border-color: rgba(255,255,255,0.08); }
.hstat:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(var(--tint),0.6); }
.hstat__cap {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #6b7690; font-weight: 600;
}
.dark .hstat__cap { color: #9aa6c4; }
.hstat__val {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1; margin-top: 0.55rem;
  color: #14182a; font-variant-numeric: tabular-nums;
}
.dark .hstat__val { color: #f4f7ff; }
.hstat__sub { font-size: 0.72rem; margin-top: 0.4rem; color: #6b7690; }
.dark .hstat__sub { color: #9aa6c4; }
.hstat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ------------------------------ Top 3 list ---------------------------- */
.hfocus-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1rem; }
@media (max-width: 900px){ .hfocus-grid { grid-template-columns: 1fr; } }
.hpanel {
  border-radius: 1.25rem; padding: 1.25rem;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(20,25,40,0.07);
}
.dark .hpanel { background: rgba(15,19,33,0.45); border-color: rgba(255,255,255,0.07); }
.hpanel__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.hpanel__title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.15rem;
  color: #14182a;
}
.dark .hpanel__title { color: #f1f4ff; }

/* --------------------------- Life spectrum strip ---------------------- */
.hspectrum {
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(7, 1fr);
}
@media (max-width: 900px){ .hspectrum { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px){ .hspectrum { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------ Module index -------------------------- */
.hindex {
  display: grid; gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.hindex__tile {
  position: relative; display: block; text-decoration: none; color: inherit;
  padding: 1.1rem; border-radius: 1.1rem;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(20,25,40,0.07);
  overflow: hidden;
  transition: all 0.24s cubic-bezier(0.2,0.7,0.2,1);
}
.dark .hindex__tile { background: rgba(20,25,37,0.45); border-color: rgba(255,255,255,0.07); }
.hindex__tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -22px rgba(var(--tint), 0.6);
  border-color: rgba(var(--tint), 0.4);
}
.hindex__num {
  position: absolute; right: 0.7rem; top: 0.5rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
  color: #b6c1d7; letter-spacing: 0.05em;
}
.dark .hindex__num { color: #46506a; }
.hindex__icon {
  width: 2.6rem; height: 2.6rem; border-radius: 0.85rem;
  display: grid; place-items: center; font-size: 1.45rem;
  background: rgba(var(--tint), 0.12);
  transition: transform 0.24s cubic-bezier(0.2,0.7,0.2,1);
}
.hindex__tile:hover .hindex__icon { transform: scale(1.12) rotate(-6deg); }
.hindex__title {
  font-weight: 700; font-size: 0.92rem; margin-top: 0.75rem; letter-spacing: -0.01em;
  color: #14182a;
}
.dark .hindex__title { color: #eef2fc; }
.hindex__hint {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: #8893ad; margin-top: 3px;
}

/* Color-cycle the index tiles so the grid reads like a spectrum */
.hindex__tile:nth-child(7n+1){ --accent:#6b6df8; --tint:107,109,248; }
.hindex__tile:nth-child(7n+2){ --accent:#06b6d4; --tint:6,182,212; }
.hindex__tile:nth-child(7n+3){ --accent:#10b981; --tint:16,185,129; }
.hindex__tile:nth-child(7n+4){ --accent:#f59e0b; --tint:245,158,11; }
.hindex__tile:nth-child(7n+5){ --accent:#f43f5e; --tint:244,63,94; }
.hindex__tile:nth-child(7n+6){ --accent:#a855f7; --tint:168,85,247; }
.hindex__tile:nth-child(7n+7){ --accent:#3b82f6; --tint:59,130,246; }

/* --------------------------- Quick scan editorial --------------------- */
.hscan { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
@media (max-width: 720px){ .hscan { grid-template-columns: 1fr; } }
.hscan__sliders { display: grid; gap: 1.1rem; }
.hscan__label {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: #6b7690; margin-bottom: 0.5rem;
}
.hscan__num { font-size: 1.1rem; font-weight: 700; color: var(--accent); }

/* ----------------------- calm / overload dampening -------------------- */
.ui-calm .hsec__mesh { animation: none; opacity: 0.3; }
.ui-calm .hrule { animation: none; }
.ui-overload .hsec__mesh { display: none; }
.ui-overload .hmast__title em { -webkit-text-fill-color: currentColor; background: none; color: var(--accent); }

/* ------------------------------ reveal -------------------------------- */
.home-x .hsec, .home-x .hmast {
  opacity: 0; transform: translateY(26px);
  animation: hreveal 0.7s cubic-bezier(0.2,0.7,0.2,1) forwards;
}
.home-x .hmast { animation-delay: 0.02s; }
.home-x .hsec:nth-of-type(1) { animation-delay: 0.06s; }
.home-x .hsec:nth-of-type(2) { animation-delay: 0.10s; }
.home-x .hsec:nth-of-type(3) { animation-delay: 0.14s; }
.home-x .hsec:nth-of-type(4) { animation-delay: 0.18s; }
.home-x .hsec:nth-of-type(5) { animation-delay: 0.22s; }
.home-x .hsec:nth-of-type(6) { animation-delay: 0.26s; }
.home-x .hsec:nth-of-type(7) { animation-delay: 0.30s; }
@keyframes hreveal { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .home-x .hsec, .home-x .hmast { animation: none; opacity: 1; transform: none; }
  .hsec__mesh, .hrule { animation: none; }
}

/* =================================================================
   FamilyOS — member cards, connection logger, ties monitor
   ================================================================= */

.fam-grid {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.fam-member {
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(20,25,40,0.08);
  transition: transform 0.24s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.24s ease;
}
.dark .fam-member { background: rgba(20,25,37,0.5); border-color: rgba(255,255,255,0.08); }
.fam-member:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -20px rgba(244,63,94,0.5);
}
.fam-member__top { display: flex; align-items: center; gap: 0.7rem; }
.fam-member__avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(244,63,94,0.1); flex-shrink: 0;
}
.fam-member__id { flex: 1; min-width: 0; }
.fam-member__name { font-weight: 700; font-size: 0.95rem; color: #14182a; }
.dark .fam-member__name { color: #f1f4ff; }
.fam-member__you {
  font-family: 'JetBrains Mono', monospace; font-size: 0.55rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #6b6df8; border: 1px solid rgba(107,109,248,0.4);
  border-radius: 999px; padding: 0.08rem 0.4rem; vertical-align: middle;
}
.fam-member__rel {
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: #8893ad; margin-top: 2px;
}
.fam-member__score {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 1.7rem; font-variant-numeric: tabular-nums;
}
.fam-member__bar {
  height: 5px; border-radius: 999px; margin-top: 0.7rem;
  background: rgba(20,25,40,0.08); overflow: hidden;
}
.dark .fam-member__bar { background: rgba(255,255,255,0.1); }
.fam-member__bar > div { height: 100%; border-radius: 999px; transition: width 0.5s cubic-bezier(0.2,0.7,0.2,1); }
.fam-member__foot {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 0.7rem; flex-wrap: wrap;
}
.fam-moods { display: inline-flex; gap: 0.25rem; }
.fam-moods button {
  font-size: 1rem; background: none; border: 1px solid transparent;
  border-radius: 0.5rem; padding: 0.15rem 0.3rem; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.fam-moods button:hover { transform: scale(1.2); border-color: rgba(244,63,94,0.35); }
.fam-member__invite {
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
  color: #6b6df8; text-decoration: none;
}
.fam-member__invite:hover { text-decoration: underline; }
.fam-member__remove {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: #b6c1d7; font-size: 1rem; line-height: 1;
}
.fam-member__remove:hover { color: #f43f5e; }

.fam-add {
  display: grid; gap: 0.6rem;
  grid-template-columns: 1.2fr 1.4fr 1fr auto; align-items: center;
}
@media (max-width: 760px){ .fam-add { grid-template-columns: 1fr; } }

.fam-log {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.7rem;
  align-items: center; max-width: 40rem;
}
.fam-log__arrow { font-size: 1.2rem; color: #06b6d4; text-align: center; }
.fam-kinds {
  display: grid; gap: 0.6rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.fam-kind {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  padding: 0.7rem 0.6rem; border-radius: 0.9rem;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(20,25,40,0.08);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2,0.7,0.2,1);
  color: #14182a;
}
.dark .fam-kind { background: rgba(20,25,37,0.5); border-color: rgba(255,255,255,0.08); color: #e8eefc; }
.fam-kind b {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
  color: #06b6d4;
}
.fam-kind:hover {
  transform: translateY(-2px);
  border-color: rgba(6,182,212,0.5);
  box-shadow: 0 12px 24px -14px rgba(6,182,212,0.6);
}

.fam-tie {
  display: grid; grid-template-columns: minmax(150px, 1fr) 2fr 3rem;
  align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.85rem; border-radius: 0.85rem;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(20,25,40,0.06);
}
.dark .fam-tie { background: rgba(20,25,37,0.45); border-color: rgba(255,255,255,0.06); }
.fam-tie__pair { font-size: 0.85rem; font-weight: 600; color: #14182a; }
.dark .fam-tie__pair { color: #e8eefc; }
.fam-tie__pair i { color: #a855f7; font-style: normal; margin: 0 0.2rem; }
.fam-tie__bar {
  height: 6px; border-radius: 999px; overflow: hidden;
  background: rgba(20,25,40,0.08);
}
.dark .fam-tie__bar { background: rgba(255,255,255,0.1); }
.fam-tie__bar > div { height: 100%; border-radius: 999px; transition: width 0.5s cubic-bezier(0.2,0.7,0.2,1); }
.fam-tie__score {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 1.1rem; text-align: right; font-variant-numeric: tabular-nums;
}
