:root {
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #303e36;
  background: #f5f3ed;
  font-synthesis: none;
  --green: #365746;
  --muted: #798077;
  --line: #e1e4da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9cae82;
  outline-offset: 4px;
}
input:focus,
select:focus {
  outline: 2px solid #9cae82;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1080px;
  padding: 0 40px;
  margin: auto;
}
header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 31px;
  letter-spacing: -1.5px;
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}
.brand-icon {
  display: inline-block;
  vertical-align: middle;
  font-size: 35px;
  margin-right: 9px;
  font-weight: 400;
}
.brand-dot {
  color: #b78b55;
}
.parent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.parent-label input {
  border: 1px solid #dfe3d7;
  background: #e9ecdf;
  border-radius: 30px;
  width: 108px;
  padding: 10px 13px;
  color: #45604a;
  font-size: 12px;
}
.intro {
  padding: 48px 0 33px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  color: #7c836f;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 47px;
  letter-spacing: -1.5px;
  line-height: 1.09;
  margin: 15px 0;
}
p {
  line-height: 1.6;
}
.intro p,
.muted {
  font-size: 13px;
  color: var(--muted);
}
.connection {
  font-size: 11px;
  color: #6e8069;
  white-space: nowrap;
  padding-bottom: 4px;
}
.connection:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 7px;
}
.connection.offline {
  color: #b06c48;
}
.summaries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.summary {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fafaf5;
  min-height: 154px;
}
.feed-summary {
  background: #e8eddf;
  border-color: #dce3d1;
}
.card-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #58634f;
}
.symbol {
  font-size: 24px;
  line-height: 1;
}
.poop {
  color: #aa885e;
}
.wee {
  color: #769591;
}
.summary h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 18px 0 5px;
}
.summary p {
  font-size: 11px;
  color: #78806f;
}
.logging-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  margin: 28px 0 46px;
}
.feed-panel,
.nappy-panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h2 {
  font-size: 21px;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.section-heading h2,
.nappy-panel h2 {
  margin-top: 10px;
}
.small-icon {
  color: #8e9a77;
  font-size: 28px;
}
.muted {
  margin-top: 12px;
}
.side-picker {
  display: flex;
  background: #f1f2eb;
  border-radius: 10px;
  padding: 4px;
  gap: 5px;
  margin: 22px 0 15px;
}
.side {
  width: 50%;
  border: 0;
  padding: 12px;
  border-radius: 7px;
  color: #7a8272;
  background: transparent;
  font-size: 13px;
}
.side.selected {
  background: white;
  color: #3c5746;
  box-shadow: 0 1px 5px #213c1814;
}
.primary {
  border: 0;
  border-radius: 10px;
  padding: 15px 22px;
  background: var(--green);
  color: white;
  font-size: 13px;
  font-weight: 550;
}
.primary:hover {
  background: #294735;
}
.primary span {
  font-size: 11px;
  margin-right: 8px;
}
.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 17px 0 0;
  font-size: 11px;
  color: #79836f;
}
.text-button span {
  margin-left: 6px;
}
.nappy-actions {
  display: flex;
  gap: 12px;
  margin-top: 23px;
}
.nappy-actions button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 14px;
  border: 1px solid #ebe5d7;
  border-radius: 12px;
  background: #f9f5eb;
  flex: 1;
  font-size: 13px;
}
.nappy-actions button:nth-child(2) {
  background: #edf3ed;
  border-color: #e0e9df;
}
.nappy-symbol {
  font-size: 29px;
  line-height: 1;
}
.nappy-actions strong {
  font-weight: 500;
}
.add {
  margin-left: auto;
  color: #8f9685;
  font-size: 20px;
}
.timer {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 49px;
  letter-spacing: 2px;
  margin: 18px 0 0;
}
.timer-hint {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  margin-bottom: 20px;
}
.history-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 15px;
}
.history-heading h2 {
  margin-top: 10px;
  font-size: 25px;
}
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fafbf5;
  color: #65705d;
  font-size: 12px;
}
.day-label {
  font-size: 10px;
  font-weight: 650;
  color: #89907e;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 16px 0 9px;
}
.entry {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  color: inherit;
}
.entry:hover {
  background: #ecefe4;
}
.entry-icon {
  display: grid;
  place-items: center;
  background: #e5ebda;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  flex-shrink: 0;
}
.entry-icon.poop {
  background: #efe7d8;
}
.entry-icon.wee {
  background: #e3ece6;
}
.entry-content {
  flex: 1;
  min-width: 0;
}
.entry-title {
  font-size: 13px;
  font-weight: 550;
}
.entry-sub {
  font-size: 11px;
  color: #8b9183;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.entry-time {
  font-size: 12px;
  color: #68735e;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.edit-arrow {
  color: #9ca58f;
  font-size: 15px;
}
.empty {
  padding: 35px;
  text-align: center;
  border: 1px dashed #d4dac8;
  border-radius: 13px;
  color: #89917d;
  font-size: 13px;
}
.history-note {
  font-size: 10px;
  color: #909783;
  margin: 18px 0;
}
footer {
  border-top: 1px solid var(--line);
  margin: 40px 0 0;
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #929985;
}
.brand-mini {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -1px;
}
dialog {
  width: 440px;
  max-width: calc(100% - 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: #fffefa;
  color: #303e36;
  box-shadow: 0 20px 100px #213a2433;
}
dialog::backdrop {
  background: #22352866;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.close {
  border: 0;
  background: none;
  font-size: 27px;
  color: #7b846f;
  padding: 0 4px;
}
form label {
  display: block;
  font-size: 12px;
  margin-bottom: 17px;
  color: #65705d;
}
form input,
form select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe3d7;
  border-radius: 8px;
  margin-top: 8px;
  background: white;
  color: #303e36;
  min-width: 0;
}
.duration-fields {
  display: flex;
  gap: 15px;
}
.duration-fields label {
  flex: 1;
  min-width: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}
