/* File: tadaysWeb/src/tasks/features/clock/clock.css */
/* CLOCK -- the estimate and timer buttons in the task box, with their
   readouts. Moved out of css/dialogs.css. 48px circles, tonal fill with
   a hairline edge, to match the task box capsules.
   States: .pressing (hold in progress), .maxed (estimate at the cap),
   .running (timer on). */

/* positioning context for .log-pop, which is injected as a third child */
.timer-wrap {
  position: relative; flex: 1 1 auto;
  display: flex; justify-content: flex-end; gap: 12px;
}
.time-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }

.sq-btn {
  width: 48px; height: 48px; flex: 0 0 auto; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface-alt); color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.sq-btn i { font-size: 20px; line-height: 1; pointer-events: none; }
.sq-btn:hover { border-color: var(--text-muted); }
.sq-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.sq-btn.pressing { box-shadow: inset 0 0 0 2px var(--text-muted); }
.sq-btn.maxed {
  background: transparent; color: var(--text-muted);
  border-style: dashed; border-color: var(--text-muted);
}
.sq-btn.running { background: rgba(192, 57, 43, .12); border-color: rgba(192, 57, 43, .45); color: #c0392b; }
.sq-btn.running:hover { background: rgba(192, 57, 43, .18); }

/* height reserved whether or not there's anything in it, so the two
   columns stay level when the estimate is unset */
.sq-read {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 48px; height: 13px;
  font-size: 9px; color: var(--text-muted); white-space: nowrap;
}
.sq-read.set { color: var(--text); font-size: 10px; }
.sq-read.running { color: #c0392b; }

.sq-clear {
  appearance: none; -webkit-appearance: none;
  background: none; border: none; box-shadow: none; outline: none;
  padding: 0 1px; margin: 0; line-height: 1;
  font-size: 9px; color: var(--text-muted); cursor: pointer;
}
.sq-clear:hover { color: #c0392b; background: none; }

/* the tracked readout doubles as the work-log button */
.sq-log {
  appearance: none; background: none; border: none; box-shadow: none;
  padding: 0; margin: 0; line-height: 1;
  font: inherit; font-size: inherit; color: inherit; cursor: pointer;
}
.sq-log:hover { text-decoration: underline; }
