body {
  background: var(--my-bg-page);
}
#app {
  background: white;
  max-width: 512px;
  margin: auto;
}
:is(.primary, .choice, .sub),
input:not([type="checkbox"]),
select,
textarea {
  border-radius: 16px;
}
input:not([type="checkbox"]),
select,
textarea {
  background: var(--my-fill-soft);
}
#app:is(
    [data-screen="today"],
    [data-screen="health"],
    [data-screen="capture"],
    [data-screen="result"]
  )
  main {
  padding: 0 0 calc(106px + env(safe-area-inset-bottom));
  max-width: 512px;
}
.screen-head,
.result-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--my-row-line);
  background: white;
}
#app[data-screen="intro"] main {
  max-width: 440px;
  padding: max(22px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
}
.intro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(24px, 5vh, 48px);
}
.intro-header > span:last-child { color: var(--my-ink-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.first-visit h1 { max-width: 15em; font-size: clamp(27px, 6.5vw, 34px); line-height: 1.22; letter-spacing: -.055em; }
.first-visit p { line-height: 1.6; }
.intro-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.intro-interest { position: relative; margin: 0; cursor: pointer; }
.intro-interest input[type="radio"] {
  position: absolute; width: 1px; min-height: 0; height: 1px; padding: 0;
  border: 0; clip-path: inset(50%);
}
.intro-interest span {
  display: grid; place-items: center; min-height: 46px; padding: 6px;
  border: 1px solid var(--my-line); border-radius: var(--my-radius-button);
}
.intro-interest input:checked + span { background: var(--care-brand); color: white; border-color: var(--care-brand); }
.intro-interest input:focus-visible + span { outline: 2px solid var(--care-brand); outline-offset: 2px; }
.intro-note { margin: 18px 0 14px; color: var(--my-ink-muted); }
.first-visit > .primary { width: 100%; margin-top: 24px; }
.first-visit > .textbtn, .result-content > .textbtn { display: block; margin: 4px auto 0; }
.health-import { margin: 12px 0; }
.health-import .sub { width: 100%; }
.health-import p { margin: 6px 0 0; font-size: 13px; }
.health-import [data-import-status]:empty { display: none; }
.intro-viewfinder {
  display: grid; place-items: center; min-height: 150px; margin: 16px 0 20px;
  background: var(--my-fill-soft); border-radius: var(--my-radius-hero);
}
.intro-viewfinder svg { width: 66px; height: 66px; stroke-width: 1.2; }
.screen-head strong,
.result-head strong {
  color: var(--my-ink-strong);
  font-weight: 680;
  font-size: 15px;
}
.screen-head > div,
.lockup {
  display: flex;
  align-items: center;
}
.lockup {
  gap: 7px;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.055em;
}
.lockup img {
  width: 32px;
  height: 30px;
  object-fit: contain;
}
.icon-action {
  width: 40px;
  height: 44px;
  padding: 10px;
  display: inline-grid;
  place-items: center;
}
.icon-action svg,
.hero-pill svg {
  width: 20px;
  height: 20px;
}
.home-content,
.week-page {
  padding: 26px 20px 10px;
}
.home-content h1,
.week-page h1 {
  margin: 9px 0 26px;
  font-size: 31px;
  letter-spacing: -0.05em;
  line-height: 1.29;
  font-weight: 730;
}
.home-content time,
.week-page time {
  font-size: 13px;
  color: var(--my-ink-muted);
}
.scan-orb {
  width: min(60vw, 28.5svh, 235px);
  gap: 6px;
  outline: 1px solid var(--my-card-line);
  margin: 38px auto 42px;
  outline-offset: 8px;
}
.scan-orb svg {
  width: 43px;
  height: 43px;
  margin-bottom: 6px;
}
.home-glance {
  gap: 10px;
}
.home-glance > div {
  padding: 17px;
  border: 1px solid var(--my-card-line);
  background: white;
  border-radius: 20px;
}
.home-glance dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
}
.home-glance dt .glyph {
  width: 17px;
  height: 17px;
}
.home-glance dd {
  font-size: 26px;
  margin-top: 8px;
  font-weight: 720;
}
.home-glance dd small {
  font-size: 14px;
  margin-left: 3px;
}
.bar .side {
  font-size: 11px;
}
.section-heading,
.week-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 12px;
}
.mini-face {
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  background: #b6e08a;
  display: grid;
  place-items: center;
}
.mini-face .maumi {
  width: 23px;
  height: 21px;
}
.bubble-row p {
  border-radius: 16px;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 480;
  line-height: 1.55;
  max-width: 83%;
  color: #2a2a2a;
  background: #f7f7f7;
  white-space: pre-wrap;
}
#app[data-screen="week"] main {
  padding: 0 0 108px;
}
.week-page {
  padding-top: 24px;
}
.week-page h1 {
  font-size: 26px;
  margin: 12px 0 28px;
}
.week-card,
.result-note,
.gauge {
  border: 1px solid var(--my-card-line);
  border-radius: 20px;
  background: white;
}
.week-card {
  background: #f7f7f7;
  border-color: #f4f4f5;
  padding: 18px 15px 14px;
}
.week-card-top {
  font-size: 14px;
}
.week-card-top .glyph {
  width: 18px;
  height: 18px;
}
.week-summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 16px;
}
.week-summary span {
  display: grid;
  gap: 2px;
  font-size: 11px;
  color: #737373;
}
.week-summary span:last-child {
  text-align: right;
}
.week-summary strong {
  color: #0f0f0f;
  font-size: 18px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid #e7e7e7;
  padding-top: 10px;
}
.week-grid div {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 11px;
}
.week-grid small,
.week-card > small,
.timeline small {
  color: #737373;
  font-size: 11px;
}
.week-grid b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 13px;
  font-weight: 650;
}
.week-grid [aria-current] b {
  background: #0a0a0a;
  color: white;
  border-radius: 50%;
}
.week-grid span {
  font-variant-numeric: tabular-nums;
}
.week-card > small {
  display: block;
  margin-top: 16px;
}
.section-heading {
  margin: 19px 0 6px;
}
.section-heading h2,
.result-note h2 {
  margin: 0;
  font-size: 16px;
}
.section-heading button {
  color: #737373;
  font-size: 13px;
}
.timeline {
  padding: 0 0 0 14px;
  margin: 0 0 0 5px;
  list-style: none;
  border-left: 1px solid #ddd;
}
.timeline li {
  position: relative;
  padding: 0 0 21px 5px;
  display: grid;
  gap: 2px;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -19px;
  border: 1.5px solid #737373;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
.timeline li:first-child::before {
  background: #0a0a0a;
  border-color: #0a0a0a;
}
.timeline li time {
  font-size: 11px;
}
.timeline li b {
  font-size: 15px;
  font-weight: 580;
}
.empty-line {
  padding: 16px 0;
  color: #737373;
}
#app[data-screen="capture"] main {
  padding: 0;
}
#app[data-screen="capture"],
body:has([data-screen="capture"]) .web-status {
  color: white;
  background: #0a0a0a;
}
body:has([data-screen="capture"]) .web-home-indicator {
  background: white;
}
.capture-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 350px;
  color: white;
  background: #0a0a0a;
  padding: env(safe-area-inset-top) 0 max(10px, env(safe-area-inset-bottom));
}
.desktop-web .capture-page {
  height: calc(100dvh - 51px);
  padding-bottom: 27px;
}
.capture-head {
  display: flex;
  align-items: center;
  flex: none;
  height: 58px;
  gap: 10px;
  padding: 0 16px;
}
.capture-head h1 {
  margin: 0;
  font-size: 18px;
  color: white;
  font-weight: 650;
}
.capture-head button {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: white;
  background: #232323;
}
.capture-state {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
  font-size: 12px;
  font-weight: 650;
}
.capture-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #858585;
}
[data-tracking] .capture-state::before {
  background: #b6e08a;
}
.viewfinder {
  position: relative;
  flex: 1;
  min-height: 110px;
  background: #131313;
  overflow: hidden;
}
.viewfinder video,
.tracking-map,
.alignment {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.viewfinder video,
.tracking-map {
  transform: scaleX(-1);
  object-fit: contain;
}
.alignment path {
  fill: none;
  stroke: #ffffff76;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
[data-tracking] .alignment {
  visibility: hidden;
}
.capture-instruments {
  flex: none;
  padding: 12px 20px 4px;
}
.signal-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.signal-title strong {
  font-size: 15px;
  font-weight: 650;
}
.signal-title span {
  color: #ddd;
  font-size: 12px;
}
.signal-title b {
  color: white;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.optical-wave {
  display: block;
  width: 100%;
  height: 42px;
  margin: 9px 0;
  overflow: visible;
}
.capture-instruments progress {
  margin: 8px 0;
  height: 4px;
  color: var(--lime);
  background: #333;
}
.capture-instruments progress::-webkit-progress-bar {
  background: #333;
}
.capture-instruments progress::-webkit-progress-value {
  background: #b6e08a;
}
.capture-instruments progress::-moz-progress-bar {
  background: #b6e08a;
}
.capture-guide {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin-top: 7px;
}
.capture-guide .maumi {
  width: 29px;
  height: 26px;
  object-fit: contain;
}
.capture-guide p {
  flex: 1;
  color: #ddd;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}
.capture-guide button {
  min-height: 40px;
  border: 1px solid #585858;
  border-radius: 14px;
  padding: 6px 12px;
  color: #fff;
  font-size: 13px;
}
.result-head {
  position: relative;
  justify-content: center;
}
.result-head button {
  position: absolute;
  left: 12px;
}
#app[data-screen="result"] {
  background: #f5f6f8;
}
.result-content {
  padding: 15px 16px 10px;
  display: grid;
  gap: 12px;
}
.result-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  background: #0a0a0a;
  color: white;
  border-radius: 28px;
  padding: 24px 12px 21px;
}
.hero-pill,
.change-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 620;
  padding: 5px 11px;
  border-radius: 99px;
}
.hero-pill {
  color: #fff;
  background: #292929;
}
.hero-pill svg {
  width: 15px;
  height: 15px;
}
.hero-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 9px 0 4px;
}
.hero-number strong {
  font-size: 76px;
  letter-spacing: -0.065em;
  line-height: 1.1;
  font-weight: 720;
}
.hero-number small {
  font-size: 19px;
  font-weight: 550;
  color: #d9d9d9;
}
.result-hero p {
  color: #e2e2e2;
  font-size: 14px;
}
.change-chip {
  background: var(--positive);
  color: var(--positive-ink);
  margin-top: 12px;
}
.gauge-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.gauge {
  text-align: center;
  padding: 13px 8px 12px;
}
.gauge > strong {
  font-size: 13px;
  font-weight: 600;
}
.gauge > div {
  position: relative;
  width: 118px;
  max-width: 100%;
  margin: 4px auto 0;
}
.gauge svg {
  display: block;
  width: 100%;
}
.gauge path {
  fill: none;
  stroke: #eaebec;
  stroke-width: 9px;
  stroke-linecap: round;
}
.gauge .filled {
  stroke: var(--lime);
}
.gauge b {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  font-size: 15px;
  font-weight: 620;
}
.gauge em,
.gauge small {
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  color: #737373;
}
.result-note {
  padding: 16px;
}
.result-note .bubble-row {
  margin: 10px 0 0;
}
.result-note .bubble-row p {
  max-width: none;
}
.result-content > .primary {
  width: 100%;
}
@media (max-height: 680px) {
  .scan-orb {
    margin-block: 22px 26px;
  }
  .home-content {
    padding-top: 14px;
  }
}

