:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#1a2e2e;background:#e9eae3;font-synthesis:none;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0}.page{max-width:480px;margin:auto;min-height:100svh;background:#f7f3eb;padding:0 25px;display:flex;flex-direction:column}header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(25px + env(safe-area-inset-top)) 0 32px}.brand{font-size:30px;font-style:italic;letter-spacing:-1.6px;text-decoration:none;color:inherit}.brand span{font-size:10px;font-style:normal;letter-spacing:0;margin-left:5px;color:#687970}.visitor{font-size:10px;border:1px solid #dce0d5;border-radius:30px;padding:8px 11px;color:#687970}main{flex:1}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:600;color:#687970;margin:0;overflow-wrap:anywhere}h1{font-size:37px;line-height:1.12;font-weight:500;letter-spacing:-1.5px;margin:10px 0 25px}.snapshot{--accent:#286c5b;--tint:#e8eee2;background:var(--tint);border-radius:28px;padding:30px 22px 23px;text-align:center}.snapshot[data-status=mixed]{--accent:#88652d;--tint:#f1e7cf}.snapshot[data-status=stuffy]{--accent:#955239;--tint:#f1dfd3}.snapshot[data-status=unavailable]{--accent:#687970;--tint:#ecece4}.snapshot h2{font-family:Georgia,serif;font-size:42px;line-height:1.1;font-weight:400;letter-spacing:-1.5px;color:var(--accent);margin:11px 0 15px}.snapshot>p:not(.eyebrow){font-size:14px;line-height:1.65;margin:0 auto;max-width:285px;color:#52675e}.reading{border-top:1px solid #1a2e2e1a;margin-top:24px;padding-top:17px;font-size:11px;color:#52675e}.reading span{display:block;margin-bottom:5px}.reading time{line-height:1.5}.next-step{display:flex;gap:14px;margin:25px 3px 19px}.next-step>span{color:#286c5b;font-size:24px}.next-step h2{font-size:15px;font-weight:600;margin:0 0 7px}.next-step p,.snapshot-note{font-size:12px;line-height:1.7;color:#687970;margin:0}.snapshot-note{font-size:11px;margin:0 3px}footer{text-align:center;padding:30px 0 calc(25px + env(safe-area-inset-bottom))}footer p{font:italic 14px Georgia,serif;color:#7a8677}footer a{display:inline-block;padding:12px;color:#286c5b;font-size:12px;text-underline-offset:4px}a:focus-visible{outline:3px solid #286c5b;outline-offset:5px}[hidden]{display:none!important}@media(min-width:650px){.page{margin:28px auto;min-height:calc(100svh - 56px);border-radius:30px;box-shadow:0 12px 80px #253d2414}}@media(max-width:360px){.page{padding-inline:18px}h1{font-size:33px}.snapshot{padding-inline:18px}}

