.day-links,
.module-group,
.journal-actions,
.journal-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.day-links {
  margin: 1rem 0;
}
.day-links a,
.module-group a {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  font-size: 0.94rem;
}
.day-links b,
.module-group small {
  color: var(--muted);
}
.module-group {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
}
.module-group a:hover,
.day-links a:hover {
  background: var(--active);
}
.extras {
  margin: 0.65rem 0;
}
.extras summary,
details > summary {
  cursor: pointer;
  color: var(--muted);
}
select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  background: var(--white);
  color: var(--ink);
  padding: 0.45rem;
  min-width: 0;
  width: 100%;
}
dialog .form-grid,
.extras .form-grid {
  margin: 0.8rem 0;
}
.journal-values {
  margin: 0.65rem 0;
  gap: 0.65rem 1.3rem;
}
.journal-values div {
  display: grid;
  white-space: pre-line;
}
.journal-values small {
  color: var(--muted);
}
.journal-card {
  overflow-wrap: anywhere;
}
.journal-actions {
  border-top: 1px solid var(--line);
  margin-top: 0.7rem;
}
.journal-actions .plain-button {
  font-size: 0.87rem;
}
#account-message {
  overflow-wrap: anywhere;
  user-select: all;
}
.connection-body {
  max-height: 68vh;
  overflow: auto;
}
.step-list {
  font-size: 0.85rem;
}
.step-list button {
  display: block;
  text-align: left;
}
.entry-details:empty {
  display: none;
}
.entry-details {
  min-width: 0;
  max-width: 45%;
  overflow-wrap: anywhere;
}
.entry-details small {
  color: var(--muted);
}
#record-dialog,
#quick-dialog {
  width: min(94vw, 620px);
  max-width: 94vw;
  max-height: 88dvh;
  overflow: auto;
}
#barcode-video {
  max-width: 100%;
  max-height: 15rem;
}
.quick-trigger {
  margin-left: auto;
}
.dark {
  color-scheme: dark;
  --paper: #16241e;
  --sidebar: #192a22;
  --white: #23362b;
  --ink: #f1f3eb;
  --muted: #bdd0c0;
  --line: #45594b;
  --leaf: #a0cc9e;
  --active: #354b3c;
  --hero: #314d38;
  --error: #ffb6ad;
}
.dark input,
.dark textarea {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.dark .button:not(.secondary),
.dark .calendar-grid button[aria-pressed='true'],
.dark #notice {
  color: #15281d;
}
.dark .nav-link:hover,
.dark .install:hover,
.dark .icon-button:hover {
  background: var(--active);
}
@media (max-width: 620px) {
  .topbar .quick-trigger {
    font-size: 20px;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    overflow: hidden;
  }
  .quick-trigger span {
    display: none;
  }
  .day-links {
    gap: 0.35rem;
  }
  .day-links a {
    padding: 0.32rem 0.48rem;
    font-size: 0.82rem;
  }
  .entry {
    flex-wrap: wrap;
  }
  .entry-details {
    max-width: 100%;
  }
  .module-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-head h1 {
    overflow-wrap: anywhere;
  }
  .journal-actions {
    gap: 0.2rem;
  }
}
