:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --ink: #29362f;
  --muted: #64685f;
  --line: #deded3;
  --accent: #365f4e;
  --sleep: #7786b6;
  --work: #c57355;
  --care: #a88939;
  --travel: #b36e89;
  --personal: #548597;
  --leisure: #53968c;
  --other: #828479;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  color: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled {
  cursor: wait;
  opacity: 0.55;
}
button {
  background: none;
  border: 1px solid var(--line);
}
button:hover {
  border-color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
button:focus-visible {
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  margin: 0;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.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;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  background: var(--paper);
  padding: 12px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: min(700px, calc(100% - 32px));
  max-height: 90dvh;
  padding: 26px 32px;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgb(28 38 31 / 0.45);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.dialog-header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.2;
}
.dialog-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
}
.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--ink);
}
dialog h2 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 20px 0 10px;
}
#diary-meta {
  font-size: 13px;
  line-height: 1.7;
}
dialog h3 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 26px;
}
.daily-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 26px;
}
.total-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.5;
}
.total-row strong {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-list li {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 12px;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  align-items: start;
}
.activity-list li.is-current {
  background: #e8ece2;
  box-shadow: inset 3px 0 var(--accent);
  padding-left: 10px;
}
.activity-list time {
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.6;
}
.activity-list small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.activity-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  line-height: 1.6;
}
.activity-text {
  min-width: 0;
}
.activity-duration {
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}
@media (max-width: 740px) {
  dialog {
    padding: 20px;
  }
  dialog h2 {
    font-size: 30px;
  }
  .activity-list li {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
  }
  .activity-duration {
    grid-column: 2;
  }
  .daily-totals {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
