:root {
  --ink: #2c211b;
  --muted: #796959;
  --paper: #fbf6ef;
  --line: #e9dfd2;
  --caramel: #bd652c;
  --zone: #ca9158;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --shadow: 0 2px 5px #5f371008, 0 16px 44px #7941140b;
  color-scheme: light;
}
* {
  box-sizing: border-box;
  margin: 0;
}
body {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.chart:focus-visible {
  outline: 3px solid #955220;
  outline-offset: 4px;
}
button {
  border: 0;
}
a {
  color: #91481b;
  text-underline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.background {
  position: absolute;
  inset: 0 0 auto;
  height: 850px;
  z-index: -1;
  background:
    linear-gradient(#fbf6ef22, #fbf6ef),
    url(assets/bg.jpg) center top/cover no-repeat;
  opacity: 0.72;
}
.wrap {
  width: min(100%, 920px);
  margin: auto;
  padding: 36px 24px 30px;
  display: grid;
  gap: 24px;
}
.orb {
  height: 300px;
  border-radius: 32px;
  background: #ddc5ac;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  color: white;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 30px;
}
.glow {
  position: absolute;
  filter: blur(48px);
  border-radius: 50%;
  z-index: -2;
}
.one {
  width: 70%;
  height: 170%;
  left: 15%;
  top: -32%;
  background: var(--zone);
}
.two {
  width: 48%;
  height: 180%;
  left: -25%;
  top: -50%;
  background: #b9d7e6;
}
.three {
  width: 45%;
  height: 150%;
  right: -20%;
  bottom: -80%;
  background: #fbc494;
}
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(#ffffff35 1px, transparent 1.5px) 0 0/6px 6px;
  z-index: -1;
  mask-image: linear-gradient(transparent, #000);
  pointer-events: none;
}
#orb-label {
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 8px #57361b80;
}
#digits {
  height: 88px;
  max-width: 100%;
  margin: 19px 0 14px;
  fill: white;
  filter: drop-shadow(0 2px 5px #75411d25);
}
.orb-unit {
  font: 11px var(--mono);
  letter-spacing: 0.13em;
  text-shadow: 0 1px 8px #57361b80;
}
.phase-summary {
  max-width: 400px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  color: #30251c;
}
.ruler {
  position: absolute;
  bottom: 18px;
  height: 20px;
  left: 26px;
  right: 26px;
  background: repeating-linear-gradient(
    90deg,
    #ffffff75 0 1px,
    transparent 1px 12px
  );
  mask-image: linear-gradient(90deg, transparent, #000 15% 85%, transparent);
}
.ruler::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 100%;
  width: 2px;
  background: white;
}
.live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid #ddc8ac;
  border-radius: 999px;
  background: linear-gradient(#fffaf1, #f1e4d2);
  color: #654329;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  min-height: 44px;
  box-shadow: inset 0 1px #fff, 0 2px 5px #62401d0d;
}
.live svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) {
  .live:hover { background: #ead8bf; border-color: #c4a47d; }
}
.live:active {
  background: #e7d2b5;
  box-shadow: inset 0 1px 3px #65432920;
}
.card {
  padding: 25px;
  border-radius: 28px;
  background: #ffffffa8;
  border: 1px solid #fff;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.2;
}
.eyebrow {
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.stats strong {
  font-weight: 600;
  color: var(--ink);
}
#bed-label {
  display: inline-block;
  margin-left: 4px;
}
.chart {
  width: 100%;
  display: block;
  margin-top: 12px;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overflow: visible;
}
.chart text {
  font: 10px var(--mono);
  fill: #77644f;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.chart-selection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-height: 40px; margin-top: 10px; }
#selected-time { font: 11px var(--mono); color: var(--muted); }
.chart .band-label { paint-order: stroke; stroke: #fff9ef; stroke-width: 3px; stroke-linejoin: round; }
.research-notes { padding: 0 16px; border-top: 1px solid var(--line); }
.research-notes > summary { min-height: 44px; font-size: 12px; }
.research-notes[open] > summary::after { content: "−"; }
.research-notes p { margin: 0 0 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.research-notes strong { color: var(--ink); font-weight: 500; }
.log .card-heading {
  margin: 0 0 15px;
}
.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  background: #35251b;
  color: #fffaf2;
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1;
  min-height: 44px;
  box-shadow: 0 4px 12px #40261820;
  white-space: nowrap;
}
.add-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.drinks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.drink {
  position: relative;
  min-width: 0;
  border-radius: 22px;
  background: #ffffffc4;
  border: 1px solid white;
  padding: 9px;
  box-shadow: var(--shadow);
}
.drink-image {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}
.drink-copy {
  padding: 12px 4px 7px;
}
.drink h3 {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.drink .brand {
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 5px;
}
.drink .dose {
  font: 12px var(--mono);
  margin-top: 8px;
  color: #704925;
}
.drink .drink-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.drink .remove {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffffdd;
  color: #645143;
  font-size: 13px;
}
.empty {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px;
  border: 1px dashed #d6c4ae;
  border-radius: 24px;
  background: #fffaf36b;
}
.empty-images {
  display: flex;
  flex-shrink: 0;
  padding-left: 8px;
}
.empty-images img {
  width: 86px;
  height: 100px;
  object-fit: cover;
  border: 4px solid #fffaf3;
  border-radius: 18px;
  transform: rotate(-9deg);
  box-shadow: 0 5px 12px #57301915;
}
.empty-images img + img {
  margin-left: -15px;
  transform: rotate(9deg);
}
.empty h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 310px;
}
.text-button {
  font-size: 12px;
  background: transparent;
  color: var(--muted);
  padding: 14px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.personal {
  border-radius: 20px;
  background: #ffffff85;
  border: 1px solid #fff;
  padding: 2px 20px;
}
summary {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  min-height: 60px;
  font-size: 13px;
  font-weight: 500;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  margin-left: auto;
  color: var(--muted);
}
.personal[open] > summary::after {
  content: "−";
}
.summary-note {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: auto;
}
.settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  padding: 8px 0 20px;
}
.bedtime-field {
  min-width: 0;
  border: 0;
  padding: 0;
}
.bedtime-field legend {
  padding: 0;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 500;
}
.time-format {
  margin-left: 5px;
  color: var(--muted);
  font: 10px var(--mono);
}
.bedtime-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 1px 2px #4b291006;
}
.bedtime-picker button {
  min-height: 46px;
  border-radius: 11px;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: var(--mono);
}
.bedtime-picker > span {
  color: var(--muted);
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
}
input,
select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  padding: 10px 12px;
  font-size: 14px;
  box-shadow: 0 1px 2px #4b291006;
}
.settings-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}
.settings .settings-note {
  grid-column: 1/-1;
}
.half-life-field {
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
}
.half-life-picker {
  position: relative;
  margin-top: 7px;
}
.half-life-picker > summary {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 1px 2px #4b291006;
}
.half-life-picker > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.4px solid var(--muted);
  border-bottom: 1.4px solid var(--muted);
  transform: rotate(45deg);
  margin: -3px 2px 0 auto;
}
.half-life-picker[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}
.half-life-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 3;
  width: 264px;
  max-width: calc(100vw - 64px);
  padding: 12px;
  border: 1px solid #e5d4be;
  border-radius: 18px;
  background: #fff9ef;
  box-shadow: 0 12px 40px #54331926;
}
.half-life-options legend {
  float: left;
  width: 100%;
  margin-bottom: 10px;
  color: var(--muted);
  font: 11px var(--mono);
}
#half-life-options {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
#half-life-options label {
  position: relative;
  cursor: pointer;
}
#half-life-options input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
#half-life-options span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid #eadfce;
  border-radius: 9px;
  background: #fffdf8;
  font: 13px var(--mono);
}
#half-life-options input:checked + span {
  background: #6b472e;
  border-color: #6b472e;
  color: #fffaf2;
}
#half-life-options input:focus-visible + span {
  outline: 2px solid #a66b38;
  outline-offset: 2px;
}
footer {
  max-width: 580px;
  justify-self: center;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 10px;
}
.warning {
  padding: 12px;
  background: #fff0da;
  color: #814819;
  border: 1px solid #e6bf8b;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}
dialog {
  margin: auto;
  width: min(560px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #fff4e4;
  border-radius: 28px;
  padding: 24px;
  background: #fbf6ee;
  box-shadow: 0 24px 100px #35241835;
}
dialog::backdrop {
  background: #3f2c2045;
  backdrop-filter: blur(7px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #efe6da;
  flex-shrink: 0;
}
.entry-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  background: #eee5d9;
  border-radius: 15px;
}
.entry-modes button {
  min-height: 44px;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.entry-modes button[aria-pressed="true"] {
  background: #63452f;
  color: #fffaf2;
  box-shadow: 0 2px 5px #432e201a;
}
#drink-form input {
  height: 48px;
  font-size: 16px;
}
.search-label {
  margin-bottom: 12px;
}
.search-label input {
  background: #fff;
}
.presets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  max-height: 252px;
  overflow: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}
.preset {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px;
  border: 1px solid #e5d8c8;
  border-radius: 14px;
  background: #fffaf4;
  min-width: 0;
  line-height: 1.4;
  font-size: 12px;
}
.preset img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.preset-copy { flex: 1; min-width: 0; }
.preset-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid #c0ac95;
  border-radius: 50%;
}
.preset[aria-pressed="true"] .preset-check {
  border-color: #8a5731;
  background: #8a5731;
  box-shadow: inset 0 0 0 3px #f3e3ce;
}
.preset .brand {
  display: block;
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 3px;
}
.preset small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.preset[aria-pressed="true"] {
  border-color: #ad6935;
  background: #f3e3ce;
  box-shadow: inset 0 0 0 1px #ad6935;
}
.selection {
  margin: 15px 0;
  padding: 12px;
  background: #f0e8da;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: #6e5842;
}
.selection strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 12px;
}
.fields label {
  min-width: 0;
  align-content: start;
}
.full {
  grid-column: 1/-1;
}
#dose-note {
  font-size: 11px;
}
#form-error {
  margin-top: 16px;
}
#drink-form .cta {
  margin-top: 24px;
}
.cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 15px;
  background: linear-gradient(#432e20, #2c2017);
  color: white;
  font-size: 14px;
  font-weight: 500;
  min-height: 50px;
  box-shadow: 0 5px 15px #3d281a20;
}
.picker-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
}
.picker-trigger {
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  font-size: 14px;
  text-align: left;
}
#date-trigger::after {
  content: "⌄";
  margin-left: 6px;
  color: var(--muted);
}
dialog.value-picker {
  width: min(400px, calc(100% - 24px));
  margin: auto;
  padding: 20px;
  border-radius: 24px;
  background: #fff9ef;
}
.value-picker h2 { font-size: 23px; }
.picker-hint { font-size: 11px; color: var(--muted); margin: -5px 0 18px; }
.time-columns { display: grid; grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr); gap: 8px; }
.wheel-column { min-width: 0; text-align: center; }
.wheel-column > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.wheel-frame { position: relative; border-radius: 18px; background: #f5ecde; }
.wheel-frame::before {
  content: "";
  position: absolute;
  inset: 88px 5px auto;
  height: 44px;
  background: #e9d3b5;
  border: 1px solid #cfad85;
  border-radius: 12px;
  pointer-events: none;
}
.time-wheel {
  position: relative;
  height: 220px;
  padding: 88px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border-radius: 18px;
  mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
}
.time-wheel::-webkit-scrollbar { display: none; }
.time-wheel [role="option"] {
  height: 44px;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  color: #8f7962;
  font: 22px var(--mono);
  cursor: pointer;
  user-select: none;
}
.time-wheel [aria-selected="true"] { color: #4b2f1c; font-weight: 600; }
.wheel-frame:has(.time-wheel:focus-visible) { outline: 2px solid #a66b38; outline-offset: 3px; }
.wheel-colon { align-self: center; margin-top: 26px; text-align: center; font: 26px var(--mono); color: #947456; }
.calendar-days button {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid #eadfce;
  border-radius: 10px;
  background: #fffdf8;
  font: 13px var(--mono);
}
.calendar-days button[aria-pressed="true"] {
  background: #6b472e;
  border-color: #6b472e;
  color: #fffaf2;
}
.picker-save { margin-top: 22px; justify-content: center; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: 14px; }
.calendar-heading .icon-button { font-size: 24px; }
.weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekdays { text-align: center; font: 11px var(--mono); color: var(--muted); margin-bottom: 10px; }
.calendar-days button:disabled, .calendar-heading button:disabled { opacity: .3; cursor: default; }
.calendar-days button[aria-current="date"] { box-shadow: inset 0 -3px #ba8655; }
.picker-today { display: block; margin: 16px auto 0; min-height: 44px; padding: 0 24px; background: #efe4d5; border-radius: 12px; font-size: 13px; }
@media (min-width: 601px) {
  .drinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .drink {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .drink-image {
    width: 42%;
    aspect-ratio: 1;
    flex-shrink: 0;
  }
  .drink-copy {
    min-width: 0;
    padding-right: 20px;
  }
  .drink .remove {
    width: 30px;
    height: 30px;
  }
  .drink h3 {
    font-size: 16px;
  }
}
@media (min-width: 760px) {
  .orb {
    height: 300px;
  }
  .wrap {
    gap: 25px;
  }
  .timeline .chart {
    max-height: 270px;
  }
  .stats {
    font-size: 13px;
  }
  .log {
    margin-top: 3px;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding: 16px 16px 24px;
    gap: 18px;
  }
  .orb {
    height: 276px;
    border-radius: 26px;
    padding-top: 22px;
  }
  #digits {
    height: 76px;
    margin: 17px 0 13px;
  }
  .orb-unit {
    font-size: 10px;
  }
  .live {
    font-size: 11px;
    gap: 5px;
    padding: 10px;
  }
  .card {
    padding: 18px 14px 14px;
    border-radius: 24px;
  }
  h2 {
    font-size: 21px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .stats {
    font-size: 10px;
    margin-top: 12px;
    gap: 8px;
    align-items: flex-start;
  }
  .stats > span:last-child {
    text-align: right;
  }
  #bed-label {
    display: block;
    margin: 3px 0 0;
  }
  .chart {
    margin-top: 6px;
  }
  .chart-footer {
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
  }
  .drinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .drink h3 {
    font-size: 14px;
  }
  .add-button {
    padding: 10px 13px;
    font-size: 12px;
  }
  .log .card-heading {
    margin-bottom: 12px;
  }
  .empty {
    padding: 17px 12px;
    gap: 15px;
  }
  .empty-images img {
    width: 60px;
    height: 82px;
    border-width: 3px;
    border-radius: 12px;
  }
  .empty-images img + img {
    margin-left: -18px;
  }
  .empty h3 {
    font-size: 16px;
  }
  .empty p {
    font-size: 11px;
  }
  .personal {
    padding: 0 16px;
  }
  summary {
    min-height: 56px;
  }
  .summary-note {
    font-size: 10px;
  }
  .settings {
    gap: 14px;
  }
  .settings-note {
    font-size: 10px;
  }
  dialog {
    margin: auto auto 0;
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    border-radius: 26px 26px 0 0;
    padding: 20px 18px max(22px, env(safe-area-inset-bottom));
  }
  .presets {
    max-height: 228px;
  }
  footer {
    font-size: 9px;
  }
}
@media (max-width: 350px) {
  .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .eyebrow {
    font-size: 8px;
  }
  h2 {
    font-size: 19px;
  }
  .empty {
    gap: 9px;
  }
  .empty-images img {
    width: 50px;
  }
  .summary-note {
    display: none;
  }
  .settings {
    grid-template-columns: 1fr;
  }
  .stats {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.about { padding: 0 16px; }
.about h2 { font-size: 17px; margin-bottom: 10px; }
.about h3 { font-size: 13px; font-weight: 500; margin: 14px 0 4px; }
.about p,
.about li { font-size: 12px; line-height: 1.7; color: var(--muted); }
.about ol { padding-left: 18px; margin-bottom: 10px; }
.page { max-width: 640px; gap: 14px; padding-top: 48px; }
.page h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.045em; }
.page h2 { font-size: 18px; margin-top: 10px; }
.page p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.page .page-note { font-size: 12px; }
.consent {
  max-width: 580px;
  justify-self: center;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff85;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.consent p { font-size: 12px; }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.consent-actions button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 1px solid #6b472e;
  border-radius: 999px;
  background: #fffaf2;
  color: var(--ink);
  font-size: 13px;
}
.consent-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
}
.page .consent { justify-self: stretch; }
