/* "Your day" on Today (public/dayloop.js): Dayloop's plan beside its backlog. Today redraws on every change, so
   nothing here animates on arrival; only a fresh tick pops, and hover and press states use transitions. */
.dl { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dl.stale .dl-grid { opacity: .55; transition: opacity .3s var(--ease); }

.dl-bar { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.dl-stepper { display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.dl-step { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.dl-step:hover { background: var(--fill); color: var(--ink); }
.dl-step:active { transform: scale(.92); }
.dl-day { min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 0 8px; }
.dl-day b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.dl-day span { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.dl-bar-end { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; cursor: pointer; transition: color .2s var(--ease); }
.dl-link:hover { color: var(--ink); }
.dl-link:disabled { cursor: default; color: var(--ink-3); }
.dl-link.spinning svg { animation: spin 1s linear infinite; }
.dl-link:focus-visible, .dl-step:focus-visible, .dl-check:focus-visible, .dl-act:focus-visible, .dl-seg:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }

.dl-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dl-panel { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dl-panel.quiet { background: var(--paper); border-color: transparent; }
.dl-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dl-panel-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.dl-panel-head span { font-size: 13px; color: var(--ink-3); }

.dl-add { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 16px; padding: 5px 5px 5px 12px; background: var(--card); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.dl-add:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(43, 79, 214, .12); }
.dl-add-plus { flex: none; color: var(--ink-3); display: grid; }
.dl-add input { flex: 1 1 140px; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; min-height: 38px; }
.dl-add input[aria-invalid="true"] { color: var(--rust); }
.dl-segs { flex: none; display: flex; background: var(--fill); border-radius: 999px; padding: 3px; }
.dl-seg { border: 0; background: transparent; border-radius: 999px; padding: 0 12px; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: background .2s var(--ease), color .2s var(--ease); }
.dl-seg[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 0 rgba(29,26,22,.05), 0 6px 14px -10px rgba(29,26,22,.45); }
.dl-add-btn { flex: none; min-height: 38px; padding: 0 16px; }

.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--rule); min-width: 0; }
.dl-row:first-child { border-top: 0; }
.dl-row.busy { opacity: .6; }
.dl-time { flex: none; width: 66px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.dl-time.anytime { color: var(--ink-3); }
.dl-title { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.dl-name { font-size: 15px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; transition: color .25s var(--ease); }
.dl-row.done .dl-name { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(var(--ink-rgb), .35); }
.dl-tag { font-size: 11px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.dl-where { flex-basis: 100%; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.dl-len { flex: none; font-size: 12px; color: var(--ink-3); white-space: nowrap; }

.dl-check { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--mute); background: var(--card); color: transparent; display: grid; place-items: center; padding: 0; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.dl-check:hover { border-color: var(--ink-2); }
.dl-check:active { transform: scale(.88); }
.dl-check.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.dl-check.pop { animation: dl-pop .45s var(--ease); }
.dl-check:disabled { cursor: default; }

/* Calendar events are read-only: a dashed bar where a task has its box, as Dayloop draws them. */
.dl-row.event .dl-ev-bar { flex: none; width: 24px; align-self: stretch; display: flex; justify-content: center; }
.dl-row.event .dl-ev-bar::before { content: ''; width: 0; border-left: 2px dashed var(--violet); border-radius: 2px; opacity: .7; }
.dl-row.event .dl-name { color: var(--lilac-ink); }

.dl-acts { flex: none; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.dl-act { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; border: 1px solid transparent; background: transparent; border-radius: 999px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.dl-act.icon { width: 32px; padding: 0; }
.dl-act:hover { background: var(--fill); color: var(--ink); }
.dl-act:disabled { opacity: .5; cursor: default; }
.dl-act.danger { color: var(--rust-ink); background: var(--rust-soft); border-color: var(--peach-line); }
.dl-panel.quiet .dl-act:hover { background: var(--card); }
/* On a mouse, row tools stay quiet until the row is pointed at or reached by keyboard. */
@media (hover: hover) {
  .dl-row .dl-act:not(.danger) { opacity: 0; transition: opacity .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
  .dl-row:hover .dl-act:not(.danger), .dl-row:focus-within .dl-act:not(.danger) { opacity: 1; }
  .dl-row .dl-act:disabled { opacity: 0; }
}

.dl-note { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: 22px; padding: 18px 20px; }
.dl-note-mark { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--butter); box-shadow: 0 0 0 4px var(--butter-soft); }
.dl-note b { font-size: 16px; }
.dl-note p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 560px; }
.dl-error { margin: 0; font-size: 13px; color: var(--rust); }

@keyframes dl-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

@media (max-width: 1180px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .dl-panel { padding: 16px; border-radius: 20px; }
  .dl-bar-end { margin-left: 0; width: 100%; justify-content: space-between; }
  .dl-step { width: 44px; height: 44px; }
  .dl-link { min-height: 44px; }
  .dl-add { flex-wrap: wrap; padding: 6px; }
  .dl-add-plus { display: none; }
  .dl-add input { flex-basis: 100%; padding: 0 8px; min-height: 44px; }
  .dl-segs { flex: 1; }
  .dl-seg { flex: 1; min-height: 38px; }
  .dl-add-btn { min-height: 44px; }
  .dl-row { gap: 10px; flex-wrap: wrap; }
  .dl-time { width: auto; min-width: 52px; }
  .dl-title { flex-basis: calc(100% - 140px); }
  .dl-check { width: 28px; height: 28px; position: relative; }
  /* A finger-sized target around the small box. */
  .dl-check::after { content: ''; position: absolute; inset: -8px; }
  .dl-act { min-height: 40px; }
  .dl-act.icon { width: 40px; }
}
