/* src/web-client/components/EntrySheet.css */
.EntrySheet {
  position: fixed;
  z-index: 10;
  display: grid;
  align-items:  end;
  inset: 0;
}

.EntrySheet > .scrim {
  position: absolute;
  animation: entry-sheet-fade .2s ease;
  background: #05070ccc;
  border: 0;
  padding: 0;
  inset: 0;
}

.EntrySheet > .sheet {
  position: relative;
  width: min(30rem, 100%);
  height: min(42rem, 100dvh - .75rem);
  margin: 0 auto;
  transition: transform .2s ease-out;
}

.EntrySheet > .sheet > form {
  display: flex;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 -1px 0 var(--panel-hi);
  animation: entry-sheet-rise .26s cubic-bezier(.2, .9, .3, 1);
  border-radius: 1.4rem 1.4rem 0 0;
  flex-direction: column;
  height: 100%;
}

@keyframes entry-sheet-rise {
  from {
    transform: translateY(100%);
  }
}

@keyframes entry-sheet-fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .EntrySheet > .scrim, .EntrySheet > .sheet, .EntrySheet > .sheet > form {
    animation: none;
    transition: none;
  }
}

.EntrySheet header {
  touch-action: none;
  user-select: none;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  grid-template-rows: .5rem auto;
  border-bottom: 1px solid var(--panel-hi);
  align-items:  center;
  padding: .5rem 1rem .65rem;
}

.EntrySheet header > .grip {
  grid-column: 1 / -1;
  background: var(--panel-hi);
  border-radius: 1rem;
  justify-self: center;
  width: 2.5rem;
  height: .25rem;
}

.EntrySheet header > h2 {
  grid-column: 2;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-size: .75rem;
}

.EntrySheet header > .close {
  grid-column: 3;
  grid-row: 2;
  border: 1px solid var(--panel-hi);
  background: var(--bg);
  color: var(--text);
  border-radius: 50%;
  justify-self: end;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
}

.EntrySheet .content {
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  -webkit-overflow-scrolling: touch;
  align-content:  start;
  gap: .9rem;
  min-height: 0;
  padding: 1rem;
}

.EntrySheet label {
  display: grid;
  gap: .35rem;
}

.EntrySheet label > span {
  color: var(--muted);
  font-size: .8rem;
}

.EntrySheet input {
  border: 1px solid var(--panel-hi);
  background: var(--bg);
  border-radius: .7rem;
  width: 100%;
  min-height: 3rem;
  padding: 0 .75rem;
}

.EntrySheet input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.EntrySheet .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.EntrySheet .pair > label > .field {
  position: relative;
}

.EntrySheet .pair > label > .field > em {
  position: absolute;
  color: var(--muted);
  pointer-events: none;
  font-style: normal;
  top: 50%;
  right: .75rem;
  translate: 0 -50%;
}

.EntrySheet .pair > label > .field > input {
  padding-right: 2.5rem;
}

.EntrySheet .presets {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.EntrySheet .presets > button {
  border: 1px solid var(--panel-hi);
  color: var(--muted);
  background: none;
  border-radius: 1.2rem;
  min-height: 2.25rem;
  padding: 0 .75rem;
}

.EntrySheet .when {
  display: grid;
  background: var(--bg);
  border-radius: .9rem;
  gap: .5rem;
  padding: .75rem;
}

.EntrySheet .when > output {
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
}

.EntrySheet .when > .nudges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
}

.EntrySheet .when > .nudges > button {
  border: 1px solid var(--panel-hi);
  background: var(--panel);
  font-variant-numeric: tabular-nums;
  border-radius: .7rem;
  min-height: 2.75rem;
}

.EntrySheet .duration {
  display: flex;
  border: 0;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
}

.EntrySheet .duration > legend {
  color: var(--muted);
  padding: 0 0 .35rem;
  font-size: .8rem;
}

.EntrySheet .duration > button {
  border: 1px solid var(--panel-hi);
  color: var(--muted);
  background: none;
  border-radius: 1.2rem;
  min-height: 2.5rem;
  padding: 0 .8rem;
}

.EntrySheet .duration > button.on {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.EntrySheet .preview {
  color: var(--muted);
  margin: 0;
}

.EntrySheet .preview > strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
}

