/* Work hours (public/worklog.js): the Log chip on Today, the quick box, and the panel on My days. */
.wl { gap: 14px; }
.wl-head { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.wl-title { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.wl-title h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.wl-title span { font-size: 13px; }
.wl-day { display: inline-flex; align-items: center; gap: 2px; background: var(--fill); border-radius: 999px; padding: 2px; }
.wl-day-name { min-width: 92px; text-align: center; font-weight: 600; font-size: 14px; }
.wl-total { display: flex; align-items: baseline; gap: 6px; }
.wl-total b { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.wl-total span { font-size: 14px; color: var(--ink-3); }

.wl-now { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; flex-wrap: wrap; overflow-wrap: anywhere; }
.wl-now b { font-weight: 600; }
.wl-now-remove.wl-icon { width: 44px; height: 44px; margin: -10px 0 -10px -4px; }
.wl-now-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-ink); flex: none; }
.wl-now-dot.off { background: var(--mute); }

.wl-form { display: flex; flex-direction: column; gap: 8px; }
.wl-form-line { display: flex; gap: 8px; align-items: center; min-width: 0; }
.wl-input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 18px; min-height: 48px; }
.wl-input:focus, .wl-time:focus, .wl-text:focus, .wl-project:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(43, 79, 214, .12); }
.wl-log { flex: none; min-height: 48px; }
.wl-form-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-quick { min-height: 40px; font-size: 13px; padding: 0 14px; }
.wl-mic { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.wl-mic.on { background: var(--rust-soft); color: var(--rust-ink); border-color: var(--peach-line); }

.wl-icon { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.wl-icon:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.wl-icon:disabled { opacity: .35; cursor: default; }
.wl-icon:focus-visible, .wl-mic:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }

.wl-notes { border-top: 1px solid var(--rule); padding-top: 10px; }
.wl-notes summary { cursor: pointer; font-size: 14px; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; gap: 10px; }
.wl-notes summary .muted { font-size: 12px; }
.wl-note .wl-icon { width: 44px; height: 44px; }
.wl-notes ul { list-style: none; margin: 6px 0 0; padding: 0; }
.wl-note { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 2px 0; }
.wl-note time { flex: none; width: 70px; font-size: 12px; color: var(--ink-3); }
.wl-note-text { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.wl-note-text small { color: var(--ink-3); font-size: 12px; }

.wl-sheet-title { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 14px; }
.wl-sheet-title h3 { margin: 0; font-size: 17px; }
.wl-sheet-title span { font-size: 13px; }
.wl-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wl-row { display: grid; grid-template-columns: auto minmax(120px, 170px) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px 6px 8px 10px; }
.wl-row.bad { border-color: var(--peach-line); background: var(--peach-soft); }
.wl-times { display: flex; align-items: center; gap: 6px; }
.wl-times .muted { font-size: 13px; }
.wl-time, .wl-text, .wl-project { font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; min-height: 40px; padding: 0 8px; min-width: 0; }
.wl-time { width: 104px; }
.wl-text { width: 100%; padding: 0 12px; }
.wl-hours { font-size: 12px; color: var(--ink-3); min-width: 44px; text-align: right; }
.wl-row-copy { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-2); font: inherit; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.wl-row-copy:hover { background: var(--hover); color: var(--ink); }
.wl-row-copy.done { color: var(--pen); border-color: currentColor; }
.wl-row-copy:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.wl-day-copy { margin-left: auto; align-self: center; flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.wl-day-copy:hover { background: var(--hover); color: var(--ink); }
.wl-day-copy.done { color: var(--pen); border-color: currentColor; }
.wl-day-copy:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.wl-day-copy.on { background: var(--fill); color: var(--ink); }
.day-head:has(.wl-day-copy) { flex-wrap: wrap; row-gap: 6px; }

/* A past day's "For your tracker" box on My days: one card per entry, a Copy button on every field. */
.wl-tk { display: flex; flex-direction: column; gap: 10px; margin: -4px 0 18px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.wl-tk .empty { margin: 0; }
.wl-tk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wl-tk-entry { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 14px; }
.wl-tk-head { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.wl-tk-field { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 4px 0; border-top: 1px solid var(--rule); }
.wl-tk-head + .wl-tk-field { border-top: 0; }
.wl-tk-label { font-size: 12px; color: var(--ink-3); }
.wl-tk-value { font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; min-width: 0; }
.wl-tk-foot { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.wl-tk-foot .muted { font-size: 12px; }
.wl-tk-all { min-height: 44px; }
.wl-tk-all.done { color: var(--pen); }
@media (max-width: 640px) {
  .wl-tk { padding: 10px; }
  .wl-tk-field { grid-template-columns: minmax(0, 1fr) auto; }
  .wl-tk-label { grid-column: 1 / -1; }
}
/* A row's work, one thing a line: what its Copy gives as bullets. */
.wl-work { display: block; padding: 9px 12px; line-height: 1.45; resize: vertical; field-sizing: content; max-height: 220px; }
.wl-add { align-self: flex-start; min-height: 40px; font-size: 13px; }

.wl-meetings { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--butter-soft); border: 1px solid var(--butter-line); border-radius: 16px; padding: 8px 8px 8px 14px; }
.wl-meetings-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wl-meetings-text b { font-size: 15px; }
.wl-meetings-text span { font-size: 12px; }
.wl-stepper { display: flex; align-items: center; gap: 2px; }
.wl-meetings-hours { min-width: 52px; text-align: center; font-size: 15px; font-weight: 500; }

.wl-newer { margin: 0; font-size: 13px; color: var(--ink-2); background: var(--fill); border-radius: 12px; padding: 8px 12px; }
.wl-problem { margin: 0; color: var(--rust-ink); font-size: 14px; }
.wl-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wl-rebuild { margin-left: auto; font-size: 13px; }
.wl-foot { margin: 0; font-size: 12px; }

/* "Send to Trackabi" under the timesheet: the list that would go, then one Send button. */
.wl-ta-start .wl-ta-open { min-height: 44px; }
.wl-ta { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.wl-ta-head { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.wl-ta-head h3 { margin: 0; font-size: 17px; }
.wl-ta-head span { font-size: 13px; }
.wl-ta p { margin: 0; }
.wl-ta-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wl-ta-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.wl-ta-item:not(.wl-ta-goes) { opacity: .7; }
.wl-ta-what { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.wl-ta-what b { font-size: 14px; font-weight: 600; }
.wl-ta-what small { font-size: 12px; }
.wl-ta-work { font-size: 13px; line-height: 1.45; white-space: pre-line; color: var(--ink-2); }
.wl-ta-tag { flex: none; font-size: 12px; color: var(--ink-3); }
.wl-ta-goes .wl-ta-tag { color: var(--mint-ink); font-weight: 600; }
.wl-ta-said { font-size: 14px; }
.wl-ta-send, .wl-ta-close { min-height: 44px; }
.wl-toast-undo.toast-undo { min-height: 44px; padding: 0 18px; }
.wl-copy-fallback { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

.wl-chip svg { flex: none; }

.wl-sheet { border: 0; padding: 20px; border-radius: 24px; width: min(480px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--lift), 0 24px 60px -20px rgba(var(--ink-rgb), .35); }
.wl-sheet::backdrop { background: rgba(var(--ink-rgb), .28); }
.wl-sheet[open] { display: flex; flex-direction: column; gap: 14px; }
.wl-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wl-sheet-head h2 { margin: 0; font-size: 20px; }
.wl-sheet-link { font-size: 14px; color: var(--pen); align-self: flex-start; }

@media (max-width: 860px) {
  .wl-total b { font-size: 28px; }
  .wl-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px; }
  .wl-times { grid-column: 1 / -1; flex-wrap: wrap; }
  .wl-time { flex: 1 1 96px; width: auto; }
  .wl-project { grid-column: 1 / 2; }
  .wl-text { grid-column: 1 / 2; }
  .wl-row-copy { grid-column: 2; grid-row: 2; }
  .wl-row > .wl-row-remove { grid-column: 2; grid-row: 3; align-self: center; justify-self: center; }
  .wl-rebuild { margin-left: 0; }
  /* On a phone the box sits at the bottom, near the thumb. */
  .wl-sheet { margin: auto auto 12px; }
}
