:root {
  --ink: #043127;
  --ink-hover: #03261f;
  --paper: #f2f4ef;
  --card: #ffffff;
  --mint: #2fd38a;
  --muted: #5b6b65;
  --line: #e8ece6;
  --dash: #c3ccc6;
  --on-bg: #ddf7ea;
  --on-fg: #0b6b41;
  --on-dot: #13a866;
  --needs-bg: #fff1c7;
  --needs-fg: #7a4b00;
  --needs-dot: #e0a100;
  --needs-strong: #ffc94a;
  --paused-bg: #ffe2d8;
  --paused-fg: #a0341a;
  --paused-ring: #f2876a;
  --off-bg: #eef1ec;
  --off-fg: #5b6b65;
  --shadow-card: 0 1px 0 rgba(4, 49, 39, 0.06), 0 8px 24px rgba(4, 49, 39, 0.06);
  --sans: "Figtree", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.app {
  width: min(430px, 100%);
  min-height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.app--ink { background: var(--ink); color: #fff; }
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.screen--scroll { overflow: auto; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}
.logo--light { gap: 10px; font-size: 17px; letter-spacing: -0.01em; }
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo--light .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mint);
}

.welcome {
  padding: 28px 24px 32px;
  gap: 0;
  align-items: stretch;
}
.welcome .logo { align-self: flex-start; }
.welcome-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rings {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rings-mid {
  width: 206px;
  height: 206px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rings-core {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 14px rgba(47, 211, 138, 0.14);
}
.bubble {
  position: absolute;
  border-radius: 50%;
  border: 4px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--ink);
}
.bubble--m { top: 18px; right: 4px; width: 52px; height: 52px; background: #ffc94a; font-size: 20px; }
.bubble--l { bottom: 26px; left: 0; width: 52px; height: 52px; background: #fff; font-size: 20px; }
.bubble--s { bottom: 0; right: 34px; width: 44px; height: 44px; background: #b9c8ff; font-size: 17px; }

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; }
.welcome .display em { color: var(--mint); }
.welcome-copy { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.welcome-sub { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.74); }
.stack { display: flex; flex-direction: column; gap: 12px; }

.btn {
  min-height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  height: 58px;
  border-radius: 18px;
  background: var(--mint);
  color: var(--ink);
  font-size: 17px;
  justify-content: space-between;
  padding: 0 22px;
}
.btn-primary:hover { background: #26c47e; }
.btn-dark:hover,
.start-orb:hover:not(:disabled) { background: var(--ink-hover); }
.btn-secondary {
  height: 58px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  justify-content: space-between;
  padding: 0 22px;
}
.btn-fix { height: 48px; padding: 0 20px; flex-shrink: 0; font-size: 16px; }
.btn-dark {
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.pad { padding: 22px 20px 16px; display: flex; flex-direction: column; gap: 18px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.avatar--sam { width: 40px; height: 40px; background: #b9c8ff; font-size: 16px; }
.avatar--maya { width: 50px; height: 50px; background: #ffc94a; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mint); }
.avatar--leo { width: 50px; height: 50px; background: #d7e0db; font-size: 20px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--paused-ring); }
.avatar--leo-lg {
  width: 64px;
  height: 64px;
  background: #d7e0db;
  font-size: 26px;
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--paused-ring);
}
.kicker { font-size: 14px; font-weight: 600; color: var(--muted); }
.display--home { line-height: 1.05; }
.display--name { font-size: 44px; line-height: 1; }

.needs {
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}
.pill--alert { align-self: flex-start; background: var(--needs-strong); color: var(--ink); }
.pill--on { background: var(--on-bg); color: var(--on-fg); }
.pill--paused { background: var(--paused-bg); color: var(--paused-fg); }
.pill--needs { background: var(--needs-bg); color: var(--needs-fg); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--on .dot { background: var(--on-dot); }
.pill--needs .dot { background: var(--needs-dot); }
.needs-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.needs-title { font-size: 21px; font-weight: 700; line-height: 1.25; }
.section-title { margin: 4px 0 -4px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
.person { display: flex; align-items: center; gap: 14px; }
.person-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-name { font-size: 18px; font-weight: 800; }
.person-meta { font-size: 14px; color: var(--muted); }
.details {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-fg);
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.card-foot--start { justify-content: flex-start; gap: 8px; }
.meter { display: flex; align-items: center; gap: 10px; }
.bars { display: flex; gap: 3px; }
.bars span { width: 9px; height: 18px; border-radius: 3px; background: #e3e8e2; }
.bars span.is-on { background: var(--on-dot); }
.meter-label { font-size: 14px; font-weight: 700; }
.add-child {
  height: 52px;
  border-radius: 18px;
  border: 2px dashed var(--dash);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #33443f;
}

.tabbar {
  height: 78px;
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e3e7e0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px 12px 14px;
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.tabbar a[aria-current="page"] { font-weight: 800; color: var(--ink); }
.tab-icon {
  width: 52px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tabbar a[aria-current="page"] .tab-icon {
  border-radius: 999px;
  background: var(--ink);
}

.detail-head {
  background: var(--ink);
  color: #fff;
  padding: 18px 20px 26px;
  border-radius: 0 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-nav { display: flex; align-items: center; justify-content: space-between; }
.back {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-nav .logo { font-size: 14px; }
.spacer { width: 44px; }
.who { display: flex; align-items: center; gap: 16px; }
.checked { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.list { padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 10px; }
.row {
  background: #fff;
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(4, 49, 39, 0.06);
}
.row--needs { box-shadow: 0 0 0 2px var(--needs-strong), 0 8px 24px rgba(4, 49, 39, 0.06); padding-left: 16px; }
.tile {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile--needs { background: var(--needs-bg); }
.tile--on { background: var(--on-bg); }
.tile--paused { background: var(--paused-bg); }
.tile--off { width: 36px; height: 36px; border-radius: 12px; background: var(--off-bg); }
.row-copy { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.eyebrow--needs { color: var(--needs-fg); }
.eyebrow--on { color: var(--on-fg); }
.eyebrow--paused { color: var(--paused-fg); }
.row-title { font-size: 16px; font-weight: 800; }
.row-sub { font-size: 13px; color: var(--muted); }
.switch {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--on-dot);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3px;
}
.switch i { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.group-label { margin: 12px 0 0; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.group {
  background: #fff;
  border-radius: 20px;
  padding: 4px 16px;
  box-shadow: 0 8px 24px rgba(4, 49, 39, 0.06);
}
.group-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--off-bg);
}
.group-row:last-child { border-bottom: 0; }
.group-name { flex: 1; font-size: 15px; font-weight: 700; }
.soon {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--off-bg);
  padding: 5px 10px;
  border-radius: 999px;
}
.dashed {
  margin-top: 6px;
  border: 2px dashed var(--dash);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
}
.unknown { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--muted); }
.unknown i { width: 8px; height: 8px; border-radius: 50%; background: #a3afaa; }

.alerts-title { margin: 6px 0 0; line-height: 1; }
.callout {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.callout p { margin: 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.callout-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.callout-icon--ghost { background: rgba(255, 255, 255, 0.1); }
.day { margin: 8px 0 -6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.alert-card { background: #fff; border-radius: 22px; padding: 4px 8px; box-shadow: 0 8px 24px rgba(4, 49, 39, 0.06); }
.alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--off-bg);
}
.alert:last-child { border-bottom: 0; }
.alert-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.alert-title { font-size: 16px; font-weight: 800; }
.alert-meta { font-size: 13px; color: var(--muted); }

.session { padding: 22px 20px 28px; }
.hey {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 18px 6px 6px;
  align-self: flex-start;
  box-shadow: var(--shadow-card);
  font-size: 17px;
  font-weight: 800;
}
.hey .avatar--maya { width: 48px; height: 48px; box-shadow: none; }
.orb-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
.orb-dash {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 1.5px dashed var(--dash);
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-mint {
  width: 222px;
  height: 222px;
  border-radius: 50%;
  background: var(--on-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.start-orb {
  width: 172px;
  height: 172px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 16px 40px rgba(4, 49, 39, 0.28);
  padding: 16px;
}
.start-orb span { font-size: 18px; font-weight: 800; line-height: 1.1; text-align: center; }
.session-copy { display: flex; flex-direction: column; gap: 10px; text-align: center; margin-bottom: 18px; }
.session-copy .display { line-height: 1; }
.session-copy p { margin: 0; font-size: 16px; line-height: 1.5; color: #4a5a54; }
.session-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.session-actions:empty { display: none; margin: 0; }
.session-actions .btn { width: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-pause { background: var(--on-bg); color: var(--on-fg); height: 52px; font-size: 16px; }
.btn-stop { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); height: 52px; font-size: 16px; }
.callout--lock p { font-size: 14px; }
