/* #209: the Daily log as separate lines, and its every-day modal */
.entry.dl { grid-template-columns: 96px 1fr; align-items: start; }
.dl-body { display: grid; gap: 8px; }
.dl-note { margin: 0; font-weight: 700; }
.dl-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.dl-items li { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 6px 4px 10px; border: 1.5px solid var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--tint) 60%, var(--card)); font-size: 14px; font-weight: 600; }
.dl-items li span { flex: 1; }
.dl-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--go); border: 1.5px solid var(--line); }
/* #1131: a goal counted but short of its target, the calendar's missed look */
.dl-dot.miss { background: transparent; border-color: var(--pop); }
.dl-open { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--card);
  border: 2px solid var(--line); box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
.dl-open:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.dl-open:focus-visible, .dl-more:focus-visible, .dl-close:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
/* #2576: a line with several posts, one numbered chip per post ("1 ↗", "2 ↗") */
.dl-chips { flex: none; display: flex; gap: 6px; }
.dl-chip { height: 28px; padding: 0 9px; border-radius: 14px; display: inline-flex; align-items: center; gap: 2px; font: 800 13px var(--display); color: var(--text);
  text-decoration: none; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow-small); transition: transform .15s, box-shadow .15s; }
.dl-chip:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.dl-chip:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.dl-none { margin: 0; color: var(--muted); }
.dl-more { justify-self: start; font: 700 15px var(--display); color: var(--text); background: var(--card); border: 2px solid var(--line); border-radius: 99px;
  padding: 8px 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.dl-more:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lifted); }
/* Centred in the viewport whatever the scroll position (the site resets every margin to 0, which pins a dialog to the top left) */
.dl-modal { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto; border: 2px solid var(--line); border-radius: 18px;
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-lifted); }
.dl-modal::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.dl-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  background: var(--card); border-bottom: 2px solid var(--line); }
.dl-head h3 { margin: 0; font-size: 22px; } .dl-head small { font: 500 12px var(--mono); color: var(--muted); margin-left: 6px; }
.dl-close { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: var(--card);
  border: 2px solid var(--line); box-shadow: var(--shadow-small); cursor: pointer; }
.dl-list { display: grid; gap: 10px; padding: 16px; }
/* #1009: only the day list scrolls, under the fixed title bar, with a thin scrollbar in the site's colours set in from the
   modal's rounded corners (owner, 2026-10-18) */
.dl-modal[open] { display: flex; flex-direction: column; overflow: hidden; }
.dl-modal .dl-head { position: static; flex: none; }
.dl-modal .dl-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 6px 12px 0; padding-bottom: 4px; }
/* Firefox takes the standard properties; Chrome ignores its own scrollbar styling (and keeps the arrows) when they are set */
@supports not selector(::-webkit-scrollbar) { .dl-modal .dl-list { scrollbar-width: thin; scrollbar-color: var(--muted) transparent; } }
.dl-list::-webkit-scrollbar { width: 8px; }
.dl-list::-webkit-scrollbar-button { display: none; }
.dl-list::-webkit-scrollbar-track { background: transparent; }
.dl-list::-webkit-scrollbar-thumb { background: var(--muted); border-radius: var(--r-pill); }
.dl-list::-webkit-scrollbar-thumb:hover { background: var(--pop); }
@media (max-width: 760px) {
  .entry.dl { grid-template-columns: 1fr; }
  .dl-items { grid-template-columns: 1fr; }
  .dl-modal { width: calc(100vw - 24px); max-height: 88dvh; }
}