.EntrySheet .actions {
  display: grid;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--panel-hi);
  background: var(--panel);
  flex: none;
  gap: .5rem;
  box-shadow: 0 -.75rem 1rem #1a1d27cc;
}

.EntrySheet .actions > .save {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: .8rem;
  min-height: 3.25rem;
  font-weight: 600;
}

.EntrySheet .actions > .delete {
  color: var(--danger);
  background: none;
  border: 0;
  min-height: 2.75rem;
}

.EntrySheet .error {
  color: var(--danger);
  margin: 0;
}

/* src/web-client/components/DataIO.css */
.DataIO {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem;
}

.DataIO > header {
  display: flex;
  align-items:  center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.DataIO > header a {
  text-decoration: none;
  font-size: 1.4rem;
}

.DataIO > header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.DataIO h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}

.DataIO section + section {
  margin-top: 2rem;
}

.DataIO textarea {
  box-sizing: border-box;
  font: inherit;
  border: 1px solid var(--border-color, #ccc);
  resize: vertical;
  border-radius: .5rem;
  width: 100%;
  min-height: 4rem;
  padding: .5rem;
  font-size: .85rem;
}

.DataIO button {
  font: inherit;
  border: 1px solid var(--border-color, #ccc);
  background: var(--bg, #fff);
  cursor: pointer;
  border-radius: .5rem;
  margin-top: .5rem;
  padding: .5rem 1rem;
}

.DataIO button:disabled {
  opacity: .5;
  cursor: default;
}

.DataIO .export textarea[readonly] {
  font-family: monospace;
}

.DataIO .overwrite {
  display: flex;
  cursor: pointer;
  align-items:  center;
  gap: .4rem;
  margin-top: .5rem;
  font-size: .9rem;
}

.DataIO .error {
  color: var(--danger, #d32f2f);
  margin: .25rem 0;
  font-size: .85rem;
}

.DataIO .success {
  color: var(--success, #2e7d32);
  margin: .25rem 0;
  font-size: .85rem;
}

/* src/web-client/components/CalibrationSheet.css */
.CalibrationSheet {
  position: fixed;
  z-index: 10;
  display: grid;
  align-items:  end;
  inset: 0;
}

.CalibrationSheet > .scrim {
  position: absolute;
  background: #05070ccc;
  border: 0;
  padding: 0;
  inset: 0;
}

.CalibrationSheet > form {
  position: relative;
  display: flex;
  background: var(--panel);
  box-shadow: 0 -1px 0 var(--panel-hi);
  border-radius: 1.4rem 1.4rem 0 0;
  flex-direction: column;
  width: min(30rem, 100%);
  max-height: min(34rem, 100dvh - .75rem);
  margin: 0 auto;
}

.CalibrationSheet header {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  grid-template-rows: .5rem auto;
  border-bottom: 1px solid var(--panel-hi);
  align-items:  center;
  padding: .5rem 1rem .65rem;
}

.CalibrationSheet header > .grip {
  grid-column: 1 / -1;
  background: var(--panel-hi);
  border-radius: 1rem;
  justify-self: center;
  width: 2.5rem;
  height: .25rem;
}

.CalibrationSheet header > h2 {
  grid-column: 2;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-size: .75rem;
}

.CalibrationSheet header > .close {
  grid-column: 3;
  grid-row: 2;
  border: 1px solid var(--panel-hi);
  background: var(--bg);
  border-radius: 50%;
  justify-self: end;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
}

.CalibrationSheet .content {
  display: grid;
  overflow-y: auto;
  gap: 1rem;
  padding: 1rem;
}

.CalibrationSheet .why, .CalibrationSheet .preview {
  color: var(--muted);
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.CalibrationSheet label {
  display: grid;
  gap: .35rem;
}

.CalibrationSheet label > span {
  color: var(--muted);
  font-size: .8rem;
}

.CalibrationSheet label > input {
  border: 1px solid var(--panel-hi);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  border-radius: .7rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0 .75rem;
  font-size: 1.1rem;
}

.CalibrationSheet label > input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.CalibrationSheet label > .field > input {
  border: 1px solid var(--panel-hi);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  border-radius: .7rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0 .75rem;
  font-size: 1.1rem;
}

.CalibrationSheet label > .field > input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.CalibrationSheet .field {
  position: relative;
}

.CalibrationSheet .field > input {
  padding-right: 3rem;
}

.CalibrationSheet .field > em {
  position: absolute;
  color: var(--muted);
  pointer-events: none;
  font-style: normal;
  top: 50%;
  right: .75rem;
  translate: 0 -50%;
}

.CalibrationSheet .actions {
  display: grid;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--panel-hi);
  background: var(--panel);
  gap: .5rem;
}

.CalibrationSheet .actions > .save {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: .8rem;
  min-height: 3.25rem;
  font-weight: 600;
}

.CalibrationSheet .actions > .delete {
  color: var(--danger);
  background: none;
  border: 0;
  min-height: 2.75rem;
}

.CalibrationSheet .actions > .error {
  color: var(--danger);
  margin: 0;
}

/* src/web-client/components/Profile.css */
.Profile {
  display: grid;
  gap: 1rem;
}

.Profile > .why {
  color: var(--muted);
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.Profile > form {
  display: grid;
  gap: 1.25rem;
}

.Profile > header {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.Profile > header > a {
  display: grid;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  border-radius: .7rem;
  place-items:  center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
}

.Profile > header > h2 {
  margin: 0;
  font-size: 1.1rem;
}

.Profile label {
  display: grid;
  gap: .35rem;
}

.Profile label > span {
  color: var(--muted);
  font-size: .8rem;
}

.Profile .field {
  position: relative;
}

.Profile .field > input {
  border: 1px solid var(--panel-hi);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  border-radius: .7rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0 2.75rem 0 .75rem;
  font-size: 1.1rem;
}

.Profile .field > input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.Profile .field > em {
  position: absolute;
  color: var(--muted);
  pointer-events: none;
  font-style: normal;
  top: 50%;
  right: .75rem;
  translate: 0 -50%;
}

.Profile fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.Profile fieldset > legend {
  color: var(--muted);
  padding: 0 0 .35rem;
  font-size: .8rem;
}

.Profile fieldset > .choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
}

.Profile fieldset > .choices > button {
  border: 1px solid var(--panel-hi);
  background: var(--panel);
  color: var(--muted);
  border-radius: .7rem;
  min-height: 3rem;
}

.Profile fieldset > .choices > button.chosen {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.Profile fieldset > .note {
  color: var(--muted);
  margin: .4rem 0 0;
  font-size: .78rem;
}

.Profile .optional {
  display: grid;
  background: var(--panel);
  border-radius: .9rem;
  gap: .6rem;
  padding: .9rem;
}

.Profile .optional > h3 {
  display: flex;
  color: var(--muted);
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
}

.Profile .optional > h3 > .precision {
  text-align: right;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 400;
}

.Profile .optional > .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.Profile .error {
  color: var(--danger);
  margin: 0;
}

.Profile .save {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: .8rem;
  min-height: 3.25rem;
  font-size: 1rem;
  font-weight: 600;
}

/* src/web-client/components/Settings.css */
.Settings {
  display: grid;
  gap: 1.25rem;
}

.Settings > form {
  display: grid;
  gap: 1.25rem;
}

.Settings > header {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.Settings > header > a {
  display: grid;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  border-radius: .7rem;
  place-items:  center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
}

.Settings > header > h2 {
  margin: 0;
  font-size: 1.1rem;
}

.Settings .mealness {
  display: grid;
  background: var(--panel);
  border-radius: .9rem;
  gap: 1rem;
  padding: 1rem;
}

.Settings .mealness > .heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.Settings .mealness > .heading > div > h3 {
  margin: 0;
  font-size: 1rem;
}

.Settings .mealness > .heading > div > p {
  color: var(--muted);
  margin: .25rem 0 0;
  font-size: .85rem;
  line-height: 1.45;
}

.Settings .mealness > .heading > output {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 2rem;
}

.Settings .mealness > input {
  accent-color: var(--accent);
  width: 100%;
}

.Settings .mealness > .scale {
  display: flex;
  color: var(--muted);
  justify-content: space-between;
  gap: 1rem;
  font-size: .75rem;
}

.Settings .note {
  color: var(--muted);
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
}

.Settings .error {
  color: var(--danger);
  margin: 0;
}

.Settings .save {
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: .8rem;
  min-height: 3.25rem;
  font-size: 1rem;
  font-weight: 600;
}

/* src/web-client/components/AddDrink.css */
.AddDrink > .presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: .5rem;
}

.AddDrink > .presets > button {
  display: flex;
  background: var(--panel-hi);
  text-align: left;
  cursor: pointer;
  border: 0;
  border-radius: .8rem;
  flex-direction: column;
  gap: .2rem;
  min-height: 3.4rem;
  padding: .6rem;
}

.AddDrink > .presets > button > .name {
  font-weight: 600;
}

.AddDrink > .presets > button > .detail {
  color: var(--muted);
  font-size: .75rem;
}

.AddDrink > .presets > button:active {
  background: var(--accent);
  color: var(--on-accent);
}

.AddDrink > .presets > button:active > .detail {
  color: inherit;
}

.AddDrink > .presets > .toggle {
  display: flex;
  background: var(--panel-hi);
  text-align: left;
  cursor: pointer;
  border: 0;
  border-radius: .8rem;
  flex-direction: column;
  gap: .2rem;
  min-height: 3.4rem;
  padding: .6rem;
}

.AddDrink > .presets > .toggle > .name {
  font-weight: 600;
}

.AddDrink > .presets > .toggle > .detail {
  color: var(--muted);
  font-size: .75rem;
}

.AddDrink > .presets > .toggle:active {
  background: var(--accent);
  color: var(--on-accent);
}

.AddDrink > .presets > .toggle:active > .detail {
  color: inherit;
}

.AddDrink > .presets > .calibration {
  display: flex;
  background: var(--panel-hi);
  text-align: left;
  cursor: pointer;
  border: 0;
  border-radius: .8rem;
  flex-direction: column;
  gap: .2rem;
  min-height: 3.4rem;
  padding: .6rem;
}

.AddDrink > .presets > .calibration > .name {
  font-weight: 600;
}

.AddDrink > .presets > .calibration > .detail {
  color: var(--muted);
  font-size: .75rem;
}

.AddDrink > .presets > .calibration:active {
  background: var(--accent);
  color: var(--on-accent);
}

.AddDrink > .presets > .calibration:active > .detail {
  color: inherit;
}

.AddDrink > .presets > .toggle {
  color: var(--muted);
  text-decoration: none;
  justify-content: center;
  align-items:  center;
}

.AddDrink > .presets > .calibration {
  border: 1px dashed var(--panel-hi);
  color: var(--muted);
  text-decoration: none;
  background: none;
}

/* src/web-client/components/Bac.css */
.Bac {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: .8rem;
  align-items:  center;
  gap: .75rem;
  width: 100%;
  margin-bottom: .75rem;
  padding: 1rem;
}

.Bac:active {
  background: var(--panel-hi);
}

.Bac:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.Bac > .current {
  display: flex;
  align-items: baseline;
  gap: .3rem;
}

.Bac > .current > .label {
  color: var(--muted);
  margin-right: .4rem;
  font-size: .8rem;
}

.Bac > .current > strong {
  font-variant-numeric: tabular-nums;
  font-size: 2.4rem;
  line-height: 1;
}

.Bac > .current > .unit {
  color: var(--muted);
  font-size: 1rem;
}

.Bac > .peak {
  display: grid;
  border-left: 1px solid var(--panel-hi);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  align-self: stretch;
  gap: .08rem;
  padding-left: .75rem;
  font-size: .72rem;
}

.Bac > .peak > strong {
  color: var(--text);
  font-size: 1rem;
}

.Bac > .graph-icon {
  display: grid;
  background: var(--panel-hi);
  color: var(--accent);
  border-radius: 50%;
  place-items:  center;
  width: 2rem;
  height: 2rem;
}

.Bac > .graph-icon > svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 24rem) {
  .Bac > .peak {
    grid-column: 1 / -1;
    border-top: 1px solid var(--panel-hi);
    border-left: 0;
    padding: .5rem 0 0;
  }
}

/* src/web-client/components/BacGraph.css */
.BacGraph {
  display: grid;
  gap: 1rem;
  margin-top: .25rem;
}

.BacGraph > header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.BacGraph > header > button {
  display: inline-flex;
  border: 1px solid var(--panel-hi);
  background: var(--panel);
  color: var(--text);
  border-radius: .7rem;
  align-items:  center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: 0 .75rem;
  font-size: .82rem;
}

.BacGraph > header > button > svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 1rem;
  height: 1rem;
}

.BacGraph > header > h2 {
  color: var(--muted);
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
}

.BacGraph > .peak {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.BacGraph > .peak > strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.BacGraph > .window {
  color: var(--muted);
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
}

.BacGraph > .empty {
  color: var(--muted);
  margin: 0;
  font-size: .82rem;
  line-height: 1.45;
}

.BacGraph > .chart {
  display: block;
  overflow: visible;
  width: 100%;
}

.BacGraph > .chart > .y-tick > line {
  stroke: var(--panel-hi);
  stroke-width: 1;
}

.BacGraph > .chart > .y-tick > text {
  fill: var(--muted);
  text-anchor: end;
  dominant-baseline: central;
  font-size: 10px;
}

.BacGraph > .chart > .axis {
  fill: var(--muted);
  font-size: 10px;
}

.BacGraph > .chart > .x-tick {
  fill: var(--muted);
  font-size: 10px;
}

.BacGraph > .chart > .x-tick {
  text-anchor: middle;
}

.BacGraph > .chart > .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.BacGraph > .chart > .peak-dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 2;
}

/* src/web-client/components/History.css */
.History {
  margin-top: 1.5rem;
}

.History > .empty {
  color: var(--muted);
  text-align: center;
}

.History > .day {
  margin-bottom: 1rem;
}

.History > .day > header {
  display: flex;
  color: var(--muted);
  justify-content: space-between;
  align-items: baseline;
  padding: 0 .2rem .35rem;
  font-size: .8rem;
}

.History > .day > header > h2 {
  font-size: inherit;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}

.History > .day > ul {
  list-style: none;
  background: var(--panel);
  overflow: hidden;
  border-radius: .8rem;
  margin: 0;
  padding: 0;
}

.History > .day > ul > li + li {
  border-top: 1px solid var(--bg);
}

.History > .day > ul > li > a {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  color: inherit;
  text-decoration: none;
  align-items:  center;
  gap: .5rem;
  padding: .7rem .75rem;
}

.History > .day > ul > li > a:active {
  background: var(--panel-hi);
}

.History > .day > ul > li > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.History > .day > ul > li > a > .time {
  color: var(--muted);
  font-size: .78rem;
}

.History > .day > ul > li > a > .detail {
  color: var(--muted);
  font-size: .78rem;
}

.History > .day > ul > li > a > .name {
  grid-area: 1 / 2;
}

.History > .day > ul > li > a > .detail {
  grid-area: 2 / 2;
}

.History > .day > ul > li > a > .units {
  grid-row: 1 / span 2;
  font-variant-numeric: tabular-nums;
}

/* src/web-client/components/Summary.css */
.Summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 1rem;
}

.Summary > .stat {
  display: flex;
  background: var(--panel);
  text-align: center;
  border-radius: .8rem;
  flex-direction: column;
  align-items:  center;
  gap: .15rem;
  padding: .9rem .4rem;
}

.Summary > .stat > strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
}

.Summary > .stat > span {
  color: var(--muted);
  font-size: .75rem;
}

.Summary > .stat.over > strong {
  color: var(--danger);
}

/* src/web-client/styles.css */
:root {
  --bg: #12141a;
  --panel: #1c1f28;
  --panel-hi: #262a36;
  --text: #e8eaf0;
  --muted: #9aa1b4;
  --accent: #f0a04b;
  --on-accent: #1a1206;
  --danger: #e5624c;
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  margin: 0;
  font: 16px / 1.4 system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

button, input {
  font: inherit;
  color: inherit;
}

.App {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.App > .bar {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 1rem;
}

.App > .bar > h1 {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-size: 1.25rem;
}

.App > .bar > nav {
  display: flex;
  gap: .4rem;
}

.App > .bar > nav > a {
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
  border-radius: .6rem;
  padding: .5rem .75rem;
  font-size: .8rem;
}

.App > .loading {
  color: var(--muted);
  text-align: center;
}