.danger {
  border: 0;
  background: none;
  color: #a45b4b;
  font-size: 12px;
  margin-right: auto;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #304c3e;
  color: white;
  padding: 15px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 30px #24342233;
  font-size: 13px;
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 5;
}
.login-panel {
  max-width: 400px;
  margin: 65px auto;
}
.login-panel p {
  color: #7b846f;
  font-size: 13px;
  margin-bottom: 25px;
}
.login-panel form {
  margin-top: 25px;
}
#form-error,
#login-error {
  color: #a74e3d;
  font-size: 12px;
  margin-bottom: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 680px) {
  .shell {
    padding: 0 20px;
  }
  header {
    height: 82px;
  }
  .brand {
    font-size: 27px;
  }
  .brand-icon {
    font-size: 29px;
  }
  .parent-label {
    font-size: 10px;
    gap: 6px;
  }
  .parent-label input {
    width: 90px;
    padding: 9px;
  }
  .intro {
    padding-top: 32px;
    display: block;
  }
  h1 {
    font-size: 40px;
  }
  .connection {
    display: inline-block;
    margin-top: 17px;
  }
  .summaries {
    gap: 8px;
  }
  .summary {
    padding: 15px 10px;
    min-height: 139px;
    border-radius: 12px;
  }
  .card-label {
    font-size: 10px;
    gap: 5px;
  }
  .symbol {
    font-size: 19px;
  }
  .summary h2 {
    font-size: 22px;
    margin-top: 18px;
  }
  .summary p {
    font-size: 10px;
  }
  .logging-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0 35px;
  }
  .feed-panel,
  .nappy-panel {
    padding: 23px;
  }
  .history-heading h2 {
    font-size: 22px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .entry {
    gap: 10px;
  }
  .entry-time {
    font-size: 11px;
  }
  footer span:last-child {
    max-width: 190px;
    text-align: right;
  }
  .nappy-actions button {
    padding: 18px;
  }
  .history-note {
    line-height: 1.7;
  }
}

