/* t22-fixCF (js\v22_leadday.js): Gary's own Today panel, "Your day", at the top of the right hand rail (under the
   board's list when the rail is hidden). The page's own tokens only, so light, dark and high contrast follow. */

.ldy { padding: 16px; border-radius: var(--r-card); display: grid; gap: 12px; margin: 0 0 16px; min-width: 0; }
.ldy.ldy-foot { margin: 16px 0 0; }
#rail:has(> .ldy) > .rail-card { position: static; }
.ldy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ldy-head h2 { margin: 0; font-size: 1rem; }
.ldy-asof { font-size: .75rem; white-space: nowrap; }

/* ---------- Waiting on you ---------- */
.ldy-wait { padding-bottom: 12px; border-bottom: 1px solid var(--glass-rim); }
.ldy-wh { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.ldy-wn { font-size: .75rem; min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center; color: #fff; background: var(--warn); }
.ldy-wlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; }
.ldy-wli { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 0; min-width: 0; }
.ldy-wgo { appearance: none; -webkit-appearance: none; font: inherit; color: inherit; text-align: left; width: 100%; min-width: 0;
  display: flex; align-items: baseline; gap: 6px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--glass-edge);
  background: var(--solid); box-shadow: inset 3px 0 0 var(--warn); }
.ldy-wname { font-weight: 650; font-size: .8125rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldy-wmeta { font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.ldy-called { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }

/* ---------- the counts ---------- */
.ldy-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ldy-count { display: grid; gap: 0; padding: 6px 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); min-width: 0; }
.ldy-count.is-zero { background: var(--solid-2); color: var(--ink-3); }
.ldy-cn { font-family: var(--font-num, inherit); font-size: 1.25rem; line-height: 1.2; }
.ldy-cl { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- sections ---------- */
.ldy-sec { display: grid; gap: 6px; min-width: 0; }
.ldy-h3 { margin: 0; font-size: .875rem; display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ldy-empty { margin: 0; font-size: .8125rem; }

/* ---------- Calls today: the day's hours ---------- */
.ldy-cal { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--glass-rim); }
.ldy-hr { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; align-items: start; min-height: 24px;
  padding: 2px 0 2px 8px; border-bottom: 1px solid var(--glass-rim); }
.ldy-hl { font-size: .6875rem; color: var(--ink-3); padding-top: 4px; white-space: nowrap; }
.ldy-hr.is-gone:not(.has-calls) .ldy-hl { opacity: .6; }
.ldy-hr.is-now { box-shadow: inset 3px 0 0 var(--brand); }
.ldy-hr.is-now .ldy-hl { color: var(--brand-text); font-weight: 700; }
.ldy-slot { display: grid; gap: 4px; min-width: 0; }
.ldy-call { appearance: none; -webkit-appearance: none; font: inherit; color: inherit; text-align: left; width: 100%;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 4px 8px; border-radius: 8px;
  border: 1px solid var(--glass-edge); background: var(--solid); font-size: .8125rem; min-width: 0; }
.ldy-call.is-past { opacity: .6; }
.ldy-ct { font-weight: 700; white-space: nowrap; }
.ldy-cnm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldy-by { font-size: .6875rem; border-radius: 999px; padding: 0 6px; background: var(--solid-2); color: var(--ink-2); white-space: nowrap; }
.ldy-note { flex-basis: 100%; font-size: .75rem; color: var(--ink-3); }

/* ---------- Done today ---------- */
.ldy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; overscroll-behavior: contain; }
.ldy-li { margin: 0; min-width: 0; }
.ldy-item { appearance: none; -webkit-appearance: none; font: inherit; color: inherit; text-align: left; width: 100%;
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "t k n" "l l l"; gap: 2px 6px;
  align-items: baseline; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--glass-edge); background: var(--solid); min-width: 0; }
.ldy-item.is-done { background: var(--solid-2); }
.ldy-t { grid-area: t; font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.ldy-k { grid-area: k; display: inline-flex; align-items: center; gap: 3px; font-size: .6875rem; font-weight: 700;
  border-radius: 999px; padding: 0 6px; background: var(--brand-soft); color: var(--brand-text); white-space: nowrap; }
.ldy-i-status .ldy-k { background: var(--solid-2); color: var(--ink-2); }
.ldy-i-contract .ldy-k { background: color-mix(in srgb, var(--ok) 18%, var(--solid)); color: var(--ink); }
.ldy-n { grid-area: n; font-weight: 650; font-size: .8125rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldy-l { grid-area: l; font-size: .75rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ldy-more { justify-self: start; }
.ldy-lag { margin: 0; font-size: .75rem; }

/* ---------- a row that opens its card ---------- */
.ldy-go { cursor: pointer; transition: transform .14s var(--ease-out, ease), box-shadow .14s var(--ease-out, ease); }
.ldy-go:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.ldy-go:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:root[data-motion="reduced"] .ldy-go, :root[data-motion="reduced"] .ldy-go:hover { transition: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .ldy-go, .ldy-go:hover { transition: none; transform: none; } }
