@charset "UTF-8";
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #202e27;
  background: #f6f7f2;
  font-synthesis: none;
  --bg: #f6f7f2;
  --paper: #fffefa;
  --ink: #202e27;
  --muted: #5d6b61;
  --line: #dce2d7;
  --green: #1c4938;
  --lime: #d4efa4;
  --radius: 20px;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
}
button,
select,
input,
textarea {
  border-radius: 9px;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #799c34;
  outline-offset: 3px;
}
button,
a {
  transition:
    background-color 0.16s,
    color 0.16s,
    box-shadow 0.16s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button svg,
a svg {
  flex: none;
  vertical-align: middle;
}
strong,
b {
  font-weight: 640;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  color: #172d22;
}
h1 {
  font-size: clamp(2rem, 3.55vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.064em;
  font-weight: 620;
}
h2 {
  font-size: 1.36rem;
  line-height: 1.22;
  letter-spacing: -0.046em;
  font-weight: 630;
}
h3 {
  font-size: 1.03rem;
  letter-spacing: -0.023em;
}
small {
  font-size: 0.81rem;
}
p,
small {
  line-height: 1.5;
}
.skip {
  position: fixed;
  left: 10px;
  top: -70px;
  z-index: 15;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
}
#rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--line);
  background: #f0f3eb;
  padding: 32px 16px 24px;
  display: flex;
  flex-direction: column;
}
.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 1.65rem;
  font-weight: 690;
  letter-spacing: -0.071em;
}
.brand {
  align-self: flex-start;
  padding-left: 8px;
}
.brand img {
  width: 36px;
  height: 36px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 62px;
}
.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 45px;
  padding: 10px 13px;
  border-radius: 9px;
  text-decoration: none;
  color: #536357;
  font-size: 0.92rem;
  font-weight: 550;
}
.nav-item:hover {
  background: #e6ebdf;
}
.nav-item.active {
  color: #1d4935;
  background: #dfe9d3;
  font-weight: 650;
}
.prefs-nav {
  border-top: 1px solid #d5decf;
  margin: 19px 0 0;
  padding: 16px 0;
}
.rail-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 21px 6px 0;
  font-size: 0.83rem;
  font-weight: 600;
}
.rail-foot svg {
  color: #54705a;
}
.rail-foot small {
  display: block;
  font-size: 0.77rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.canvas {
  min-width: 0;
}
#bar {
  min-height: 62px;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(22px, 3.4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crumb {
  font-size: 0.85rem;
  color: #657269;
}
.crumb i {
  font-style: normal;
  color: #a0ad9f;
  margin: 0 11px;
}
.crumb b {
  color: #35483a;
  font-weight: 580;
}
.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: #4f6554;
  padding: 5px 10px;
  border: 1px solid #cfd9c8;
  border-radius: 30px;
}
.mobile-brand {
  display: none;
}
main {
  max-width: 1510px;
  margin: 0 auto;
  padding: clamp(25px, 3.1vw, 55px) clamp(22px, 3.4vw, 60px) 28px;
}
.heading,
.panel-head,
.dialog-head,
.row-actions,
.dialog-actions,
.entry-choices,
.status-line,
.index-stat,
.chart-tools,
.chart-foot,
.score-bottom,
.timer-strip,
.check-row,
.manage-row,
.detail-goal,
.activity-row,
.event,
.review-goal,
.insight,
.day-row {
  display: flex;
  align-items: center;
}
.heading,
.panel-head,
.dialog-head,
.chart-tools,
.chart-foot,
.score-bottom,
.event {
  justify-content: space-between;
}
.heading {
  gap: 15px;
  margin-bottom: 27px;
}
.heading p,
.panel-head p,
.inner-panel > p,
.muted {
  color: var(--muted);
}
.heading p {
  margin-top: 9px;
  font-size: 1rem;
}
.primary,
.soft,
.text-btn,
.danger,
.danger-link,
.on-dark,
.icon-btn,
.quick,
.seg button,
.ranges button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.primary,
.soft,
.danger {
  min-height: 43px;
  padding: 9px 16px;
  font-size: 0.88rem;
}
.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 2px 3px #183d2311;
}
.primary:hover {
  background: #286448;
}
.soft,
.icon-btn,
.quick {
  background: #f4f6ef;
  border: 1px solid #dbe2d5;
}
.soft:hover,
.icon-btn:hover,
.quick:hover {
  background: #e7eddd;
}
.text-btn,
.danger-link,
.on-dark {
  font-size: 0.83rem;
  min-height: 36px;
  padding: 4px 2px;
  background: transparent;
  color: var(--green);
}
.text-btn:hover,
.danger-link:hover,
.on-dark:hover {
  text-decoration: underline;
}
.icon-btn,
.quick {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 10px;
}
.quick {
  border-radius: 50%;
  background: #fffefa;
  color: #455b47;
}
.quick.done {
  color: #234c36;
  background: #e0efca;
  border-color: #cadfb6;
}
.danger-link {
  color: #9d4438;
}
.danger {
  color: white;
  background: #994b40;
}
.row-actions,
.entry-choices,
.dialog-actions {
  gap: 9px;
  flex-wrap: wrap;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.47fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.index {
  background: #193d31;
  color: #f7faec;
  border-color: #193d31;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.index-top {
  position: relative;
  padding: 25px 27px 0;
  isolation: isolate;
}
.contours {
  position: absolute;
  top: -22px;
  right: -10px;
  width: 62%;
  height: 181px;
  color: #93ac83;
  opacity: 0.34;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.eyeline {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 560;
  color: #e4efd9;
}
.accent-stroke {
  width: 20px;
  height: 2px;
  background: var(--lime);
}
.index-stat {
  gap: 13px;
  margin: 7px 0 1px;
}
.index-stat strong {
  font-size: clamp(3.4rem, 5vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.075em;
  font-weight: 530;
  font-variant-numeric: tabular-nums;
}
.index-delta {
  background: #325640;
  color: #d9f1b2;
  font-size: 0.84rem;
  border-radius: 20px;
  padding: 4px 9px;
}
.index-top p {
  font-size: 0.81rem;
  color: #bbcdbb;
}
.chart-area {
  margin-top: auto;
  padding: 20px 25px 8px;
}
.chart-tools {
  gap: 8px;
}
.seg,
.ranges {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.seg {
  padding: 3px;
  background: #0e2d23;
  border: 1px solid #375646;
  border-radius: 9px;
}
.seg button,
.ranges button {
  font-size: 0.78rem;
  font-weight: 540;
  min-height: 30px;
  padding: 4px 9px;
  color: #c3d5c3;
  border-radius: 6px;
}
.seg button.on {
  color: #183b2b;
  background: #e2edce;
}
.seg button:hover:not(.on),
.ranges button:hover {
  background: #355a46;
}
.ranges button {
  padding: 3px 7px;
}
.ranges button.on {
  background: #365644;
  color: #f1f6e7;
}
#plot {
  position: relative;
  width: 100%;
  margin: 10px 0 3px;
}
#plot > svg {
  display: block;
  width: 100%;
  height: 163px;
  overflow: visible;
}
#plot text {
  font-size: 10.5px;
  fill: #c2d0bf;
}
#plot .gridline {
  stroke: #79917a;
  stroke-opacity: 0.34;
  stroke-dasharray: 3 4;
}
#plot .cursor {
  stroke: #c3dea6;
  stroke-opacity: 0.55;
  stroke-dasharray: 3 4;
}
#plot .track {
  fill: none;
  stroke: #d1efa3;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#plot .fill {
  fill: url(#line-fill);
}
.plot-targets {
  position: absolute;
  inset: 0;
}
.plot-targets button {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 0;
}
.plot-targets button:hover,
.plot-targets button:focus-visible {
  background: #effcc209;
}
.chart-foot {
  border-top: 1px solid #42604c;
  margin-top: 9px;
  padding-top: 3px;
  gap: 6px;
}
.chart-key,
.on-dark {
  font-size: 0.76rem;
  color: #e7f0d9;
}
.chart-key {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-key i {
  width: 15px;
  height: 3px;
  background: var(--lime);
  border-radius: 3px;
}
.chart-key b {
  color: var(--lime);
}
.chart-key .fall {
  color: #f1b094;
}
.gap-key {
  color: #c0d0bc;
  margin-left: 8px;
}
.checkin,
.recent,
.score-card {
  padding: 23px 23px 13px;
}
.checkin {
  display: flex;
  flex-direction: column;
}
.panel-head {
  gap: 10px;
  margin-bottom: 10px;
}
.panel-head p,
.inner-panel > p {
  font-size: 0.89rem;
  margin-top: 4px;
}
.tile-symbol {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #5b745c;
  background: #f0f4e9;
  flex: none;
}
.check-rows {
  margin: 2px 0 auto;
}
.check-row {
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid #e7eadf;
}
.check-row:last-child {
  border: 0;
}
.goal-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: var(--tint);
  color: var(--tone);
}
.t-book {
  --tint: #e8eed8;
  --tone: #526b32;
  --swatch: #a6bf74;
}
.t-timer {
  --tint: #f8ebce;
  --tone: #91691b;
  --swatch: #d4ae61;
}
.t-shoe {
  --tint: #fae5d9;
  --tone: #95593c;
  --swatch: #cb8f70;
}
.t-moon {
  --tint: #e3ecf3;
  --tone: #516d87;
  --swatch: #8ba7bd;
}
.t-goals,
.t-leaf {
  --tint: #e3eee4;
  --tone: #527762;
  --swatch: #8ab694;
}
.goal-link,
.grow {
  flex: 1;
  min-width: 0;
}
.goal-link {
  padding: 8px 0;
  text-align: left;
}
.goal-link:hover strong {
  text-decoration: underline;
}
.goal-link strong,
.grow strong,
.activity-row strong,
.detail-goal strong {
  display: block;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}
