.sidebar-timer-tool, .sidebar-timer-transport {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 5px; border-radius: 6px; color: #78716c;
}
.sidebar-timer-tool:hover, .sidebar-timer-transport:hover { background: #f5f5f4; color: #44403c; }
.sidebar-timer-transport { border-radius: 50%; }
.sidebar-timer-transport:disabled { opacity: .45; cursor: not-allowed; }
.sidebar-timer-toggle { color: #526549; }
.sidebar-timer-toggle:hover { background: #e8eddf; color: #526549; }
.sidebar-timer-readout { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.sidebar-timer-readout .num { white-space: nowrap; font-size: 23px; letter-spacing: -1px; }
.sidebar-timer-note-preview {
  display: block; width: 100%; min-height: 40px; max-height: 76px;
  overflow-y: auto; margin-top: 7px; padding: 6px 7px;
  border: 1px solid transparent; border-radius: 6px; text-align: left;
  white-space: pre-line; overflow-wrap: anywhere; font-size: 12px;
  line-height: 1.5; color: #78716c; cursor: text;
}
.sidebar-timer-note-preview:hover { border-color: #d2dcc8; background: #fbfcfa; }
.sidebar-timer-note-preview:focus-visible { border-color: #708567; outline: 2px solid #708567; outline-offset: 2px; }
.sidebar-timer-notes-form { margin-top: 8px; }
.sidebar-timer-notes-form .sidebar-timer-notes {
  min-height: 80px; height: 108px; max-height: 160px; resize: vertical;
  overflow-y: auto; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5;
}
.sidebar-timer-note-preview[hidden], .sidebar-timer-notes-form[hidden] { display: none; }

.timer-clock { position: relative; min-width: 0; }
.timer-clock-digits { display: flex; align-items: baseline; white-space: nowrap; }
.timer-clock [data-clock-part] {
  appearance: none; box-sizing: content-box; width: 2ch; min-width: 2ch; max-width: 6ch;
  border: 0; border-radius: 4px; padding: 1px 0; margin: 0; background: transparent;
  color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit;
  text-align: center; cursor: text; caret-color: #526549; outline: none;
}
.timer-clock [data-clock-part]:not([readonly]):hover { background: #e8eddf; }
.timer-clock [data-clock-part]:focus { background: #e8eddf; box-shadow: 0 0 0 1px #708567; }
.timer-clock [data-clock-part][aria-invalid="true"] { box-shadow: 0 0 0 1px #b91c1c; }
.timer-clock [data-clock-part][readonly] { cursor: default; }
.app-sidebar .timer-clock-flexible [data-clock-part="hours"] + span { margin-inline-start: -1px; }
.timer-clock-status { display: block; max-width: 200px; margin-top: 4px; white-space: normal;
  color: #991b1b; font-family: var(--font-sans, sans-serif); font-size: 11px; font-weight: 400;
  line-height: 1.4; letter-spacing: normal; word-spacing: normal; }
.timer-clock-status[hidden] { display: none; }

.sidebar-timer-readout .timer-clock[data-clock-long="true"] .timer-clock-digits { font-size: 16px; }

/* Pending saves remain announced without flashing an error-coloured line. */
.timer-clock[data-clock-pending="true"] [data-clock-status] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Canonical timer presentation, also packaged verbatim for the extension. */
.timer-clock,.timer-clock-digits { font-weight:400; }
.sidebar-timer-transport.timer-workflow-trash { color:#9d3d36; }
.sidebar-timer-transport.timer-workflow-trash:hover { color:#9d3d36; }
.timer-workflow-recent { clear:both; }
.timer-workflow-recent-heading { font-size:12px; color:#63685e; margin:15px 6px 8px; }
.timer-workflow-recent-list { max-height:232px; overflow-y:auto; overscroll-behavior-y:contain; }
.timer-recent-swipe { overflow-x:auto; overflow-y:hidden; scrollbar-width:none; touch-action:pan-x pan-y pinch-zoom; overscroll-behavior-x:contain; scroll-snap-type:none; scroll-behavior:auto; border-radius:7px; }
.timer-recent-swipe::-webkit-scrollbar { display:none; }
.timer-recent-track { display:flex; width:calc(100% + 56px); align-items:stretch; }
.timer-recent-start { flex:0 0 calc(100% - 56px); width:calc(100% - 56px); min-width:0; }
.timer-recent-row { border:0; border-radius:0; font-weight:400; line-height:1.5; display:flex; width:100%; align-items:center; gap:7px; padding:6px 6px; text-align:left; background:#f7f4ec; color:#2d332a; font-size:12px; }
.timer-recent-row > span { flex:1; min-width:0; }
.timer-recent-row strong { display:block; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.timer-recent-row small { display:block; font-size:10px; color:#63685e; }
.timer-recent-row[aria-disabled=true] { color:#787c72; }
.timer-recent-row[aria-disabled=true] > span,.timer-recent-row[aria-disabled=true] > svg { opacity:.55; }
.timer-recent-remove { border:0; border-radius:0; display:flex; flex:0 0 56px; width:56px; align-items:center; justify-content:center; background:#fffef9; color:#9d3d36; }

.timer-recent-row > svg { width:14px; height:14px; flex-shrink:0; }
.timer-recent-remove > svg { width:16px; height:16px; }

@media(pointer:coarse) { .timer-recent-remove { min-height:44px; } }