/* The action tiles double as the at-a-glance dashboard. */
.shell {
  max-width: 1000px;
}
.intro {
  padding: 34px 0 28px;
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
}
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feeding-tile,
.last-feed-tile,
.nappy-tile {
  border: 0;
  border-radius: 24px;
  padding: 26px;
  text-align: left;
  color: #303e36;
}
.feeding-tile {
  grid-column: span 2;
  grid-row: span 2;
  background: #e2e9d8;
  display: flex;
  flex-direction: column;
}
.tile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.tile-glyph {
  font-size: 30px;
  color: #718360;
}
.feeding-tile h2 {
  font-size: 27px;
  margin: 22px 0;
}
.feed-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feed-buttons button {
  border: 1px solid #fff8;
  background: #f7f9ef;
  border-radius: 18px;
  padding: 23px 12px;
  color: #365746;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.feed-buttons button:hover {
  background: #fff;
  transform: translateY(-2px);
}
.feed-buttons strong {
  font-size: 17px;
  font-weight: 600;
}
.feed-buttons button > span:last-child {
  font-size: 11px;
  color: #75836a;
}
.boob-icon {
  font-size: 40px;
  line-height: 1;
}
.feeding-tile .timer-hint {
  margin: 22px 0 0;
  text-align: left;
  color: #657456;
  font-size: 11px;
}
.feeding-tile .text-button {
  text-align: left;
  margin-top: auto;
  padding-top: 22px;
  color: #4e6343;
}
.last-feed-tile {
  grid-column: span 2;
  background: #365746;
  color: #f6f8ee;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.last-feed-tile .eyebrow {
  color: #bccdb3;
}
.last-feed-tile h2 {
  font:
    400 36px Georgia,
    serif;
  margin: 20px 0 8px;
}
.last-feed-tile p {
  font-size: 12px;
  color: #d5dfce;
  position: relative;
  z-index: 1;
}
.tile-decoration {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 150px;
  line-height: 1;
  color: #ffffff0c;
  pointer-events: none;
}
.nappy-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 224px;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.nappy-tile:hover {
  filter: brightness(0.97);
  transform: translateY(-2px);
}
.poop-tile {
  background: #eee2cd;
}
.pee-tile {
  background: #dfeae7;
}
.tile-plus {
  font-size: 24px;
  font-weight: 300;
}
.activity-name {
  font:
    400 30px Georgia,
    serif;
  margin: 8px 0 26px;
}
.last-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #687261;
  margin-bottom: 7px;
}
.nappy-tile strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.nappy-tile > span:last-child {
  font-size: 10px;
  color: #687261;
  line-height: 1.6;
  margin-top: 6px;
}
.stop-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 168px;
  border: 0;
  border-radius: 18px;
  background: #365746;
  color: #fff;
}
.stop-feed:hover {
  background: #294735;
}
#elapsed {
  font-size: 46px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}
.stop-feed strong {
  font-size: 15px;
  font-weight: 500;
}
#timer-parent {
  overflow-wrap: anywhere;
  font-size: 11px;
}
.earlier-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 34px;
}
.uncertain-badge {
  display: inline-block;
  font-size: 10px;
  line-height: 1.5;
  background: #f5e7c6;
  color: #79551b;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 8px;
}
.uncertain-note {
  padding: 12px;
  background: #f5e7c6;
  color: #79551b;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 18px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}
.checkbox-label input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #365746;
}
@media (max-width: 680px) {
  .shell {
    padding: 0 16px;
  }
  .intro {
    padding: 24px 0;
  }
  .intro p {
    display: none;
  }
  .intro .connection {
    margin-top: 2px;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .feeding-tile {
    grid-row: auto;
    padding: 22px;
  }
  .feeding-tile h2 {
    margin: 12px 0 18px;
    font-size: 25px;
  }
  .feed-buttons button {
    padding: 18px 10px;
    gap: 10px;
  }
  .boob-icon {
    font-size: 32px;
  }
  .last-feed-tile {
    min-height: 132px;
    padding: 22px;
  }
  .last-feed-tile h2 {
    font-size: 30px;
    margin: 12px 0 6px;
  }
  .tile-decoration {
    font-size: 125px;
  }
  .nappy-tile {
    padding: 20px;
    min-height: 200px;
  }
  .activity-name {
    margin-bottom: 20px;
  }
  .nappy-tile strong {
    font-size: 21px;
  }
  .stop-feed {
    min-height: 142px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feed-buttons button,
  .nappy-tile {
    transition: none;
  }
}

.welcome-panel {
  max-width: 440px;
  margin: 56px auto;
  padding: 32px;
  border-radius: 24px;
  background: #e2e9d8;
}
.welcome-panel h1 {
  font-size: 36px;
  margin: 18px 0 14px;
}
.welcome-panel p {
  font-size: 14px;
  color: #657456;
}
.welcome-panel form {
  margin: 28px 0 20px;
}
.welcome-panel form label {
  margin-bottom: 8px;
}
.welcome-panel input {
  font-size: 16px;
  margin-bottom: 16px;
}
.welcome-panel .welcome-note {
  font-size: 12px;
}
@media (max-width: 680px) {
  .welcome-panel {
    margin: 28px auto;
    padding: 26px;
  }
  .welcome-panel h1 {
    font-size: 32px;
  }
}