.gauge{position:relative;width:218px;height:180px;margin:14px auto 0}.gauge svg{width:218px;height:218px;fill:none;stroke:none;overflow:visible}.gauge .ring-bg{stroke:#1a2e2e12;stroke-width:5;fill:none}.gauge .ring{stroke:var(--accent);stroke-width:5;fill:none;stroke-linecap:round;stroke-dasharray:354 530;transform:rotate(150deg);transform-origin:110px 110px}.gauge .ring-tick{stroke:var(--accent);stroke-width:1;opacity:.18}.gauge .ring-dot{fill:var(--accent);stroke:var(--tint);stroke-width:3}.gauge-value{position:absolute;top:59px;left:41px;right:41px;height:100px;display:flex;align-items:center;justify-content:center}.gauge-value .eyebrow{font-size:8px;letter-spacing:1.4px}.gauge-value h2{font-family:Georgia,'Iowan Old Style',serif;font-weight:400;font-size:28px;line-height:1.12;letter-spacing:-.7px;margin:0;overflow-wrap:normal;text-wrap:balance}.snapshot[data-status=fresh] .gauge-value h2{font-size:45px}.snapshot>p.gauge-caption{font-size:11px;color:var(--accent);margin:0 auto 20px}.snapshot[data-status=unavailable] .ring{opacity:.25}.snapshot[data-status=unavailable] .ring-dot{display:none}

/* Fit the visitor snapshot to the available phone viewport, including browser chrome. */
@media(max-width:649px){
  .page{min-height:100svh;min-height:100dvh;padding-inline:clamp(16px,5vw,25px)}
  header{padding:calc(env(safe-area-inset-top) + clamp(8px,2dvh,20px)) 0 clamp(8px,2dvh,20px)}
  .brand{font-size:26px}.visitor{padding:6px 9px}
  main{flex:0 0 auto}
  h1{font-size:clamp(25px,4.5dvh,37px);margin:clamp(5px,1dvh,10px) 0 clamp(10px,2dvh,20px)}
  h1 br{display:none}
  .snapshot{padding:clamp(12px,2.4dvh,24px) 16px;border-radius:24px}
  .gauge{--gauge-size:clamp(120px,26dvh,218px);width:var(--gauge-size);height:calc(var(--gauge-size)*.826);margin:clamp(5px,1.3dvh,14px) auto 0}
  .gauge svg{width:100%;height:auto}
  .gauge-value{top:27%;left:19%;right:19%;height:55%}
  .gauge-value h2{font-size:clamp(19px,3.5dvh,28px)}
  .snapshot[data-status=fresh] .gauge-value h2{font-size:clamp(28px,5.4dvh,45px)}
  .snapshot>p.gauge-caption{margin-bottom:clamp(6px,1.6dvh,16px)}
  .snapshot>p:not(.eyebrow):not(.gauge-caption){font-size:13px;line-height:1.45}
  .reading{margin-top:clamp(8px,1.8dvh,18px);padding-top:clamp(7px,1.4dvh,14px)}
  .reading span{display:inline;margin-right:6px}
  .next-step{gap:10px;margin:clamp(10px,2dvh,20px) 0 clamp(7px,1.2dvh,12px)}
  .next-step h2{font-size:14px;margin-bottom:4px}
  .next-step p{font-size:12px;line-height:1.45}
  .snapshot-note{font-size:10px;line-height:1.4;margin:0}
  footer{margin-top:auto;padding:clamp(7px,1.3dvh,15px) 0 calc(env(safe-area-inset-bottom) + 5px);display:flex;align-items:center;justify-content:space-between;gap:10px}
  footer p{font-size:11px;margin:0}footer a{font-size:11px;padding:10px 0;white-space:nowrap}
}
@media(max-width:649px) and (max-height:600px){
  .gauge-caption{display:none}
  .snapshot .eyebrow{font-size:8px}
  .next-step>span{font-size:18px}
}
/* Short landscape phones use two columns instead of compressing the text. */
@media(min-width:500px) and (max-height:500px){
  .page{max-width:850px;min-height:100dvh;margin:0 auto;padding:0 20px;border-radius:0}
  header{padding:calc(env(safe-area-inset-top) + 6px) 0 8px}.brand{font-size:24px}
  main{display:grid;grid-template-columns:1fr 1fr;column-gap:24px;align-content:center;flex:1}
  main>.eyebrow{grid-column:1;align-self:end}h1{grid-column:1;font-size:27px;margin:6px 0 8px}h1 br{display:none}
  .snapshot{grid-column:2;grid-row:1/5;padding:10px 14px}
  .gauge{width:130px;height:108px;margin:4px auto 0}.gauge svg{width:100%;height:auto}
  .gauge-value{top:27%;left:19%;right:19%;height:55%}.gauge-value h2{font-size:19px}.snapshot[data-status=fresh] .gauge-value h2{font-size:28px}
  .gauge-caption{display:none}.snapshot>.eyebrow{font-size:8px}.snapshot>p:not(.eyebrow){font-size:12px;line-height:1.4}
  .reading{margin-top:7px;padding-top:7px;font-size:10px}.reading span{display:inline;margin-right:5px}
  .next-step{grid-column:1;margin:8px 0}.next-step p{line-height:1.4}.snapshot-note{grid-column:1;font-size:10px}
  footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding:4px 0 calc(env(safe-area-inset-bottom) + 4px)}footer p{font-size:11px;margin:0}footer a{font-size:11px;padding:8px}
}

