/* Karen: My day as a company-wide dashboard (dashboard.js). Tokens only, no inline styles. */
.daygrid.db-hidden, .dayprogress.db-hidden { display: none !important; }
.db { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.db-wait { color: var(--muted); }

.db-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.db-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  color: var(--ink); text-decoration: none; min-width: 0; }
.db-tile:hover { border-color: var(--input); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.db-tile:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }
/* Colour only when something is genuinely overdue: the number goes red, nothing else changes */
.db-tile.bad .db-v { color: var(--red); }
.db-l { font-size: 13px; font-weight: 600; color: var(--grey-ink); }
.db-v { font-size: 30px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.db-s { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

.db-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.db-wide { grid-column: span 2; }
.db-card { min-width: 0; }
.db-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.db-head .sechead { margin: 0; }
.db-head .link { font-size: 13px; white-space: nowrap; }
.db-sub { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--grey-ink); }
.db-none { margin: 0; color: var(--muted); font-size: 14px; }
.db-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.db-big { margin: 0 0 10px; font-size: 15px; font-weight: 700; }

.db-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.db-col h3 { margin: 0 0 8px; font-size: 14px; color: var(--grey-ink); }
.db-col h3 .n { font-weight: 500; color: var(--muted); }
.db-ev { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.db-ev li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 0 10px; padding: 8px 0; border-top: 1px solid var(--divider); font-size: 13px; }
.db-ev li:first-child { border-top: 0; }
.db-t { grid-row: span 2; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.db-who { font-size: 12px; color: var(--muted); }
.db-what { color: var(--ink); overflow-wrap: anywhere; }
.db-lock { color: var(--green-700); }

.db-flags { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.db-flags li { padding: 10px 0; border-top: 1px solid var(--divider); font-size: 14px; }
.db-flags li:first-child { border-top: 0; padding-top: 0; }
.db-flags li.bad a::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.db-flags a { color: var(--ink); text-decoration: none; }
.db-flags a:hover { text-decoration: underline; }

.db-bar { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 32px; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.db-bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--grey-ink); }
.db-bt { height: 10px; background: var(--ground); border-radius: 999px; overflow: hidden; }
.db-bt i { display: block; height: 100%; background: var(--green-700); border-radius: 999px; min-width: 2px; }
.db-bn { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.db-dl { margin: 0; display: flex; flex-direction: column; }
.db-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--divider); font-size: 14px; }
.db-dl > div:first-child { border-top: 0; }
.db-dl dt { color: var(--grey-ink); }
.db-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) { .db-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .db-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; } .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .db-grid, .db-cols { grid-template-columns: minmax(0, 1fr); } .db-wide { grid-column: auto; } .db-v { font-size: 26px; } }
@media (max-width: 420px) { .db-tiles { grid-template-columns: minmax(0, 1fr); } }

/* No task counts any more: the to-do line under the greeting and the My day menu count belong to the old list */
#karenline, #badge-day { display: none !important; }

/* The one main job on My day: the inbox, above the tiles */
.db-lead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; padding: 20px 24px; min-width: 0; }
.db-lead[hidden] { display: none; }
.db-lead-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.db-lead-l { font-size: 13px; font-weight: 600; color: var(--grey-ink); }
.db-lead-v { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.db-lead-s { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.db-lead-s .late { color: var(--red); font-weight: 600; }
.db-lead .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 600px) { .db-lead { padding: 16px; } .db-lead .btn { width: 100%; justify-content: center; } }