.goal-link small,
.grow small,
.activity-row small,
.event small {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
}
.timer-strip {
  background: #f0f4e8;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 10px;
  min-height: 43px;
  margin: 10px 0 0;
  color: #3d553e;
}
.timer-strip > span {
  flex: 1;
  font-size: 0.83rem;
}
.timer-strip .text-btn {
  font-size: 0.8rem;
}
.score-card,
.recent {
  padding-bottom: 16px;
}
.badge {
  display: inline-block;
  flex: none;
  background: #eef1e9;
  color: #53624f;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge.pending {
  background: #f5ecd6;
  color: #7a5c1d;
}
.badge.settled,
.badge.rest {
  background: #e7efd9;
  color: #47613a;
}
.badge.missing {
  background: #f6e6db;
  color: #865037;
}
.score-number {
  font-size: 2.6rem;
  letter-spacing: -0.065em;
  font-weight: 570;
  margin: 12px 0 8px;
}
.score-number small {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0;
  font-weight: 450;
}
.stackbar {
  display: flex;
  overflow: hidden;
  background: #e9ede3;
  height: 8px;
  border-radius: 9px;
}
.swatch {
  display: block;
  background: var(--swatch);
  height: 100%;
}
.score-bottom {
  margin-top: 9px;
  gap: 10px;
}
.score-bottom > span,
.overview-foot {
  font-size: 0.8rem;
  color: var(--muted);
}
.activity-row {
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 9px 0;
  border-top: 1px solid #e7eadf;
  border-radius: 0;
}
.activity-row:hover {
  background: #f3f6ed;
}
.activity-row span:nth-child(2) {
  flex: 1;
}
.activity-row b,
.day-row b {
  font-size: 0.84rem;
}
.dot {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: var(--swatch);
  flex: none;
}
.overview-foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.inner-panel {
  padding: 24px;
  margin-bottom: 17px;
}
.inner-panel > p {
  margin-bottom: 16px;
}
.inner-panel h3,
.inner-panel form {
  margin-top: 17px;
}
.inner-panel .panel-head {
  margin-bottom: 17px;
}
.manage-row,
.detail-goal,
.review-goal,
.day-row {
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.day-row {
  width: 100%;
  text-align: left;
  border-radius: 0;
}
.day-row:hover {
  background: var(--bg);
}
.day-row strong {
  margin-right: auto;
}
.day-row b {
  min-width: 3ch;
  text-align: right;
}
.review-stats,
.detail-stats,
.ohlc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 15px 0 21px;
}
.review-stats div,
.detail-stats div,
.ohlc div {
  border-radius: 10px;
  background: #f1f4eb;
  padding: 14px;
}
.review-stats strong,
.detail-stats strong {
  font-size: 1.8rem;
  display: block;
  letter-spacing: -0.04em;
}
.review-stats small,
.detail-stats small,
.ohlc small {
  display: block;
  color: var(--muted);
}
.review-goal .stackbar {
  margin-top: 7px;
}
.review-goal b {
  min-width: 5ch;
  text-align: right;
}
.insight,
.preview {
  margin: 13px 0;
  background: #eef3e4;
  color: #3e573e;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}
.insight {
  gap: 12px;
}
.insight svg {
  flex: none;
}
.empty {
  padding: 14px 0;
}
.empty p {
  color: var(--muted);
  font-size: 0.91rem;
  margin: 4px 0 8px;
}
.inner-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
dialog {
  position: fixed;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  border-radius: 20px;
  width: min(480px, calc(100% - 24px));
  max-height: 88dvh;
  box-shadow: 0 20px 100px #10251b44;
}
dialog::backdrop {
  background: #12251dc0;
}
#sheet-body {
  padding: 23px;
}
.dialog-head {
  gap: 12px;
  margin-bottom: 17px;
}
.dialog-head h2 {
  font-size: 1.5rem;
}
.dialog-head .icon-btn {
  width: 34px;
  height: 34px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.86rem;
  font-weight: 580;
  margin: 12px 0;
}
.field input,
.field select,
.field textarea {
  min-width: 0;
  width: 100%;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #bbc8b9;
  padding: 9px 11px;
  min-height: 43px;
}
.field textarea {
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 35px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23475c48' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field input:disabled,
.field select:disabled {
  opacity: 0.6;
}
.narrow {
  max-width: 230px;
}
.inline-check,
.weekday-picks {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inline-check input,
.weekday-picks input {
  accent-color: var(--green);
}
.form-grid,
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 12px 0;
}
legend {
  font-size: 0.86rem;
  font-weight: 580;
  margin-bottom: 7px;
}
.weekday-picks {
  gap: 5px;
  flex-wrap: wrap;
}
.weekday-picks label {
  position: relative;
}
.weekday-picks input {
  opacity: 0;
  position: absolute;
  inset: 0;
}
.weekday-picks span {
  display: block;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.77rem;
}
.weekday-picks input:checked + span {
  background: #e2ecd7;
  border-color: #afc59b;
}
.weekday-picks input:focus-visible + span {
  outline: 2px solid var(--green);
}
.status-line {
  gap: 9px;
  color: var(--muted);
  margin: 14px 0 8px;
  font-size: 0.87rem;
}
.muted {
  font-size: 0.91rem;
}
.detail-goal {
  gap: 9px;
}
.detail-goal b {
  font-size: 0.93rem;
  white-space: nowrap;
}
.detail-goal b small {
  font-weight: 400;
}
.dialog-actions,
.entry-choices {
  margin: 14px 0;
}
.ohlc {
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.ohlc div {
  padding: 8px;
  text-transform: capitalize;
}
.event {
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.big-clock {
  text-align: center;
  font-size: 3.8rem;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
  margin: 18px 0;
}
dialog .muted + button,
dialog .muted + form,
dialog h3 {
  margin-top: 15px;
}
dialog form > button:last-child {
  margin-top: 8px;
}
#form-error {
  color: #963b29;
  font-size: 0.87rem;
}
#form-error:empty {
  display: none;
}
#toast {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  max-width: calc(100vw - 40px);
  color: white;
  background: #163c2e;
  box-shadow: 0 3px 20px #18362422;
  border-radius: 11px;
  padding: 12px 16px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
}
@media (min-width: 1550px) {
  .check-row {
    min-height: 73px;
  }
  .checkin,
  .recent,
  .score-card {
    padding: 27px;
  }
  .chart-area {
    padding-top: 28px;
  }
  .index-top {
    padding-top: 31px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  #rail {
    padding-inline: 12px;
  }
  .overview-grid {
    gap: 15px;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  }
  main {
    padding-inline: 24px;
  }
  .index-top {
    padding-inline: 19px;
  }
  .chart-area {
    padding-inline: 17px;
  }
  .checkin,
  .recent,
  .score-card {
    padding: 19px 16px 14px;
  }
  .gap-key {
    margin-left: 3px;
  }
}
@media (max-width: 910px) and (min-width: 701px) {
  .shell {
    grid-template-columns: 75px minmax(0, 1fr);
  }
  #rail {
    align-items: center;
    padding-inline: 7px;
  }
  .brand {
    padding-left: 10px;
    font-size: 0;
  }
  .nav-item {
    gap: 0;
    justify-content: center;
    width: 59px;
    flex-direction: column;
    font-size: 0.64rem;
    padding: 6px 1px;
    text-align: center;
  }
  .rail-foot div {
    display: none;
  }
  .brand img {
    width: 35px;
  }
  .crumb {
    font-size: 0.8rem;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  #rail {
    position: fixed;
    bottom: 0;
    top: auto;
    width: 100%;
    height: auto;
    z-index: 5;
    padding: 4px 8px max(4px, env(safe-area-inset-bottom));
    background: #fafcf5f7;
    backdrop-filter: blur(12px);
    border: 0;
    border-top: 1px solid var(--line);
  }
  #rail .brand,
  .rail-foot,
  .crumb {
    display: none;
  }
  nav {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
  }
  .prefs-nav {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .nav-item {
    min-height: 48px;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    font-size: 0.69rem;
    padding: 5px 2px;
  }
  .nav-item svg {
    width: 18px;
    height: 18px;
  }
  .mobile-brand {
    display: flex;
    font-size: 1.37rem;
  }
  .mobile-brand img {
    width: 30px;
    height: 30px;
  }
  #bar {
    padding: 0 17px;
    min-height: 54px;
  }
  .local-badge {
    font-size: 0.72rem;
  }
  main {
    padding: 23px 15px 84px;
  }
  .heading {
    margin-bottom: 18px;
    gap: 8px;
  }
  .heading p {
    font-size: 0.86rem;
    margin-top: 5px;
  }
  h1 {
    font-size: clamp(1.75rem, 6.8vw, 2.6rem);
  }
  .heading .primary {
    padding: 9px 12px;
    font-size: 0.8rem;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .index-top {
    padding: 20px 19px 0;
  }
  .index-stat strong {
    font-size: 3.7rem;
  }
  .chart-area {
    padding-top: 14px;
  }
  .checkin,
  .score-card,
  .recent,
  .inner-panel {
    padding: 19px;
  }
  .panel {
    border-radius: 17px;
  }
  .check-row {
    min-height: 60px;
  }
  .check-row .quick,
  .icon-btn {
    width: 40px;
    height: 40px;
  }
  .chart-foot button,
  .ranges button,
  .seg button {
    min-height: 36px;
  }
  .text-btn {
    min-height: 40px;
  }
  .overview-foot {
    font-size: 0.75rem;
  }
  #toast {
    bottom: 76px;
  }
  .manage-row {
    gap: 8px;
  }
  .manage-row .badge {
    font-size: 0.69rem;
  }
  .review-stats {
    gap: 5px;
  }
  .review-stats div {
    padding: 9px;
  }
  .review-stats small {
    font-size: 0.71rem;
  }
  .review-stats strong {
    font-size: 1.4rem;
  }
  .inner-panel .panel-head {
    align-items: flex-start;
  }
  .day-row {
    gap: 8px;
    font-size: 0.86rem;
  }
  .day-row .badge {
    font-size: 0.68rem;
  }
  .timer-strip .text-btn {
    margin-left: auto;
  }
  .score-bottom {
    flex-wrap: wrap;
    gap: 4px;
  }
  .check-row .goal-link {
    min-height: 44px;
  }
}
@media (max-width: 360px) {
  main {
    padding-inline: 10px;
  }
  .heading .primary {
    gap: 3px;
    padding: 8px;
  }
  .chart-key,
  .on-dark {
    font-size: 0.7rem;
  }
  .manage-row .goal-icon {
    display: none;
  }
  #sheet-body {
    padding: 16px;
  }
  .form-grid {
    gap: 7px;
  }
  .weekday-picks {
    gap: 3px;
  }
  .review-stats strong {
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .index-top,
  .heading {
    animation: appear 0.3s ease-out both;
  }
  @keyframes appear {
    from {
      opacity: 0.6;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

.score-number {
  padding: 0;
  text-align: left;
}
.score-number:hover {
  color: var(--green);
}
.candle-guide {
  color: #cfdfca;
  font-size: 0.76rem;
  margin: 2px 0 6px;
}
.formula {
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.formula summary {
  color: var(--green);
  cursor: pointer;
  font-weight: 600;
}
.formula p {
  margin-top: 8px;
}