/* Keep the original proportions on taller phones; compact only when needed. */
@media(max-width:649px) and (min-height:700px){
  main{flex:1;display:flex;flex-direction:column;justify-content:center;padding-block:12px}
  h1 br{display:initial}
  h1{font-size:clamp(30px,4.5svh,37px);margin-bottom:20px}
  .snapshot{padding-block:clamp(18px,2.8svh,26px)}
  .next-step{margin-top:22px;margin-bottom:12px}
  .snapshot-note{font-size:11px;line-height:1.5}
  footer{margin-top:0;padding-top:14px;padding-bottom:calc(env(safe-area-inset-bottom) + 14px)}
}

/* A compact, consistent composition rather than stretching to fill the screen. */
.page{justify-content:flex-start}
header{padding-bottom:22px}
main{flex:0 0 auto}
h1{font-size:30px;line-height:1.15;letter-spacing:-1px;margin:8px 0 20px}
.snapshot{padding:20px 18px;border-radius:24px}
.gauge{width:180px;height:149px;margin:10px auto 0}
.gauge svg{width:100%;height:auto}
.gauge-value{top:27%;left:19%;right:19%;height:55%}
.gauge-value h2{font-size:24px}
.snapshot[data-status=fresh] .gauge-value h2{font-size:37px}
.snapshot>p.gauge-caption{margin-bottom:12px}
.snapshot>p:not(.eyebrow):not(.gauge-caption){font-size:13px;line-height:1.5}
.reading{margin-top:15px;padding-top:12px;font-size:10px}
.reading span{display:inline;margin-right:6px}
.next-step{margin:18px 0 12px;gap:10px}
.next-step h2{font-size:14px;margin-bottom:5px}
.next-step p{font-size:12px;line-height:1.5}
.snapshot-note{font-size:10px;line-height:1.5;margin:0}
footer{margin-top:0;padding:20px 0 calc(env(safe-area-inset-bottom) + 16px);display:flex;align-items:center;justify-content:space-between;gap:12px}
footer p{font-size:11px;margin:0}footer a{font-size:11px;padding:8px 0;white-space:nowrap}
@media(max-width:649px){
  .page{padding-inline:24px}
  header{padding-top:calc(env(safe-area-inset-top) + 18px);padding-bottom:24px}
  main{display:block;padding:0;flex:0 0 auto}
  h1{font-size:30px;margin:8px 0 20px}h1 br{display:initial}
  .snapshot{padding:20px 18px}
  .next-step{margin:18px 0 12px}
  .snapshot-note{font-size:10px;line-height:1.5}
  footer{padding-top:20px;padding-bottom:calc(env(safe-area-inset-bottom) + 12px)}
}
@media(max-width:649px) and (max-height:650px){
  .page{padding-inline:18px}header{padding-top:calc(env(safe-area-inset-top) + 10px);padding-bottom:12px}
  h1{font-size:26px;margin:6px 0 12px}h1 br{display:none}
  .snapshot{padding:12px 16px}.gauge{width:140px;height:116px;margin-top:6px}
  .gauge-value h2{font-size:20px}.snapshot[data-status=fresh] .gauge-value h2{font-size:30px}
  .gauge-caption{display:none}.reading{margin-top:8px;padding-top:8px}
  .next-step{margin:12px 0 8px}footer{padding-top:10px;padding-bottom:calc(env(safe-area-inset-bottom) + 6px)}
}
@media(min-width:500px) and (max-height:500px){
  main{display:grid;flex:1}.gauge{width:130px;height:108px}.gauge-value h2{font-size:19px}
  .snapshot[data-status=fresh] .gauge-value h2{font-size:28px}.snapshot{padding:10px 14px}
  h1{font-size:27px;margin:6px 0 8px}h1 br{display:none}header{padding-block:6px}
  .next-step{margin:8px 0}footer{padding-block:4px}
}