.line-glyph {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}
.bar .side .line-glyph {
  opacity: 0.6;
}
.bar .side[aria-current="page"] .line-glyph {
  filter: invert(1);
  opacity: 1;
}
.home-glance dt .line-glyph,
.week-card-top .line-glyph {
  width: 17px;
  height: 17px;
  opacity: 0.65;
}

.web-status,
.web-home-indicator {
  display: none;
}
@media screen {
  .desktop-web .web-status {
    position: sticky;
    z-index: 45;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 51px;
    max-width: 512px;
    margin-inline: auto;
    padding: 0 27px 0 47px;
    background: white;
    color: #0f0f0f;
    font-size: 16px;
  }
  .web-status svg {
    width: 68px;
    height: 16px;
  }
  .desktop-web .web-home-indicator {
    display: block;
    position: fixed;
    z-index: 45;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #0a0a0a;
    border-radius: 99px;
    pointer-events: none;
  }
  .desktop-web .bar {
    bottom: 28px;
  }
  .desktop-web #app {
    min-height: calc(100dvh - 51px);
  }
}

.save-note {
  font-size: 12px;
  color: #737373;
  text-align: center;
}

.estimate {
  font-size: 11px;
  font-weight: 500;
  color: #737373;
}

#app[data-screen="health"] {
  background: var(--my-bg-page);
}
.health-hub {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
}
.health-hero {
  background: #0a0a0a;
  color: #fff;
  border-radius: 28px;
  padding: 16px 20px;
}
.health-hero h1 {
  margin: 0;
  color: #eee;
  font-size: 16px;
  font-weight: 600;
}
.health-hero > strong {
  display: block;
  color: white;
  font-size: 32px;
  letter-spacing: -0.05em;
  margin: 7px 0 2px;
}
.health-hero > p,
.health-hero .trend-empty {
  color: #c4c4c4;
  font-size: 13px;
}
.health-hero p {
  margin: 0;
}
.history-strip {
  border-top: 1px solid #383838;
  margin-top: 12px;
  padding-top: 9px;
}
.health-hub h2 {
  font-size: 18px;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.history-strip h2 {
  color: white;
  font-size: 14px;
  margin-bottom: 6px;
}
.hub-scan {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--my-card-line);
  border-radius: 16px;
  background: white;
  padding: 13px 16px;
  text-align: left;
  color: #0a0a0a;
}
.hub-scan svg {
  width: 22px;
  height: 22px;
}
.hub-scan b {
  font-size: 16px;
}
.hub-scan small {
  margin-left: auto;
  color: #737373;
}
.hub-scan svg:last-child {
  width: 16px;
}
.trend-card {
  border-radius: 20px;
  border: 1px solid var(--my-card-line);
  background: white;
  padding: 15px 18px;
}
.trend-picker {
  display: flex;
  gap: 4px;
  margin: 0 0 8px;
}
.trend-picker:first-of-type {
  border-bottom: 1px solid var(--my-row-line);
  gap: 20px;
}
.trend-choice {
  background: transparent;
  color: #737373;
  min-height: 34px;
  border-radius: 0;
  font-size: 14px;
}
.trend-picker:first-of-type .trend-choice[aria-pressed="true"] {
  border-bottom: 2px solid #0a0a0a;
  color: #0a0a0a;
  font-weight: 700;
}
.trend-picker:nth-of-type(2) {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 3px;
}
.trend-picker:nth-of-type(2) button {
  flex: 1;
  border-radius: 10px;
  min-height: 33px;
}
.trend-picker:nth-of-type(2) button[aria-pressed="true"] {
  background: #0a0a0a;
  color: white;
}
.trend-caption,
.trend-axis {
  display: flex;
  justify-content: space-between;
  color: #737373;
  font-size: 11px;
}
.trend-number {
  display: block;
  font-size: 26px;
  margin: 3px 0 8px;
}
.trend-number small,
.health-hero strong small {
  font-size: 14px;
  margin-left: 3px;
}
.trend-graph {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}
.trend-graph path {
  fill: none;
}
.trend-line {
  stroke: currentColor;
  stroke-width: 2;
}
.grid-lines {
  stroke: currentColor;
  opacity: 0.12;
  stroke-dasharray: 3 3;
}
.trend-graph text {
  fill: currentColor;
  font-size: 9px;
  text-anchor: end;
}
.trend-axis {
  width: 85%;
}
.health-hero .trend-axis {
  color: #c4c4c4;
}
.trend-empty {
  color: #737373;
  font-size: 13px;
  margin: 8px 0 0;
}
#app[data-screen="capture"] .capture-page {
  position: fixed;
  z-index: 42;
  inset: 0;
  width: 100%;
  max-width: 512px;
  margin: auto;
  height: 100dvh;
  padding: env(safe-area-inset-top) 0 max(12px, env(safe-area-inset-bottom));
  justify-content: space-between;
  isolation: isolate;
}
#app[data-screen="capture"] .viewfinder {
  position: absolute;
  z-index: -1;
  inset: 0;
}
.viewfinder video,
.tracking-map {
  object-fit: cover;
  object-position: center;
}
.capture-head {
  background: linear-gradient(#0009, transparent);
}
.capture-instruments {
  background: linear-gradient(#0005, #000d);
  padding-bottom: 10px;
}
.capture-head button {
  background: #0006;
}
.capture-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: max(18px, env(safe-area-inset-bottom));
  background: #000b;
}
.desktop-web #app[data-screen="capture"] .capture-page {
  padding: 51px 0 27px;
}
body:has([data-screen="capture"]) .web-status {
  background: transparent;
  color: white;
}
