/* Lightwork: the running timer, one look for every app (2026-11-25; "Design language.md"
   §2.12). It is a member of the top line, left of the row of buttons:

     <button class="lw-timer" style="--tc: <the thing's colour>">
       <span class="lw-timer-dot"></span><span class="lw-timer-time">24:10</span><span class="lw-timer-name">Studies</span>
     </button>
     <div class="lw-timer-prog" style="--tc: …"><b style="width: 48%"></b></div>   in the top line, only with a planned length
     <div class="lw-timer-pop">…</div>                                             the menu under it

   No border: its state is the dot and the time. .is-paused stops the pulse. The app's own
   code fills these in; only the look is shared. */
.lw-timer { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 6px; margin-right: 6px; border: 0; background: none; border-radius: var(--lw-radius, 6px); font: 500 13px/1 var(--lw-font-ui); color: var(--lw-ink); white-space: nowrap; cursor: pointer; min-width: 0; flex: none; }
.lw-timer[hidden], .lw-timer-prog[hidden], .lw-timer-pop[hidden] { display: none; }
@media (hover: hover) { .lw-timer:hover { background: color-mix(in srgb, var(--lw-ink) 6%, transparent); } }
.lw-timer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--lw-act)); flex: none; margin: 0 3px; animation: lw-timer-pulse 1.8s ease-out infinite; }
@keyframes lw-timer-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tc, var(--lw-act)) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
.lw-timer.is-paused .lw-timer-dot { animation: none; background: none; box-shadow: inset 0 0 0 2px var(--tc, var(--lw-act)); }
.lw-timer-time { font: 500 12.5px/1 var(--lw-font-mono); font-variant-numeric: tabular-nums; }
.lw-timer-name { color: var(--lw-ink-soft); max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .lw-timer-dot { animation: none; } }
/* progress against a planned length: the top line's own bottom edge, in the thing's colour */
.lw-timer-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: color-mix(in srgb, var(--tc, var(--lw-act)) 18%, transparent); pointer-events: none; }
.lw-timer-prog b { display: block; height: 100%; background: var(--tc, var(--lw-act)); border-radius: 0 2px 2px 0; transition: width 1s linear; }
.lw-timer-prog.is-over b { background: var(--lw-warn); }
/* the menu under it: the full time, the plan, the name, and icons to act */
.lw-timer-pop { position: absolute; top: calc(100% - 6px); z-index: 60; width: 240px; padding: 12px 12px 8px 14px; background: var(--lw-panel); border: 1px solid var(--lw-line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .14); }
.lw-timer-pop .lw-timer-big { font: 500 22px/1.1 var(--lw-font-mono); font-variant-numeric: tabular-nums; color: var(--lw-ink); }
.lw-timer-pop .lw-timer-big span { font-size: 12.5px; color: var(--lw-ink-faint); }
.lw-timer-pop .lw-timer-what { font: 600 13.5px/1.35 var(--lw-font-ui); color: var(--lw-ink); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-timer-pop .lw-timer-acts { display: flex; align-items: center; gap: 2px; margin: 8px 0 0 -6px; }
.lw-timer-pop .lw-timer-acts .lw-ib svg { width: 17px; height: 17px; }
.lw-timer-pop .lw-timer-acts .lw-timer-gap { flex: 1; }
@media (max-width: 700px) {
  .lw-timer { padding: 0 2px; margin-right: 2px; gap: 5px; }
  .lw-timer-name { display: none; }      /* the name is in the menu here */
  .lw-timer-pop { width: auto; left: 16px; right: 16px; }
}
