.pht {
  --pht-ink: #182f34;
  --pht-teal: #135453;
  --pht-rule: #afc1b7;
  --pht-gap: clamp(1.5rem, 4vw, 4.8rem);
  color: var(--pht-ink);
  font: 400 clamp(1rem, 1.1vw, 1.18rem)/1.58 var(--ui);
}
@media (max-width:760px) { .pht-settings { --nova-package-photo-ratio:1.9; } }
.pht :is(h1, h2, h3, p, ol, ul) { margin: 0; }
.pht :is(h1, h2, h3) { font-family: var(--reading); font-weight: 400; line-height: 1.06; }
.pht h1 { max-width: 12ch; font-size: clamp(3.1rem, 6.2vw, 6.6rem); letter-spacing: -.045em; }
.pht h2 { font-size: clamp(2.15rem, 3.3vw, 3.9rem); letter-spacing: -.027em; }
.pht h3 { font-size: clamp(1.45rem, 1.8vw, 2.08rem); letter-spacing: -.015em; }
.pht a { color: var(--pht-teal); text-underline-offset: .2em; }
.pht :is(a, button, textarea, input):focus-visible { outline: 3px solid #986118; outline-offset: 4px; }
.pht-opening {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: clamp(475px, 38.4vw, 700px); background: var(--nova-paper);
  margin-inline: calc(-1 * var(--nova-gutter)); padding-inline: var(--nova-gutter);
}
.shell:has(> .pht) > .page-trail { position: relative; z-index: 1; width: fit-content; margin-bottom: -55px; }
.pht-hero-copy { width: min(43vw, 45rem); padding-block: clamp(72px, 6vw, 106px) clamp(26px, 3vw, 54px); }
.pht .pht-hero-copy h1 { max-width: none; margin-bottom: clamp(16px, 1.7vw, 29px); font-size: clamp(53px, 5.3vw, 99px); line-height: .94; }
.pht-hero-copy h1 span { display: block; }
.pht-intro { max-width: 50ch; font-size: clamp(16px, 1.12vw, 20px); line-height: 1.53; }
.pht-intro p:first-child:has(+ p) { color: #125153; font: 500 clamp(1.3rem,1.72vw,1.85rem)/1.22 var(--reading); }
.pht .pht-intro p + p { margin-top: .6rem; }
.pht .pht-eyebrow { margin-bottom: 1rem; font: 650 clamp(10px,.79vw,14px)/1.4 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.pht-hero-copy .pht-actions { gap: 0 clamp(14px, 1.6vw, 29px); font-size: clamp(13px, .95vw, 16px); line-height: 1.35; }
.pht-hero-copy .pht-actions a::after { content: '→'; margin-left: .65em; }
.pht-opening figure { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 69%; overflow: hidden; margin: 0; }
.pht-opening figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--nova-paper), var(--nova-paper) 7%, rgba(245,243,239,.93) 17%, rgba(245,243,239,.5) 28%, transparent 42%);
}
.pht-opening figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 28%; }
.pht p + p { margin-block-start: 1em; }
.pht-settings { margin-top: var(--pht-gap); }
.pht :is(#model-flow, #personal-dashboard, #capture, #settings, .pht-panel, #sharing) { scroll-margin-top: 6rem; }
.pht-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.6rem; margin-top: 1rem; }
.pht-actions a, .pht-settings h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.pht-actions a { font-weight: 630; }
.pht-settings ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--pht-gap);
  list-style: none; margin-top: 1.35rem; padding: 0;
}
.pht-settings li {
  display: grid; grid-template-columns: minmax(0,.48fr) minmax(0,1fr); gap: clamp(.8rem,1.3vw,1.5rem);
  align-items: start; border-top: 1px solid var(--pht-rule); padding-block: 1rem 1.15rem;
}
.pht-settings li:not(:has(img)) { grid-template-columns: 1fr; }
.pht-settings img { width:100%; aspect-ratio:var(--nova-package-photo-ratio); height:auto; object-fit:cover; border-radius:.15rem; }
.pht-settings h3 { font-size: clamp(1.25rem, 1.65vw, 1.9rem); }
.pht-settings h3 a { text-decoration-thickness: 1px; }
.pht-settings li p { max-width: 54ch; margin-top: .35rem; }
.pht-closing {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .99fr);
  align-items: center;
  gap: clamp(1rem, 2.3vw, 3rem);
  min-height: clamp(9.25rem, 12vw, 14.5rem);
  margin: clamp(1.5rem, 2.3vw, 3rem) calc(-.48 * var(--nova-gutter)) 0;
  padding: clamp(1.35rem, 1.8vw, 2.35rem) clamp(1.25rem, 3.25vw, 4rem) clamp(1.75rem, 2.8vw, 3.5rem);
  border-radius: .35rem;
  color: #fff;
}
.pht .pht-closing h2 { color: #fff; font-size: clamp(1.9rem, 2.7vw, 3.35rem); line-height: 1.06; }
.pht .pht-closing h2 { max-width: 20ch; }
.pht .pht-closing p { max-width: 57ch; margin-top: .85rem; color: #d5e7e2; font-size: clamp(.94rem,1.02vw,1.14rem); line-height: 1.48; }
.pht-closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem clamp(.75rem, 2vw, 2.2rem); }
.pht-closing-actions a {
  display: inline-flex; justify-content: center; align-items: center; gap: .85em;
  min-height: 44px; padding: .78em 1.65em; border: 1px solid #c7e6df; border-radius: .25rem;
  background: #062e31; color: #fff; text-decoration: none;
  font: 650 clamp(.83rem, .96vw, 1.06rem)/1.3 var(--ui);
}
.pht-closing-actions a:first-child { color: #07383b; background: #e2f3ee; }
.pht-closing-actions a:hover { color: #07383b; background: #c1ebe2; }
.pht-closing-actions a:focus-visible { outline: 3px solid #efca81; outline-offset: 4px; }
@media (max-width: 850px) {
  .pht-closing { grid-template-columns: 1fr; padding-block: 1.7rem; }
}
@media (max-width: 480px) {
  .pht-closing-actions { align-items: start; flex-direction: column; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .pht-settings ul { grid-template-columns: 1fr; }
  .pht-settings li { grid-template-columns: 25% 1fr; }
}
@media (min-width: 601px) and (max-width: 1023px) {
  .pht-hero-copy { width: 47vw; }
  .pht-opening figure { width: 64%; }
  .pht .pht-hero-copy h1 { font-size: clamp(3.15rem,6.2vw,4.2rem); }
}
@media (max-width: 760px) {
  .pht-settings ul { grid-template-columns: 1fr; gap: 1rem; }
  .pht-settings ul { gap: 0; }
}
@media (max-width: 600px) {
  .pht-opening { display: grid; min-height: 0; padding: 3.2rem 0 .65rem; }
  .pht-hero-copy { display: contents; }
  .pht-hero-copy > .pht-eyebrow, .pht-hero-copy h1 { position: relative; grid-column: 1; grid-row: 1; margin-inline: var(--nova-gutter); align-self: start; }
  .pht-hero-copy > .pht-eyebrow { margin-top: 1.3rem; font-size: .61rem; }
  .pht .pht-hero-copy h1 { align-self: center; margin-block: .95rem 0; font-size: clamp(2.55rem,8.8vw,3.2rem); }
  .pht-opening figure { position: relative; grid-row: 1; grid-column: 1; justify-self: end; width: 68%; height: clamp(12.4rem,48vw,16.5rem); }
  .pht-opening figure img { object-position: 76% 30%; }
  .pht-opening figure::after { background: linear-gradient(90deg,var(--nova-paper),rgba(245,243,239,.88) 15%,transparent 42%),linear-gradient(0deg,var(--nova-paper),transparent 14%); }
  .pht-intro { grid-row: 2; margin: .6rem var(--nova-gutter) 0; }
  .pht-hero-copy .pht-actions { margin-top: .45rem; }
}
.pht-dashboard {
  display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.36fr);
  align-items: start; gap: clamp(1.2rem,2.5vw,3rem); padding: clamp(1.1rem,2.9vw,3.6rem);
  margin-block: var(--pht-gap); border-radius: .55rem; color: #eef8f4;
  background: linear-gradient(165deg,#104246,#042a2e 78%); font-size: clamp(.93rem,1.04vw,1.14rem);
}
.pht-dashboard [hidden] { display: none; }
.pht-dashboard header > h2 { max-width: 13ch; color: #fff; font-size: clamp(2.25rem,3.55vw,4.55rem); margin-bottom: .65rem; }
.pht-dashboard header > p { max-width: 44ch; }
.pht-finding { margin: clamp(1.1rem,2vw,2rem) 0 0; padding: 1.1rem 1.3rem; background: #e8f1eb; border-left: 3px solid #83c3b3; border-radius: .25rem; color: #163a3b; }
.pht .pht-finding h3 { font: 650 1.02rem/1.45 var(--ui); margin-bottom: .35rem; }
.pht .pht-finding p { max-width: 48ch; }
.pht-case-workspace { min-width: 0; }
.pht-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .85rem; }
.pht-tabs button, .pht-panel button { min-height: 44px; cursor: pointer; font: 650 .91rem/1.35 var(--ui); }
.pht-tabs button { padding: .4rem .95rem; border: 1px solid #689493; border-radius: .3rem; color: #e7f2ed; background: #103a3e; }
.pht-tabs button[aria-selected=true], .pht-panel button { color: #133a3b; background: #def2e9; border: 1px solid #def2e9; }
.pht-dashboard :is(button, input, textarea, a, [tabindex]):focus-visible { outline: 3px solid #edcb7f; outline-offset: 3px; }
.pht-panel { min-width: 0; padding: clamp(1rem,1.5vw,1.85rem); border: 1px solid #5a8383; border-radius: .45rem; background: #082e32; }
.pht-panel + .pht-panel { margin-top: .5rem; }
.pht-panel h3, .pht-panel h4, .pht-panel figcaption { font: 650 1.04rem/1.4 var(--ui); color: #f6fbf8; margin: 0 0 .45rem; }
.pht-overview { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 1rem; }
.pht-overview figure { min-width: 0; margin: 0; }
.pht-overview figure p { color: #b3d2ce; font-size: .81rem; line-height: 1.45; }
.pht-plot { display: block; width: 100%; margin-block: .65rem .25rem; overflow: visible; }
.pht-plot-axis path { fill: none; stroke: #567574; stroke-width: .8; }
.pht-plot-axis text { fill: #c4dad7; font: 12px var(--ui); }
.pht-shift-window { fill: #134348; }
.pht-series-pulse { color: #65dacb; }
.pht-series-sleep { color: #e5a9cb; }
.pht-series-recovery { color: #e7c67e; }
.pht-series-activity { color: #a7c7f7; }
.pht-plot polyline { fill: none; stroke: currentColor; stroke-width: 2.4; }
.pht-series-sleep polyline { stroke-dasharray: 8 3; }
.pht-series-recovery polyline { stroke-dasharray: 3 3; }
.pht-series-activity polyline { stroke-dasharray: 10 3 2 3; }
.pht-plot circle { fill: #082e32; stroke: currentColor; stroke-width: 2; }
.pht-changes { border-left: 1px solid #41686a; padding-left: 1rem; }
.pht-changes dl, .pht-changes dd, .pht-context-list { margin: 0; }
.pht-changes dl > div { padding-block: .45rem; border-top: 1px solid #385e61; }
.pht-changes dt { font-size: .83rem; color: #cee1de; }
.pht-changes dt i { display: inline-block; width: .7rem; height: .2rem; margin-right: .4rem; vertical-align: middle; background: currentColor; }
.pht-changes dd { font-variant-numeric: tabular-nums; }
.pht-dashboard .pht-lab-note { border-top: 1px solid #41686a; padding-top: .85rem; margin: .9rem 0 0; font-size: .92rem; }
.pht-lab-note strong { display: block; }
.pht-dashboard a { color: #b1eadd; text-underline-offset: .18em; }
.pht .pht-finding a { display: inline-block; margin-top: .65rem; color: #115554; font-weight: 650; }
.pht .pht-finding a:focus-visible { outline-color: #835e19; }
.pht :is(#journey, [data-model-state], #pht-june-source, #pht-study-view) { scroll-margin-top: 6rem; }
.pht-panel .pht-model-dates { margin: 0 0 1.25rem; }
.pht-model-dates legend { padding-bottom: .65rem; color: #d3e5dd; font-size: .88rem; }
.pht-model-dates > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pht-panel .pht-model-dates label { padding: 0; display: block; position: relative; }
.pht-model-dates input { position: absolute; opacity: 0; }
.pht-model-dates span {
  display: block; height: 100%; box-sizing: border-box; padding: .6rem .55rem .65rem;
  border-top: 2px solid #638180; color: #bcd1ca; font-size: .79rem; line-height: 1.3;
}
.pht-model-dates b { display: block; font-size: .93rem; margin-bottom: .22rem; }
.pht-model-dates :checked + span { border-color: #9ddcc9; background: #194a4d; color: #f5fffa; }
.pht-model-dates :focus-visible + span { outline: 2px solid #edcb7f; outline-offset: -3px; }
.pht-state + .pht-state { margin-top: 1.5rem; }
.pht-state[hidden] + .pht-state { margin-top: 0; }
.pht-state .pht-state-label {
  color: #a9dbc9; font-size: .76rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
}
.pht-state-label span { color: #c6d4ce; }
.pht-panel .pht-state h3 {
  margin: .45rem 0 .6rem; max-width: 34ch; color: #fff;
  font: 400 clamp(1.55rem, 2.05vw, 2.35rem)/1.13 var(--reading); letter-spacing: -.02em;
}
.pht-state dl { margin: 1rem 0 0; }
.pht-state dl > div { display: grid; grid-template-columns: 8rem minmax(0,1fr); gap: .75rem; padding: .7rem 0; border-top: 1px solid #426466; }
.pht-state dt { font-weight: 650; color: #c8e7db; }
.pht-state dd { margin: 0; }
.pht-state dd a { display: inline-block; }
.pht-state dd, .pht-state > p:not(.pht-state-label) { line-height: 1.5; }
.pht-panel .pht-bio-title { margin-top: 1.2rem; }
.pht-specimens { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; margin: .75rem 0 1rem; }
.pht-specimens > div { border-top: 1px solid #74a5a0; padding-top: .4rem; }
.pht-specimens dt { color: #c1d9d1; font-size: .82rem; }
.pht-specimens dd { margin: .25rem 0; font: 400 clamp(1.5rem,2.3vw,2.25rem)/1.1 var(--reading); }
.pht-specimens small { font: 500 .76rem/1.3 var(--ui); }
.pht-agent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pht-panel .pht-specimen-picker { margin: .85rem 0; color: #c8e7db; font-weight: 650; }
.pht-specimen-picker select { display: block; width: min(100%,22rem); min-height: 44px; margin-top: .35rem; padding: .45rem .55rem; border: 1px solid #94bcb2; border-radius: .25rem; background: #eef6f2; color: #143638; font: inherit; }
.pht-specimen-picker select:focus-visible { outline: 3px solid #edcb7f; outline-offset: 3px; }
.pht-study-result { border-left: 2px solid #89c3b3; padding-left: .8rem; margin: 1rem 0; }
.pht-context-list > div { padding-block: .75rem; border-bottom: 1px solid #41686a; }
.pht-context-list > div:last-child { border: 0; }
.pht-context-list dt, .pht-evidence th { font-weight: 650; }
.pht-context-list dd { margin: .25rem 0 0; }
.pht-followup { border-top: 1px solid #41686a; padding-top: .9rem; margin-top: 1rem; }
.pht-followup summary { width: fit-content; color: #d2f6f0; cursor: pointer; font-weight: 650; }
.pht-followup[open] summary { margin-bottom: .75rem; }
.pht-evidence { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pht-evidence caption { text-align: left; color: #bdd4ce; margin-bottom: .65rem; }
.pht-evidence :is(th, td) { text-align: left; vertical-align: top; border-top: 1px solid #41686a; padding: .6rem .4rem; }
.pht-evidence :is(th, td):first-child { padding-left: 0; }
.pht-evidence thead th { color: #cae3dc; }
.pht-evidence th small { display: block; font-size: .8rem; font-weight: 400; line-height: 1.4; max-width: 23ch; color: #bdd4ce; }
.pht-panel fieldset { min-width: 0; margin: 1rem 0; padding: 0; border: 0; }
.pht-panel legend { padding: 0; font-weight: 650; }
.pht-panel label { display: block; }
.pht-panel fieldset label { display: flex; align-items: baseline; gap: .65rem; padding-block: .5rem; cursor: pointer; }
.pht-panel input { flex: none; width: 1.05rem; height: 1.05rem; accent-color: #b7e4d2; }
.pht-panel .pht-private { border-left: 2px solid #97bdb1; padding-left: .8rem; margin-bottom: 1rem; }
.pht-private strong { display: block; }
.pht-panel textarea { display: block; box-sizing: border-box; width: 100%; margin: .45rem 0 .8rem; padding: .7rem; border: 1px solid #9ebcb4; border-radius: .25rem; background: #fbfcf8; color: #143537; font: inherit; resize: vertical; }
.pht-panel button { padding: .55rem .9rem; border-radius: .3rem; }
#pht-recipient { margin-top: 1rem; padding: 1rem; border: 1px solid #648c88; border-radius: .3rem; }
#pht-shared-question { margin-block: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1120px) {
  .pht-dashboard { grid-template-columns: 1fr; }
  .pht-dashboard header { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 2rem; }
  .pht-dashboard header > :is(h2,p) { grid-column: 1; }
  .pht-dashboard .pht-finding { grid-column: 2; grid-row: 2 / 4; margin: 0; align-self: center; }
}
@media (max-width: 650px) {
  .pht-state dl > div { display: block; }
  .pht-state dt { margin-bottom: .25rem; }
  .pht-dashboard header { display: block; }
  .pht-dashboard .pht-finding { margin-top: 1rem; }
  .pht-overview { grid-template-columns: 1fr; }
  .pht-changes { border-left: 0; padding-left: 0; }
  .pht-changes dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 .75rem; }
  .pht-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pht-tabs button { padding-inline: .35rem; }
  .pht-evidence { font-size: .79rem; }
  .pht-evidence th small { font-size: .72rem; }
  .pht-evidence :is(th, td) { padding-inline: .2rem; }
}
@media print {
  .pht :is(h2,h3,li) { break-inside: avoid; }
}