.history{margin-top:16px;padding:14px 16px;background:#ffffff80;border:1px solid #1a2e2e0c;border-radius:17px}
.history-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}.history h2{font-size:13px;font-weight:600;margin:0}.history-heading>span{font-size:9px;color:#687970}
.history-bars{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;height:22px}.history-bars>span{border-radius:3px}
[data-level=f]{background:#438575}[data-level=m]{background:#c3a25e}[data-level=s]{background:#bd785e}
.history-axis{display:flex;justify-content:space-between;font-size:9px;color:#687970;margin-top:5px}.history-legend{display:flex;justify-content:center;gap:16px;margin-top:9px;font-size:9px;color:#52675e}.history-legend span{display:flex;align-items:center;gap:4px}.history-legend i{width:6px;height:6px;border-radius:2px}#history-empty{font-size:11px;color:#687970;margin:0}
@media(max-width:649px){.gauge{width:150px;height:124px}.gauge-value h2{font-size:21px}.snapshot[data-status=fresh] .gauge-value h2{font-size:32px}.snapshot>p.gauge-caption{display:none}.snapshot{padding-block:15px}header{padding-bottom:16px}.history{margin-top:12px}.next-step{margin-top:12px}footer{padding-top:12px}}
@media(max-width:649px) and (max-height:650px){
 header{padding-block:8px}.brand{font-size:23px}h1{font-size:24px;margin-bottom:9px}
 .snapshot{padding:10px 14px}.gauge{width:110px;height:91px;margin-top:3px}.gauge-value h2{font-size:16px}.snapshot[data-status=fresh] .gauge-value h2{font-size:25px}
 .snapshot>p:not(.eyebrow):not(.gauge-caption){font-size:12px;line-height:1.3}.reading{margin-top:6px;padding-top:6px}
 .history{padding:9px 12px;margin-top:8px}.history-heading{margin-bottom:6px}.history-bars{height:15px}.history-legend{margin-top:5px}
 .next-step{margin:8px 0 6px}.next-step h2{font-size:12px;margin-bottom:3px}.next-step p{font-size:11px;line-height:1.3}.snapshot-note{font-size:9px;line-height:1.3}footer{padding-top:6px}
}
@media(min-width:500px) and (max-height:500px){.history{grid-column:1;grid-row:3;margin:6px 0}.next-step{grid-row:4}.snapshot-note{grid-row:5}.snapshot{grid-row:1/6}}
@media(max-width:649px) and (max-height:520px){header{padding-block:5px}.gauge{width:100px;height:83px}.reading{margin-top:4px;padding-top:4px}footer{padding-block:3px}}

/* Use the full height on everyday phones, retaining the short-screen fit. */
@media(max-width:649px) and (min-height:651px){
  .page{min-height:100svh;min-height:100dvh}
  main{flex:1;display:flex;flex-direction:column;padding:0}
  h1{font-size:clamp(30px,4.2dvh,36px);margin-bottom:clamp(16px,2.5dvh,24px)}
  .snapshot{flex:1;display:flex;flex-direction:column;justify-content:center;padding:clamp(16px,2.5dvh,26px) 18px}
  .gauge{width:clamp(150px,23dvh,210px);height:clamp(124px,19dvh,174px);margin:12px auto 8px;flex-shrink:0}
  .gauge-value h2{font-size:clamp(21px,3.2dvh,28px)}
  .snapshot[data-status=fresh] .gauge-value h2{font-size:clamp(32px,4.8dvh,42px)}
  .snapshot>p:not(.eyebrow):not(.gauge-caption){font-size:14px;line-height:1.5}
  .reading{margin-top:clamp(12px,2dvh,20px);padding-top:12px}
  .history{margin-top:16px;padding:14px 16px}
  .history-bars{height:clamp(22px,3.5dvh,30px)}
  .next-step{margin:16px 0 12px}
  footer{margin-top:0;padding-top:16px;padding-bottom:calc(env(safe-area-inset-bottom) + 14px)}
}

/* Touch and go is a single-screen view. JS fits content when space is tight. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
.page{height:100svh;height:100dvh;min-height:0;transform-origin:top center}
header,footer{flex-shrink:0}
@media(min-width:650px) and (min-height:501px){.page{height:calc(100dvh - 56px)}}
