/* ClockIn: assets/zen-pomodoro/zen-pomodoro.css. Part of what was style.css (split in 1.42.2, rules moved as is). The load order in index.html matters: see CLAUDE.md */
/* ============================================================
   FOCUS TIMER (1.37.0), see assets/focus.js
   One big clock and nothing else competing. The overlay's colors come
   from its data-tone: a warm tomato red while focusing, amber for the
   soft landing, a calm teal for breaks, grey while paused. Each tone is
   mixed into the theme's own paper, so light, dark and every theme keep
   their character. The tomatoes are always tomato red with a green leaf.
   ============================================================ */
.focus-overlay {
  --focus-hue: #E4572E;
  --focus-tomato: #E4572E;
  --focus-leaf: #3E8E4F;
  --focus-bg: color-mix(in srgb, var(--focus-hue) 8%, var(--paper));
  position: fixed;
  /* 1.39.2: the drawer runs up behind the header (padding keeps its
     content below it), so when the header fades out while the mouse is
     still, the drawer's own color shows there, not the page. */
  top: 0;
  padding-top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12; /* over the Side Nav (10) and the timer bar, under windows (20), the alert card and toasts */
  background: var(--focus-bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* A drawer (1.37.2): it starts fully above, behind the header, and slides
     down to the bottom of the window with an ease-out. 2.0.5 (Omar):
     closing is the same slide back up, same time and curve (it was 360ms
     ease-in, which felt different). Keep in step with PULL_EASE_MS in focus.js.
     2.22.3 (Omar): every drawer slide 30% quicker (450 to 315, 480 to 336, 420 to 294).
     2.22.6 (Omar): a little slower again, 380 (405 and 355 for the page slides). */
  transform: translateY(-100%);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), background-color 600ms ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.focus-overlay.hidden { display: none; }
.focus-overlay.open { transform: none; transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), background-color 600ms ease; }
html[data-focus-open] .topbar { z-index: 14; } /* the drawer slides out from under the header */
.focus-overlay[data-tone="landing"] { --focus-hue: #D9921C; }
.focus-overlay[data-tone="break"] { --focus-hue: #2A9483; }
.focus-overlay[data-tone="paused"] { --focus-hue: var(--ink-light); }
html[data-focus-fullscreen] .topbar { display: none; }
html[data-focus-fullscreen] .focus-overlay { top: 0; padding-top: 0; }
/* 1.39.2: the header fades with the other controls while the mouse is still. */
html[data-focus-open] .topbar { transition: opacity 400ms ease, background-color 600ms ease; }
html[data-focus-still] .topbar { opacity: 0; pointer-events: none; }
html[data-focus-open] body { overflow: hidden; }

.focus-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  flex-wrap: wrap;
}
.focus-top-actions { display: flex; gap: var(--space-1); }
.focus-top-actions .icon-btn { color: var(--ink-light); }
.focus-top-actions .icon-btn[aria-pressed="true"] { color: var(--focus-hue); }

.focus-modes {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--focus-hue) 10%, transparent);
}
.focus-mode {
  border: none;
  background: none;
  color: var(--ink-light);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--weight-medium);
  height: var(--btn-h-sm);
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.focus-mode:hover { color: var(--ink); }
.focus-mode[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.focus-mode:focus-visible { outline: 2px solid var(--focus-ring, var(--ink)); outline-offset: 1px; }

.focus-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0 var(--space-5) var(--space-7);
  text-align: center;
}

/* What you are working on: one quiet line, click for the real fields. */
.focus-what {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: min(640px, 100%);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.focus-what:hover, .focus-what[aria-expanded="true"] { border-color: color-mix(in srgb, var(--focus-hue) 30%, transparent); }
.focus-what:focus-visible { outline: 2px solid var(--focus-ring, var(--ink)); outline-offset: 2px; }
.focus-what-desc { font-size: var(--font-size-md); font-weight: var(--weight-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.focus-what-desc.is-empty { color: var(--text-muted); font-weight: var(--font-weight-body); }
.focus-what-project { font-size: var(--font-size-sm); color: var(--text-muted); }

.focus-what-wrap { position: relative; display: flex; justify-content: center; width: 100%; z-index: 3; }
/* The fields open OVER the clock, never pushing it down (1.37.2). */
.focus-fields {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  width: min(900px, calc(100vw - 48px));
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 220ms;
}
.focus-fields.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 200ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
#focus-fields-slot { width: 100%; }
.focus-fields .timer-bar { position: static; box-shadow: var(--shadow-pop); }
.focus-fields .timer-display-wrap,
.focus-fields #timer-toggle-btn,
.focus-fields #timer-controls, /* 1.47.1: the Play/Pause/Stop buttons (1.43.0) were a second Clock In here, the Tracker's */
.focus-fields #timer-more-btn,
.focus-fields .budget-pill-wrap { display: none !important; }
.focus-fields #timer-description { flex: 1 1 240px; }
#focus-fields-done { height: var(--btn-h-md); padding: 0 var(--space-5); }

/* The clock, inside an optional progress ring. */
.focus-dial {
  position: relative;
  width: min(50vmin, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.focus-dial.no-ring { width: auto; aspect-ratio: auto; padding: var(--space-5) 0; }
.focus-dial.no-ring .focus-ring { display: none; }
.focus-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-ring circle { fill: none; stroke-width: 5; }
.focus-ring-track { stroke: color-mix(in srgb, var(--focus-hue) 14%, transparent); }
.focus-ring-bar {
  stroke: var(--focus-hue);
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1s linear, stroke 600ms ease;
}
.focus-readout { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: 0 12%; }
.focus-clock {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: clamp(56px, 12vmin, 132px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}
.focus-clock.is-words { font-size: clamp(40px, 8vmin, 84px); color: var(--focus-hue); letter-spacing: 0; }
.focus-status { font-size: var(--font-size-sm); color: var(--ink-light); max-width: 34ch; line-height: var(--line-height-body, 1.5); min-height: 1.5em; }

/* Break screen: one suggestion and I Moved. */
.focus-tip {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: min(560px, 100%);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--focus-hue) 12%, var(--paper-raised));
  text-align: left;
}
.focus-tip.hidden { display: none; }
.focus-tip-text { margin: 0; font-size: var(--font-size-md); line-height: 1.4; }
.focus-tip .btn-secondary { flex: none; height: var(--btn-h-md); white-space: nowrap; }
.focus-tip .btn-secondary:disabled { opacity: 0.7; cursor: default; }

/* Tomatoes */
.focus-tomatoes { display: flex; gap: var(--space-3); min-height: 44px; }
.focus-tomato .ft-shell { fill: none; stroke: color-mix(in srgb, var(--ink) 28%, transparent); stroke-width: 2; }
.focus-tomato .ft-fill { fill: var(--focus-tomato); }
.focus-tomato .ft-leaf { fill: none; stroke: color-mix(in srgb, var(--ink) 28%, transparent); stroke-width: 1.6; stroke-linejoin: round; }
.focus-tomato.is-filling .ft-leaf,
.focus-tomato.is-pending .ft-leaf,
.focus-tomato.is-red .ft-leaf { fill: var(--focus-leaf); stroke: var(--focus-leaf); }
.focus-tomato.is-red .ft-shell { stroke: var(--focus-tomato); }
.focus-tomato.is-pending .ft-fill { opacity: 0.4; }
.focus-tomato.is-pending .ft-shell { stroke: var(--focus-tomato); stroke-dasharray: 4 3; }
.focus-tomato.is-grey .ft-fill { fill: var(--text-muted); opacity: 0.5; }
.focus-tomato.is-grey .ft-leaf { fill: var(--text-muted); stroke: var(--text-muted); opacity: 0.6; }
.focus-today { font-size: var(--font-size-sm); color: var(--text-muted); }
.focus-today.is-met { color: var(--focus-tomato); font-weight: var(--weight-medium); }

/* Controls: one big button, two quiet ones. */
.focus-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-2); flex-wrap: wrap; }
.focus-main-btn {
  min-width: 200px;
  height: 56px;
  padding: 0 var(--space-6);
  border: 2px solid var(--focus-hue);
  border-radius: var(--radius-pill);
  background: var(--focus-hue);
  color: #FFFFFF;
  font: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: background-color 600ms ease, border-color 600ms ease, filter 150ms ease;
}
.focus-main-btn:hover { filter: brightness(0.94); }
.focus-main-btn.is-soft { background: transparent; color: var(--focus-hue); }
.focus-side-btn {
  height: var(--btn-h-md);
  padding: 0 var(--space-4);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-light);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.focus-side-btn:hover { color: var(--ink); border-color: var(--ink-light); }
.focus-side-btn.hidden, .focus-main-btn.hidden { display: none; }
.focus-main-btn:focus-visible, .focus-side-btn:focus-visible { outline: 2px solid var(--focus-ring, var(--ink)); outline-offset: 3px; }

.focus-presets { margin-top: var(--space-3); }
.focus-presets .segmented-opt > span { font-size: var(--font-size-sm); height: var(--btn-h-sm); padding: 0 var(--space-3); }
.focus-presets.is-locked { opacity: 0.45; }
.focus-presets.is-locked .segmented-opt { cursor: not-allowed; }
.focus-preset-nums { font-weight: var(--font-weight-body); opacity: 0.75; margin-left: 2px; }

/* Header: the tomato button, and the pill while a session runs. */
.focus-open-btn, .focus-open-btn:hover, .focus-open-btn:focus-visible { color: var(--chrome-fg); border-radius: var(--radius-sm); }
.focus-open-btn svg { opacity: 0.6; transition: opacity 150ms ease; }
.focus-open-btn:hover svg, .focus-open-btn:focus-visible svg, .focus-open-btn[aria-expanded="true"] svg { opacity: 1; }
.focus-open-btn[aria-expanded="true"] { background: var(--chrome-hover, rgba(127, 127, 127, 0.16)); }
.focus-open-btn.hidden, .focus-pill.hidden { display: none; }
.focus-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--btn-h-sm);
  padding: 0 var(--space-3);
  border: 1px solid var(--chrome-field-border, rgba(255, 255, 255, 0.25));
  border-radius: var(--radius-pill);
  background: var(--chrome-hover, rgba(127, 127, 127, 0.16));
  color: var(--chrome-fg);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}
.focus-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #E4572E; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.focus-pill[data-tone="break"] .focus-pill-dot { background: #2A9483; }
.focus-pill[data-tone="landing"] .focus-pill-dot { background: #D9921C; }
.focus-pill[data-tone="paused"] .focus-pill-dot { background: #9AA0A6; }
.focus-pill:focus-visible { outline: 2px solid var(--chrome-fg); outline-offset: 2px; }

/* 20-20-20 eye nudge: small, silent, bottom corner. */
.focus-nudge {
  position: fixed;
  left: 24px; /* bottom left, so it never sits under toasts (bottom right) */
  bottom: 24px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 340px;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  border-left: 3px solid #2A9483;
  font-size: var(--font-size-sm);
  overflow: hidden;
  transition: opacity 200ms ease, transform 200ms ease;
}
.focus-nudge.hidden { display: none; }
.focus-nudge.leaving { opacity: 0; transform: translateY(8px); }
.focus-nudge svg { flex: none; color: #2A9483; }
.focus-nudge-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: var(--space-1); font-size: 12px; }
.focus-nudge-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #2A9483; transform-origin: left; }

/* Tracker rows made by focus rounds: a small tomato, and the count on groups. */
.entry-tomato { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: -2px; font-size: var(--font-size-sm); color: var(--text-muted); }
/* 1.39.2: the tomato is the size of the row's icons (Play, Plus, Delete: 18px). */
.entry-tomato svg { width: 18px; height: 18px; flex: none; }
.entry-tomato-n { font-weight: var(--weight-bold); font-variant-numeric: lining-nums tabular-nums; transform: translateY(1.5px); } /* level with the tomato body, which sits below its leaf */
.entry-tomato .tomato-body { fill: #E4572E; }
.entry-tomato .tomato-leaf { fill: #3E8E4F; }
.entry-tomato.is-empty .tomato-body { fill: none; stroke: var(--text-muted); stroke-width: 1.5; }
.entry-tomato.is-empty .tomato-leaf { fill: var(--text-muted); }

@media (max-width: 600px) {
  .focus-top { padding: var(--space-3); }
  .focus-mode { padding: 0 var(--space-3); }
  .focus-dial { width: min(78vmin, 360px); }
  .focus-main-btn { min-width: 160px; }
  .focus-tip { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .focus-overlay, .focus-ring-bar, .focus-nudge, .focus-main-btn { transition: none; }
}
#focus-custom-fields.hidden { display: none; }

/* 1.37.1: presets above the modes in the top left, same pill style. */
.focus-top-left { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.focus-mode .focus-preset-nums { font-weight: var(--font-weight-body); opacity: 0.7; margin-left: 2px; }
/* Done sits in the timer bar, right after the $ (1.37.1). */
.focus-fields .timer-bar #focus-fields-done { height: var(--btn-h-md); padding: 0 var(--space-5); flex: none; }
/* 2.3.6 (Omar): Clock In in the fields looks like the Tracker's merged Clock
   In (tracker/timer-bar.css .timer-ctl): theme color, bold, as wide as the
   Tracker's Stop and Play together. Done and Save And End stay as they are. */
.focus-fields .timer-bar #focus-fields-done.is-clock-in {
  height: var(--btn-h-lg); min-width: calc(var(--btn-h-lg) * 2 + var(--space-2)); padding: 0 var(--space-4);
  border: none; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent-strong);
  font-weight: var(--weight-bold); font-size: var(--font-size-md);
}
.focus-fields .timer-bar #focus-fields-done.is-clock-in:hover { background: var(--accent-dark); }

/* Tick marks (1.37.2), inside the ring, spaced for the session's length.
   1.37.4: back to the thin marks (the bold 1.37.3 bars didn't match). */
.focus-ticks line { stroke: color-mix(in srgb, var(--ink) 38%, transparent); stroke-width: 2; stroke-linecap: round; }
.focus-ticks .ft-tick-minor { stroke-width: 1.2; stroke: color-mix(in srgb, var(--ink) 20%, transparent); }
.focus-ticks .ft-tick-zero { stroke: var(--focus-hue); stroke-width: 3; }
.focus-dial.no-ring .focus-ticks { display: none; }

/* ============================================================
   CLOCK FACES (1.37.3): Classic, LED, Flip Clock
   #focus-dial gets data-face. Classic shows #focus-clock only. LED and
   Flip draw into #focus-face and keep #focus-clock for screen readers;
   while the clock shows words (Break Time) the words show instead.
   ============================================================ */
.focus-face, .focus-line { display: none; }
.focus-dial[data-face="led"]:not(.is-words) .focus-face,
.focus-dial[data-face="flip"]:not(.is-words) .focus-face,
.focus-dial[data-face="stacked"]:not(.is-words) .focus-face { display: block; }
.focus-dial[data-face="led"]:not(.is-words) .focus-clock,
.focus-dial[data-face="flip"]:not(.is-words) .focus-clock,
.focus-dial[data-face="stacked"]:not(.is-words) .focus-clock,
.focus-dial[data-face="analog"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* LED: seven segment digits inside the ring, in the mode color (focus,
   soft landing, break, paused). 1.37.4: no dark panel, just the digits. */
.led-svg { display: block; width: min(29vmin, 270px); height: auto; }
.led-off { fill: var(--focus-hue); opacity: 0.08; }
.led-on { fill: var(--focus-hue); transition: fill 600ms ease; }

/* Flip Clock and Stacked: no ring, a line underneath. */
.focus-dial[data-face="flip"], .focus-dial[data-face="stacked"] { width: auto; aspect-ratio: auto; padding: var(--space-5) 0; }
.focus-dial[data-face="flip"] .focus-ring, .focus-dial[data-face="stacked"] .focus-ring { display: none; }
.focus-dial[data-face="flip"] .focus-readout, .focus-dial[data-face="stacked"] .focus-readout { padding: 0; }
.focus-dial[data-face="flip"] .focus-line, .focus-dial[data-face="stacked"] .focus-line { display: block; }
.focus-dial[data-face="flip"].no-ring .focus-line, .focus-dial[data-face="stacked"].no-ring .focus-line { display: none; }

/* Stacked (1.37.4): minutes over seconds, heavy digits, a square block.
   Minutes in the text color, seconds in the mode color. */
.stack-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 2.0.1: iPhone has no Arial Black and its Helvetica Neue stops at Bold,
     so the digits came out thin. -apple-system is San Francisco there, which
     has a real Black (900). Mac and Windows still get Arial Black. */
  font-family: "Arial Black", -apple-system, "Helvetica Neue", "Segoe UI Black", Impact, var(--font-heading), sans-serif;
  font-weight: 900;
  font-size: clamp(80px, 17vmin, 190px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
}
.stack-face.is-wide { font-size: clamp(64px, 13vmin, 150px); }
.stack-min { color: var(--ink); }
.stack-sec { color: var(--focus-hue); transition: color 600ms ease; }

/* Classic Clock (1.37.4): hands inside the ring. The session tick marks
   are hidden; the dial has its own 60 marks. The status line sits under
   the dial instead of over the hands. */
.focus-analog { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.focus-dial[data-face="analog"] .focus-analog { display: block; }
.focus-dial[data-face="analog"] .focus-ticks { display: none; }
.focus-dial[data-face="analog"] { margin-bottom: calc(1.5em + var(--space-4)); }
.focus-dial[data-face="analog"] .focus-readout { position: absolute; top: 100%; left: 0; right: 0; padding: var(--space-3) 0 0; }
.focus-dial[data-face="analog"].no-ring { width: min(50vmin, 420px); aspect-ratio: 1; padding: 0; }
.an-mark { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.5; stroke-linecap: round; }
.an-mark-hour { stroke: color-mix(in srgb, var(--ink) 65%, transparent); stroke-width: 3; }
.an-hand { stroke-linecap: round; }
.an-hour { stroke: var(--ink); stroke-width: 8; }
.an-min { stroke: var(--ink); stroke-width: 5; }
.an-sec { stroke: var(--focus-hue); stroke-width: 2; }
.an-sec-dot { fill: var(--focus-hue); }
.an-cap { fill: var(--paper, #fff); }
.an-window { fill: var(--ink); font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 34px; font-variant-numeric: tabular-nums; } /* 1.46.0: bigger and darker (was 26px, ink-light) */
.flip-row {
  display: flex;
  align-items: center;
  gap: 0.07em;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: clamp(56px, 13vmin, 150px);
  font-variant-numeric: tabular-nums lining-nums;
}
.flip-card {
  --flip-bg: #1E1F22;
  --flip-fg: #F3F3EF;
  --flip-r: 0.07em;
  position: relative;
  width: 0.76em;
  height: 1.12em;
  line-height: 1.12em;
  perspective: 3.5em;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}
/* 2.4.4 (Omar): on a dark background the cards invert, light cards with dark
   numbers, so they stand out instead of melting into the page. */
[data-mode="dark"] .flip-card { --flip-bg: #ECECE6; --flip-fg: #1E1F22; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45)); }
.flip-card > div {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  overflow: hidden;
  background: var(--flip-bg);
  color: var(--flip-fg);
  backface-visibility: hidden;
}
.flip-card span { position: absolute; left: 0; right: 0; height: 200%; text-align: center; }
.flip-top, .flip-leaf-front { top: 0; border-radius: var(--flip-r) var(--flip-r) 0 0; transform-origin: 50% 100%; }
.flip-top span, .flip-leaf-front span { top: 0; }
.flip-bottom, .flip-leaf-back { bottom: 0; border-radius: 0 0 var(--flip-r) var(--flip-r); transform-origin: 50% 0; box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.65); }
.flip-bottom span, .flip-leaf-back span { bottom: 0; }
.flip-top { background: linear-gradient(to bottom, color-mix(in srgb, var(--flip-bg) 88%, #fff), var(--flip-bg)); }
.flip-leaf { visibility: hidden; z-index: 2; }
.flip-leaf-back { transform: rotateX(90deg); }
.flip-card.is-flipping .flip-leaf { visibility: visible; }
.flip-card.is-flipping .flip-leaf-front { animation: flip-fall 300ms ease-in forwards; }
.flip-card.is-flipping .flip-leaf-back { animation: flip-land 300ms ease-out 300ms forwards; }
@keyframes flip-fall { from { transform: rotateX(0deg); } to { transform: rotateX(-90deg); } }
@keyframes flip-land { from { transform: rotateX(90deg); } to { transform: rotateX(0deg); } }
.flip-colon { display: flex; flex-direction: column; justify-content: center; gap: 0.22em; width: 0.2em; align-items: center; }
.flip-colon i { display: block; width: 0.1em; height: 0.1em; border-radius: 2px; background: color-mix(in srgb, var(--ink) 80%, transparent); }

/* The line under the cards: fills left to right as the session goes, with
   the tick marks under it. */
.focus-line { width: 100%; margin-top: var(--space-4); }
.focus-line-track { position: relative; height: 5px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--focus-hue) 16%, transparent); }
.focus-line-fill { position: absolute; inset: 0; background: var(--focus-hue); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s linear, background-color 600ms ease; }
.focus-line-ticks { position: relative; height: 14px; margin-top: 4px; }
.fl-tick { position: absolute; top: 0; width: 2px; height: 10px; border-radius: 1px; transform: translateX(-50%); background: color-mix(in srgb, var(--ink) 38%, transparent); }
.fl-tick-minor { width: 1px; height: 5px; background: color-mix(in srgb, var(--ink) 20%, transparent); }
.fl-tick-zero { width: 3px; background: var(--focus-hue); }
.fl-tick:first-child { transform: none; }
.fl-tick:last-child { transform: translateX(-100%); }
@media (prefers-reduced-motion: reduce) {
  .focus-line-fill { transition: none; }
  .flip-card.is-flipping .flip-leaf { animation: none; visibility: hidden; }
}

/* Colors (1.37.2). Follow The Theme: the theme's accent for focus, its
   warning color for the soft landing, its success color for breaks, and
   tomatoes in the accent with a success-colored leaf. */
.focus-overlay[data-colors="theme"] { --focus-hue: var(--accent); --focus-tomato: var(--accent); --focus-leaf: var(--success); }
.focus-overlay[data-colors="theme"][data-tone="landing"] { --focus-hue: var(--warning); }
.focus-overlay[data-colors="theme"][data-tone="break"] { --focus-hue: var(--success); }
.focus-overlay[data-colors="theme"][data-tone="paused"] { --focus-hue: var(--ink-light); }
/* Tomato Colors: the header takes the same color while the Focus Timer is open. */
html[data-focus-open][data-focus-colors="tomato"] .topbar {
  --chrome-fg: #FFFFFF;
  --chrome-logo-color: #FFFFFF;
  --chrome-hover: rgba(255, 255, 255, 0.18);
  --chrome-border: rgba(0, 0, 0, 0.08);
  --chrome-field-border: rgba(255, 255, 255, 0.35);
  background: #E4572E;
  color: #FFFFFF;
  transition: background-color 600ms ease;
}
html[data-focus-open][data-focus-colors="tomato"][data-focus-tone="landing"] .topbar { background: #D9921C; }
html[data-focus-open][data-focus-colors="tomato"][data-focus-tone="break"] .topbar { background: #2A9483; }
html[data-focus-open][data-focus-colors="tomato"][data-focus-tone="paused"] .topbar { background: #6B7178; }
@media (prefers-reduced-motion: reduce) {
  .focus-overlay, .focus-overlay.open, .focus-fields, .focus-fields.is-open { transition: none; }
}

/* ============================================================
   ZEN (1.38.0): a distraction free skin over the Tracker's timer, in the
   same drawer as the Pomodoro Timer. html[data-focus-view] and the
   overlay's data-view (zen | pomodoro) are set by applyView() in focus.js.
   ============================================================ */
.focus-overlay:not([data-view="zen"]) [data-zen-only] { display: none !important; }
.focus-overlay[data-view="zen"] [data-pomo-only] { display: none !important; }

/* No bottom line in Zen: Flip Clock and Stacked get the square instead. */
.focus-overlay[data-view="zen"] .focus-line { display: none !important; }
.focus-face-wrap { position: relative; display: flex; justify-content: center; }
.focus-overlay[data-view="zen"] .focus-dial[data-face="flip"] .focus-face-wrap,
.focus-overlay[data-view="zen"] .focus-dial[data-face="stacked"] .focus-face-wrap { margin: clamp(16px, 3.4vmin, 36px) clamp(16px, 3.4vmin, 36px); }
.zen-square { position: absolute; overflow: visible; pointer-events: none; }
.zen-square path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.zen-square-track { stroke: color-mix(in srgb, var(--focus-hue) 14%, transparent); }
.zen-square-bar {
  stroke: var(--focus-hue);
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1s linear, stroke 600ms ease;
}
/* 1.54.1: clocked out, the seconds tick the color into Stacked's frame
   and the Numbers ring, then tick it away from the start (paintSeconds),
   a quick snap each second. */
.zen-square-bar.is-tick, .focus-ring-bar.is-tick { transition: stroke-dasharray 160ms cubic-bezier(0.3, 1.3, 0.5, 1), stroke 600ms ease; }

/* Today and budget, where the tomatoes are in Pomodoro. */
.zen-stats { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); width: min(460px, 100%); }
.zen-stat-row { display: flex; justify-content: center; gap: clamp(20px, 5vmin, 56px); }
.zen-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.zen-stat-value { font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: clamp(18px, 2.6vmin, 26px); color: var(--ink); font-variant-numeric: tabular-nums; }
.zen-stat.is-money .zen-stat-value { color: var(--accent); } /* 1.39.1: accent, not green */
.zen-stat-label { font-size: var(--font-size-sm); color: var(--ink-light); }
.zen-budget { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.zen-budget-head { display: flex; justify-content: space-between; font-weight: var(--weight-bold); color: var(--ink); }
.zen-budget-bar { height: 6px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--accent) 15%, transparent); }
.zen-budget-bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; }
.zen-budget.is-warn .zen-budget-bar span { background: var(--warning); }
.zen-budget.is-over .zen-budget-bar span { background: var(--danger, var(--warning)); }
/* 1.39.4: the Tracker's budget colors (budgetLevel in app.js): accent, then
   warning from the last milestone under 100%, then danger when over. The
   percent takes the color too, like the Tracker's pill. */
/* 1.41.0: accent at every level, like the Tracker's budget pill. */
.zen-budget .zen-budget-bar span,
.zen-budget.is-warn .zen-budget-bar span,
.zen-budget.is-over .zen-budget-bar span { background: var(--accent-text, var(--accent)); }
.zen-budget-text { font-size: var(--font-size-sm); color: var(--ink-light); text-align: center; }

/* Break line (1.38.0): along the bottom of the Tracker's timer bar,
   filling toward the next break reminder. Not inside the drawer. */
.timer-break-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; border-radius: 0 0 var(--radius-xs) var(--radius-xs); background: color-mix(in srgb, var(--accent) 12%, transparent); pointer-events: none; }
.timer-break-fill { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s linear; }
.focus-fields .timer-break-line { display: none; }
/* 1.43.0: on a break (Tracker Pause) the line is green and empties over the break. */
.timer-break-line[data-mode="break"] { background: color-mix(in srgb, var(--success) 14%, transparent); }
.timer-break-line[data-mode="break"] .timer-break-fill { background: var(--success); }
@media (prefers-reduced-motion: reduce) {
  .zen-square-bar, .timer-break-fill { transition: none; }
}
.zen-square.hidden, .timer-break-line.hidden { display: none; }

/* ============================================================
   1.38.1: two header buttons (Zen | Pomodoro), pill style Close and
   Full Screen, face arrows, and Zen's note during a Pomodoro session.
   ============================================================ */
/* 1.39.0: one group like the Light / Dark / System switch: same button
   size, same 2px gap, no line between Zen and Pomodoro. */
.focus-launchers { display: inline-flex; align-items: center; gap: 2px; }
.focus-launchers.hidden { display: none; }
.focus-launchers .focus-open-btn svg { opacity: 0.45; }
.focus-launchers .focus-open-btn:hover svg, .focus-launchers .focus-open-btn:focus-visible svg { opacity: 0.85; }
.focus-launchers .focus-open-btn[aria-expanded="true"] svg { opacity: 1; }
/* 1.39.3: a running clock no longer darkens its icon (it stood out from the
   rest of the header); the colored dot alone says it's running. */
/* 2.9.0: the running dots moved to one dot next to Tracker in the Side Nav. */

/* Full Screen and Close: one pill row on the right (1.39.0). */
.focus-top-actions { flex-direction: row; align-items: flex-start; transition: opacity 300ms ease; }
.focus-pill-btn { display: inline-flex; align-items: center; gap: 6px; }
.focus-pill-btn svg { flex: none; }
/* Icons for the preset and mode pills, shown only on a phone (see PHONE
   LAYOUT at the end of this file). */
.focus-pill-icon { display: none; }
/* Icons on End Session, Skip and Clock Out, also shown only on a phone
   (Breathe's icon shows everywhere). */
.focus-side-icon { display: none; }

/* Clock face arrows (1.39.0): pinned at the same spot whatever the face's
   width, so you can click through faces without moving the mouse. They
   fade in while the mouse moves and out after 2 seconds still. */
.focus-dial-row { position: relative; display: flex; align-items: center; justify-content: center; width: min(92vw, 760px); max-width: 100%; padding: 0 56px; box-sizing: border-box; }
.focus-face-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: color-mix(in srgb, var(--focus-hue) 10%, transparent);
  color: var(--ink-light);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 300ms ease, color 150ms ease;
}
#focus-face-prev { left: 0; }
#focus-face-next { right: 0; }
/* 2.0.1: above the face, so a face wider than its box (Flip Clock and
   Speedo And Tach on a phone) never covers them. */
.focus-face-arrow { z-index: 2; }
.focus-face-arrow:hover, .focus-face-arrow:focus-visible { opacity: 1; color: var(--ink); }
/* 1.39.2: the face arrows, Full Screen and Close, the presets and modes
   and the recent cards all fade together (full screen or not); the mouse,
   a click, a key or coming back to the tab brings them back. */
.focus-top-left, .focus-top-actions { transition: opacity 400ms ease; }
.focus-overlay.is-still .focus-face-arrow:not(:focus-visible),
.focus-overlay.is-still .focus-top-left:not(:hover):not(:has(:focus-visible)),
.focus-overlay.is-still .focus-top-actions:not(:hover):not(:has(:focus-visible)) { opacity: 0; pointer-events: none; }
html[data-focus-fullscreen] .focus-overlay.is-still { cursor: none; }
.focus-face-arrow:focus-visible { outline: 2px solid var(--focus-ring, var(--ink)); outline-offset: 2px; }
.focus-face-name { height: 0; margin-top: calc(-1 * var(--space-3)); overflow: visible; font-size: var(--font-size-sm); color: var(--ink-light); opacity: 0; pointer-events: none; }
.focus-face-name.is-shown { animation: face-name 1.6s ease forwards; }
@keyframes face-name { 0% { opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }

/* Zen while a Pomodoro session runs: just the note. */
.zen-note { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); color: var(--ink-light); max-width: 40ch; }
.focus-overlay:not(.zen-blocked) .zen-note { display: none !important; }
.focus-overlay.zen-blocked .focus-dial-row,
.focus-overlay.zen-blocked .focus-face-name,
.focus-overlay.zen-blocked .zen-stats,
.focus-overlay.zen-blocked .focus-controls,
.focus-overlay.zen-blocked .focus-what-wrap { display: none !important; }
/* 2.6.0: nothing running and the idle clock switched off (idleBlank in
   focus.js): the face is empty. visibility keeps the space, so the buttons
   don't jump when a timer starts. Breathing still shows. */
.focus-overlay.is-idle-blank .focus-dial > :not(.focus-readout):not(.breathe-stage),
.focus-overlay.is-idle-blank .focus-readout > :not(.focus-status),
.focus-overlay.is-idle-blank .focus-face-arrow,
.focus-overlay.is-idle-blank .focus-face-name { visibility: hidden; }

/* ============================================================
   1.39.0
   ============================================================ */
/* Zen's frame: always there on Flip Clock and Stacked; the fill only with
   the break line on. More room around Stacked's square. */
.zen-square.no-fill .zen-square-bar { display: none; }
.focus-overlay[data-view="zen"] .focus-dial[data-face="stacked"] .focus-face-wrap { margin: clamp(30px, 6vmin, 64px); }
.zen-btn-icon { flex: none; }
.focus-overlay[data-view="zen"] .focus-main-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Punch Clock: the logo as a clock. No ring; the body's outline is the
   progress. Body in the text color, face in the page color. */
.focus-dial[data-face="punch"]:not(.is-words) .focus-face,
.focus-dial[data-face="tach"]:not(.is-words) .focus-face { display: block; }
.focus-dial[data-face="punch"]:not(.is-words) .focus-clock,
.focus-dial[data-face="tach"]:not(.is-words) .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="punch"], .focus-dial[data-face="tach"] { width: auto; aspect-ratio: auto; padding: var(--space-3) 0; }
.focus-dial[data-face="punch"] .focus-ring, .focus-dial[data-face="punch"] .focus-line,
.focus-dial[data-face="tach"] .focus-ring, .focus-dial[data-face="tach"] .focus-line { display: none !important; }
.focus-dial[data-face="punch"] .focus-readout, .focus-dial[data-face="tach"] .focus-readout { padding: 0; }
.punch-face { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.punch-svg { display: block; height: min(46vmin, 400px); width: auto; overflow: visible; }
.pc-card-body { fill: var(--paper); stroke: var(--ink); stroke-width: 14; }
.pc-hole { fill: var(--ink); }
.pc-hole.is-new { animation: pc-hole 500ms ease-out 250ms both; transform-box: fill-box; transform-origin: center; }
.pc-body { fill: var(--ink); }
.pc-progress { fill: none; stroke: var(--focus-hue); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s linear, stroke 600ms ease; }
.pc-dial { fill: var(--paper); }
.pc-mark { stroke: var(--ink); stroke-width: 14; stroke-linecap: round; }
.pc-hand { stroke-linecap: round; }
.pc-hour { stroke: var(--ink); stroke-width: 18; }
.pc-min { stroke: var(--ink); stroke-width: 14; }
.pc-sec { stroke: var(--focus-hue); stroke-width: 5; }
.pc-cap { fill: var(--ink); }
.punch-digits { font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: clamp(20px, 3vmin, 30px); color: var(--ink-light); font-variant-numeric: tabular-nums; }
/* The punch: the card lifts out and slams back in, the body jolts. */
.punch-svg.is-punching .pc-card { animation: pc-card 700ms cubic-bezier(0.3, 0, 0.2, 1); }
.punch-svg.is-punching .pc-body-g { animation: pc-jolt 700ms ease-out; }
@keyframes pc-card { 0% { transform: translateY(0); } 35% { transform: translateY(-70px); } 55% { transform: translateY(8px); } 70% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes pc-jolt { 0%, 50% { transform: translateY(0); } 58% { transform: translateY(7px); } 72% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
@keyframes pc-hole { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Settings > Pomodoro Timer and Zen Clock: more room between rows and
   sections, labels in one column, long notes under the number. */
/* 1.55.0: the spacing (headings, dividers, rows, notes) is now the same
   on every Settings page, see SETTINGS SPACING in settings/settings.css. */
#settings-page-focus .field-row, #settings-page-zen .field-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto 1fr;
  align-items: center;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
}
#settings-page-focus .field-row .field-unit { max-width: 52ch; line-height: 1.45; }
#settings-page-focus .theme-appearance, #settings-page-zen .theme-appearance { margin-bottom: 0; }
#settings-page-focus .theme-appearance-label, #settings-page-zen .theme-appearance-label { min-width: 120px; }
#settings-page-focus .switch-row, #settings-page-zen .switch-row { align-items: flex-start; }
#settings-page-focus .switch-desc, #settings-page-zen .switch-desc { max-width: 62ch; line-height: 1.45; }
@media (max-width: 700px) {
  #settings-page-focus .field-row { grid-template-columns: 1fr auto; }
  #settings-page-focus .field-row .field-unit { grid-column: 1 / -1; }
}

/* Every dialog eases in (1.39.0): the backdrop fades, the card rises and
   grows a little, so nothing jumps at you. */
.modal:not(.hidden) { animation: modal-fade 180ms ease-out; }
.modal:not(.hidden) > .modal-card { animation: modal-rise 240ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.alert-card:not(.hidden) { animation: alert-rise 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes alert-rise { from { opacity: 0; transform: translate(-50%, 12px) scale(0.97); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal:not(.hidden), .modal:not(.hidden) > .modal-card, .alert-card:not(.hidden),
  .punch-svg.is-punching .pc-card, .punch-svg.is-punching .pc-body-g, .pc-hole.is-new { animation: none; }
}

/* ============================================================
   1.39.1
   ============================================================ */
/* Tachometer: bezel, face, numbers, red zone past 10, a small LCD screen
   and the needle (in the mode color). 1.46.0: the numbers are tens of the
   timer's minutes; at 12 (120 minutes) it bounces at the limiter. */
.tach-face { display: flex; justify-content: center; }
.tach-svg { display: block; width: min(52vmin, 440px); height: auto; overflow: visible; }
.tc-bezel { fill: color-mix(in srgb, var(--ink) 88%, transparent); }
.tc-face { fill: var(--paper); }
.tc-redzone { fill: none; stroke: #E4572E; stroke-width: 10; opacity: 0.85; }
.tc-tick { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.tc-tick.is-major { stroke-width: 5; opacity: 1; }
.tc-tick.is-red { stroke: #E4572E; opacity: 1; }
.tc-num { fill: var(--ink); font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 30px; font-style: italic; }
.tc-num.is-red { fill: #E4572E; }
.tc-unit { fill: var(--ink-light); font-family: var(--font-heading); font-size: 13px; letter-spacing: 0.12em; }
.tc-screen { fill: #111316; stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 2; }
.tc-screen-label { fill: color-mix(in srgb, var(--focus-hue) 70%, #fff); font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.18em; opacity: 0.8; }
.tc-screen-text { fill: var(--focus-hue); font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.tc-needle { transform-box: view-box; transform-origin: 200px 200px; transition: transform 1.4s cubic-bezier(0.2, 0.9, 0.25, 1); }
.tc-needle path { fill: var(--focus-hue); }
.tc-needle .tc-needle-tail { fill: var(--ink); }
.tc-cap { fill: var(--ink); }
.tc-cap-dot { fill: var(--focus-hue); }
.tach-svg.is-limiter .tc-needle { animation: tc-limiter 140ms ease-in-out infinite alternate; transition: none; }
.tach-svg.is-limiter .tc-redzone { animation: tc-red 280ms ease-in-out infinite alternate; }
@keyframes tc-limiter { from { transform: rotate(var(--tc-lo)); } to { transform: rotate(var(--tc-hi)); } }
@keyframes tc-red { from { opacity: 0.55; } to { opacity: 1; } }
.tach-preview-row { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-4); }
.tach-preview .tach-svg { width: 180px; }
.tach-preview .hy-svg { width: 180px; display: block; height: auto; overflow: visible; } /* 1.46.0: Hygrometer preview */
.tach-preview .al-svg { width: 180px; display: block; height: auto; overflow: visible; } /* 1.56.0: Altimeter preview */
.tach-preview { --focus-hue: var(--accent); }

/* Zen's last 3 projects: a stack of cards, fanned out on hover; faded
   with the arrows while the mouse is still. 1.39.2: closed, the cards
   behind show as two slivers under the front one (like a stack of
   notifications), not tilted back into the page, and they still fan out
   downward. */
.zen-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.zen-card-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.zen-card-name { font-weight: var(--weight-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zen-card-desc { font-size: var(--font-size-sm); color: var(--ink-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zen-card-when { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--focus-hue); }

/* Achievements (1.39.1): the card you came from pulses once. */
.ach-card.is-spotlight { animation: ach-spot 1.1s ease-out 2; }
@keyframes ach-spot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .tach-svg.is-limiter .tc-needle, .tach-svg.is-limiter .tc-redzone, .ach-card.is-spotlight { animation: none; }
  .tc-needle { transition: none; }
}


/* Settings > Zen Clock > Header icon (1.39.2): each icon at its real 18px
   header size in a tile the size of a header button, name under it. */
.zen-icon-picker { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.zen-icon-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: var(--space-2) 0; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-muted); }
.zen-icon-opt:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.zen-icon-tile { display: grid; place-items: center; width: var(--btn-h-sm); height: var(--btn-h-sm); border-radius: var(--radius-sm); }
.zen-icon-name { font-size: var(--font-size-xs); text-align: center; line-height: 1.2; }
.zen-icon-opt:has(input:checked) { color: var(--ink); }
.zen-icon-opt:has(input:checked) .zen-icon-tile { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.zen-icon-opt:has(input:focus-visible) .zen-icon-tile { outline: 2px solid var(--focus-ring, var(--ink)); outline-offset: 2px; }

/* ============================================================
   CLOCK LAYOUT (1.39.3)
   Every face sits in the same box, --dial tall, centered on the face
   arrows, so clicking through the faces nothing jumps. The text under a
   face (next break, time left) sits in a reserved line under the box
   instead of inside it, and the top controls (presets, modes, cards, Full
   Screen, Close) float over the drawer instead of pushing the clock down,
   so the clock sits higher and the buttons fit with a budget showing.
   ============================================================ */
.focus-overlay { --dial: clamp(220px, min(44vmin, 100vh - 450px), 420px); } /* shrinks on short windows so the buttons fit */
@media (max-width: 600px) { .focus-overlay { --dial: min(78vmin, 360px); } }
.focus-top { position: absolute; top: 56px; left: 0; right: 0; z-index: 5; pointer-events: none; }
.focus-top > * { pointer-events: auto; }
html[data-focus-fullscreen] .focus-top { top: 0; }
.focus-center { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.focus-dial { width: var(--dial); }
.focus-dial.no-ring, .focus-dial[data-face="flip"], .focus-dial[data-face="stacked"],
.focus-dial[data-face="punch"], .focus-dial[data-face="tach"] { width: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="analog"].no-ring { width: var(--dial); }
.focus-dial-row { height: var(--dial); margin-bottom: calc(1.5em + var(--space-2)); }
.focus-dial[data-face="analog"] { margin-bottom: 0; }
.focus-dial[data-face="flip"] .focus-status, .focus-dial[data-face="stacked"] .focus-status,
.focus-dial[data-face="punch"] .focus-status, .focus-dial[data-face="tach"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
/* 2.4.4 (Omar): Classic Clock's message (the break starts by itself) wrapped
   to the clock's width and covered the tomatoes. Now one wide line under the
   clock, like the faces above. */
.focus-dial[data-face="analog"] .focus-readout { left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: 60vw; padding-top: var(--space-2); }
.focus-dial[data-face="analog"] .focus-status { max-width: 60vw; text-align: center; }
.tach-svg { width: var(--dial); }
.punch-svg { height: var(--dial); } /* 1.42.0: the digits moved onto the dial, so the whole box is the clock */

/* Settings > Clock face previews (1.39.3): a small drawing of each face
   above its name; the picked one gets the accent frame. */
.face-picker { display: flex; flex-wrap: wrap; gap: var(--space-2); --face-accent: var(--accent); --face-bg: var(--paper); }
.face-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: var(--space-3) var(--space-2) var(--space-2); border-radius: var(--radius-md, 10px); cursor: pointer; color: var(--ink); border: 1.5px solid transparent; }
.face-opt:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.face-thumb { display: grid; place-items: center; width: 72px; height: 72px; opacity: 0.8; }
.face-thumb svg { display: block; overflow: visible; }
.face-opt-name { font-size: var(--font-size-xs); color: var(--text-muted); text-align: center; line-height: 1.2; }
.face-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.face-opt:has(input:checked) .face-thumb { opacity: 1; }
.face-opt:has(input:checked) .face-opt-name { color: var(--ink); font-weight: var(--weight-bold); }
.face-opt:has(input:focus-visible) { outline: 2px solid var(--focus-ring, var(--ink)); outline-offset: 2px; }

/* 1.39.3: the digits scale with the face box (--dial), not the window, so
   they stay inside their ring or frame on short windows too. Same
   proportions as before at full size. */
/* 1.46.0: 00:00:00 is 8 characters (was 5), so the digits are smaller to stay inside the ring. */
.focus-clock { font-size: clamp(28px, calc(var(--dial) * 0.155), 84px); white-space: nowrap; }
.focus-clock.is-words { font-size: clamp(32px, calc(var(--dial) * 0.17), 84px); }
.led-svg { width: calc(var(--dial) * 0.62); }
.stack-face { font-size: clamp(56px, calc(var(--dial) * 0.36), 190px); }
.stack-face.is-wide { font-size: clamp(48px, calc(var(--dial) * 0.28), 150px); }
.flip-row { font-size: clamp(44px, calc(var(--dial) * 0.28), 150px); }
.focus-overlay[data-view="zen"] .focus-dial[data-face="stacked"] .focus-face-wrap { margin: calc(var(--dial) * 0.17); } /* 1.46.0: room for the heavy frame (was 0.1) */

/* Zen Clock Out (1.39.4): the smaller button in front of Clock In / Break. */
#zen-clockout-btn.hidden { display: none; }

/* ============================================================
   1.41.0: steady digits. setFixedHtml / setFixedSvg in focus.js put
   every digit in a box of the same width, so a running clock no longer
   shifts sideways as a 1 turns into an 8.
   ============================================================ */
.fx-d { display: inline-block; width: 0.64em; text-align: center; letter-spacing: 0; }
.fx-c { display: inline-block; width: 0.34em; text-align: center; letter-spacing: 0; }
.fx-cell { letter-spacing: 0; }

/* ============================================================
   RESUME PREVIOUS (1.41.0), Zen's top left
   A pill like Settings / Full Screen / Close. Pointing at it (or clicking
   it) drops the recent projects down under it, one after another. The
   look of the list is #zen-recent[data-style]: cards (default), pills,
   chips or menu (Settings > Dev > Resume Previous styles).
   ============================================================ */
.zen-resume { position: relative; z-index: 6; display: inline-flex; flex-direction: column; align-items: flex-start; transition: opacity 300ms ease; }
.zen-resume.hidden { display: none; }
.focus-overlay.is-still .zen-resume:not(:hover):not(.is-hover):not(.is-open):not(:has(:focus-visible)) { opacity: 0; pointer-events: none; }
.zen-resume-chev { transition: transform 240ms ease; opacity: 0.7; }
.zen-resume.is-hover .zen-resume-chev, .zen-resume.is-open .zen-resume-chev { transform: rotate(180deg); }
.zen-resume.is-hover #zen-resume-btn, .zen-resume.is-open #zen-resume-btn { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.zen-recent {
  position: absolute; top: 100%; left: 0;
  padding: 8px 24px 24px 0; /* hover bridge: no gap between the pill and the list; 1.41.1: 24px of slack right and below */
  width: 260px;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  pointer-events: none;
  /* 1.47.0: up to 20 (Settings > Zen Clock > How many): a long list scrolls
     inside the window. 6px of room left so the cards' shadows show. */
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  margin-left: -6px; padding-left: 6px;
}
.zen-resume.is-static .zen-recent { max-height: none; overflow: visible; }
.zen-recent > * {
  flex: none;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  /* 1.47.0: the drop delay stops growing after the 8th, so a long list is quick */
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(min(var(--i, 0), 8) * 40ms), opacity 200ms ease calc(min(var(--i, 0), 8) * 40ms), box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease;
}
.zen-resume.is-hover .zen-recent, .zen-resume.is-open .zen-recent, .zen-resume:has(:focus-visible) .zen-recent { pointer-events: auto; }
.zen-resume.is-hover .zen-recent > *, .zen-resume.is-open .zen-recent > *, .zen-resume:has(:focus-visible) .zen-recent > * { opacity: 1; transform: none; }

/* Cards (default): the 1.39 cards, now dropping from the pill. */
.zen-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px;
  text-align: left; font: inherit; color: var(--ink);
  background: var(--surface, var(--paper));
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  cursor: pointer;
}
.zen-card:hover, .zen-card:focus-visible { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16); border-color: var(--focus-hue); }

/* Pills: one pill per project, the shape of the button above. */
.zen-recent[data-style="pills"] { gap: 6px; }
.zr-pill {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  height: var(--btn-h-sm); padding: 0 14px;
  font: inherit; font-size: var(--font-size-sm); color: var(--ink); text-align: left;
  background: color-mix(in srgb, var(--focus-hue) 10%, var(--paper));
  border: none; border-radius: var(--radius-pill); cursor: pointer;
}
.zr-pill:hover, .zr-pill:focus-visible { background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.zr-pill .zr-name { flex: none; max-width: 45%; font-weight: var(--weight-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zr-pill .zr-desc { flex: 1; min-width: 0; color: var(--ink-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zr-pill .zr-when { flex: none; font-size: 12px; color: var(--focus-hue); }

/* Chips: only the names, small and side by side. */
.zen-recent[data-style="chips"] { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 6px; width: 300px; }
.zr-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  height: 28px; padding: 0 12px;
  font: inherit; font-size: 13px; font-weight: var(--weight-medium); color: var(--ink);
  background: color-mix(in srgb, var(--focus-hue) 10%, var(--paper));
  border: none; border-radius: var(--radius-pill); cursor: pointer;
}
.zr-chip .zr-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zr-chip:hover, .zr-chip:focus-visible { background: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }

/* Menu: one quiet panel, rows split by hairlines. */
.zen-recent[data-style="menu"] { gap: 0; }
.zen-recent[data-style="menu"] > * { background: var(--surface, var(--paper)); border-left: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); border-right: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.zen-recent[data-style="menu"] > :first-child { border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); border-radius: 12px 12px 0 0; }
.zen-recent[data-style="menu"] > :last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); border-radius: 0 0 12px 12px; }
.zen-recent[data-style="menu"] > :only-child { border-radius: 12px; }
.zr-row {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 8px 14px;
  font: inherit; color: var(--ink); text-align: left;
  border: none; border-radius: 0; cursor: pointer;
}
.zr-row + .zr-row { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent); }
.zr-row:hover, .zr-row:focus-visible { background: color-mix(in srgb, var(--focus-hue) 8%, var(--paper)); }
.zr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zr-row .zr-name { font-size: var(--font-size-sm); font-weight: var(--weight-bold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zr-row .zr-desc { font-size: 12px; color: var(--ink-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zr-row .zr-when { flex: none; font-size: 12px; color: var(--text-muted); }
.zr-pill:focus-visible, .zr-chip:focus-visible, .zr-row:focus-visible, .zen-card:focus-visible { outline: 2px solid var(--focus-ring, var(--ink)); outline-offset: 2px; }

/* 1.47.0 (Omar): the cards, pills, chips and menu rows have the same color
   as the pill groups above them (Resume Previous, Settings / Full Screen /
   Close): a 10% tint of the mode color over the drawer's background. Mixed
   into the drawer's color, not laid over it, so they stay solid over the
   clock. They were the tint mixed into plain paper, close to invisible. */
.zen-recent { --zr-bg: color-mix(in srgb, var(--focus-hue) 10%, var(--focus-bg, var(--paper))); }
.zen-recent .zen-card, .zen-recent .zr-pill, .zen-recent .zr-chip,
.zen-recent[data-style="menu"] > * { background: var(--zr-bg); }
.zen-recent .zen-card { border-color: transparent; }
.zen-recent .zen-card:hover, .zen-recent .zen-card:focus-visible,
.zen-recent .zr-pill:hover, .zen-recent .zr-pill:focus-visible,
.zen-recent .zr-chip:hover, .zen-recent .zr-chip:focus-visible,
.zen-recent[data-style="menu"] > :hover, .zen-recent[data-style="menu"] > :focus-visible { background: var(--paper); }

/* 1.47.0 (Omar): Records. No when column (focus.js leaves it out); the
   list is wider and the description gets up to 2 lines, so records that
   share a project can be told apart. */
.zen-recent[data-by="records"] { width: 340px; }
.zen-recent[data-by="records"] .zen-card-desc:not(.zen-card-extra),
.zen-recent[data-by="records"] .zr-row .zr-desc,
.zen-recent[data-by="records"] .zr-pill .zr-desc {
  white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.zen-recent[data-by="records"] .zr-pill { height: auto; min-height: var(--btn-h-sm); padding-top: 6px; padding-bottom: 6px; border-radius: 16px; line-height: 1.3; }
.zen-recent[data-by="records"] .zr-pill .zr-name { max-width: 40%; }

/* Settings > Dev > Resume Previous styles: each look shown open. */
.zen-recent-lab { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); margin: var(--space-3) 0; --focus-hue: var(--accent); }
.zr-lab-card { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); border: 1.5px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; background: color-mix(in srgb, var(--accent) 4%, var(--paper)); }
.zr-lab-card.is-picked { border-color: var(--accent); }
.zr-lab-head { display: flex; align-items: center; gap: var(--space-2); }
.zr-lab-name { font-weight: var(--weight-bold); }
.zr-lab-desc { font-size: var(--font-size-sm); color: var(--text-muted); }
.zr-lab-stage { display: block; padding-top: var(--space-3); }
.zen-resume.is-static, .zen-resume.is-static * { pointer-events: none !important; }
.zen-resume.is-static .zen-recent { position: static; }
.zen-resume.is-static .zen-recent > * { opacity: 1; transform: none; transition: none; }
.zen-resume.is-static .focus-mode { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.zen-resume.is-static .zen-resume-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .zen-recent > *, .zen-resume-chev { transition: none; }
}

/* ============================================================
   1.41.1
   ============================================================ */
/* Controls: 3 columns, so the main button (Clock In, Break, Back To Work,
   Start) is always dead center. Left column: End Session / Clock Out,
   pushed against it. Right column: Breathe, Skip and anything later. */
.focus-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-4);
  width: min(760px, 100%);
}
.focus-controls-side { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.focus-controls-side.is-left { justify-content: flex-end; }
.focus-controls-side.is-right { justify-content: flex-start; }
@media (max-width: 600px) {
  .focus-controls { column-gap: var(--space-2); }
  .focus-controls-side { flex-direction: column; }
  .focus-controls-side.is-left { align-items: flex-end; }
  .focus-controls-side.is-right { align-items: flex-start; }
}

/* Health tips float over the bottom of the clock (Zen and Pomodoro), so
   the clock never moves when a break starts or ends. They fade and rise
   in instead of popping in. */
.focus-dial-row > .focus-tip {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  width: max-content;
  max-width: min(560px, calc(100% - 24px));
  box-sizing: border-box;
  background: color-mix(in srgb, var(--focus-hue) 10%, var(--paper-raised, var(--paper)));
  border: 1px solid color-mix(in srgb, var(--focus-hue) 22%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  transform: translate(-50%, 30%);
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}
.focus-dial-row > .focus-tip.hidden {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(30% + 10px));
  transition: opacity 240ms ease, transform 300ms ease, visibility 0s linear 300ms;
}
.focus-overlay.is-breathing .focus-dial-row > .focus-tip { display: none; }
/* 1.47.0: the clock out summary (today on that project), a tip with two lines. */
.focus-summary-main { display: block; font-weight: var(--weight-bold); }
.focus-summary-sub { display: block; margin-top: 2px; font-size: var(--font-size-sm); color: var(--ink-light); }
.focus-summary-sub:empty { display: none; }
@media (max-width: 600px) {
  .focus-dial-row > .focus-tip { width: calc(100% - 24px); flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .focus-dial-row > .focus-tip, .focus-dial-row > .focus-tip.hidden { transition: none; }
}
/* The clock's colors ease between work and break too. */
.focus-clock, .focus-face, .focus-status { transition: color 600ms ease; }

/* Settings > Pomodoro Timer and Zen Clock: Sound rows (the select and Test
   Sound side by side at their normal size, Volume on its own row), lined
   up with the other rows instead of indented. */
#settings-page-focus .rule-fields, #settings-page-zen .rule-fields { margin-left: 0; }
.field-controls { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.field-controls select { min-width: 180px; }
.field-controls .btn-secondary { height: var(--btn-h-md); padding: 0 var(--space-4); white-space: nowrap; }
.field-controls input[type="range"] { width: 180px; }
#settings-page-focus .sound-row, #settings-page-zen .sound-row { grid-template-columns: minmax(180px, 260px) 1fr; }

/* Settings > Reminders: Break length sits with the break fields but is
   not dimmed by the switch (Zen uses it either way). */
.rule-indent { margin: 0 0 var(--space-3) 58px; }

.topbar-sep-lead { margin-right: 2px; }

/* Settings > Dev > Tracker header icon. */
.tracker-icon-lab { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.ti-opt { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); width: 112px; padding: var(--space-3) var(--space-2); border: 1.5px solid transparent; border-radius: var(--radius-md, 10px); cursor: pointer; color: var(--ink); }
.ti-opt:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ti-opt.is-picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ti-opt:has(input:focus-visible) { outline: 2px solid var(--focus-ring, var(--ink)); outline-offset: 2px; }
.ti-sizes { display: flex; align-items: center; gap: var(--space-4); height: 40px; }
.ti-real { position: relative; display: grid; place-items: center; width: var(--btn-h-sm); height: var(--btn-h-sm); border-radius: var(--radius-sm); background: var(--chrome-bg, color-mix(in srgb, var(--ink) 6%, transparent)); color: var(--chrome-fg, var(--ink)); }
.ti-dot { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: #2E9F5B; } /* the running color, so the dot is always shown here */
.ti-name { font-size: var(--font-size-xs); text-align: center; }

/* ============================================================
   1.41.2
   ============================================================ */
/* Drawer swap (drawerSwap in focus.js): the clicked view (Tracker, Zen or
   Pomodoro) slides down from under the header over the one you were on.
   The old view is a still picture; the header never moves. */
.focus-overlay.no-anim, .focus-overlay.no-anim.open { transition: none; }
.topbar { view-transition-name: clockin-topbar; }
::view-transition-group(clockin-topbar) { animation: none; z-index: 2; }
::view-transition-old(clockin-topbar), ::view-transition-new(clockin-topbar) { animation: none; }
html.vt-drawer::view-transition-group(root) { animation: none; }
html.vt-drawer::view-transition-old(root) { animation: none; }
html.vt-drawer::view-transition-new(root) {
  animation: vt-drawer-in 405ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
@keyframes vt-drawer-in { from { transform: translateY(-100%); } to { transform: none; } }
/* 1.47.0: the clocks live above the page (focus.js toggleOverlay, closeDrawer).
   push-down: the clock comes down and pushes the page down out of the window.
   push-up: the clock goes up and the page comes up from below. */
html.vt-drawer.vt-push-down::view-transition-old(root) { animation: vt-push-out-down 405ms cubic-bezier(0.16, 1, 0.3, 1); }
html.vt-drawer.vt-push-up::view-transition-old(root) { animation: vt-push-out-up 355ms cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
html.vt-drawer.vt-push-up::view-transition-new(root) { animation: vt-push-in-up 355ms cubic-bezier(0.16, 1, 0.3, 1); box-shadow: none; }
@keyframes vt-push-out-down { from { transform: none; } to { transform: translateY(100%); } }
@keyframes vt-push-out-up { from { transform: none; } to { transform: translateY(-100%); } }
@keyframes vt-push-in-up { from { transform: translateY(100%); } to { transform: none; } }
/* 1.47.0: no rubber band bounce at the top of the page or the drawer's
   bottom: scrolling past them pulls the drawer instead (PULL TO OPEN). */
/* 2.9.9 (Omar: no mouse wheel scrolling in Safari): Safari on a Mac stops
   mouse wheel scrolling when the page root has this, so it is left out
   there (html.is-mac-safari, set by wirePull in focus.js). A mouse wheel
   never bounces anyway; the pull still works. */
html:not(.is-mac-safari) { overscroll-behavior-y: none; }
/* 1.47.0: the double arrow at the bottom edge of the drawer, which is the
   edge you see in the strip: up while pulling the clock down, down while
   going back to the page. Fixed inside the moving drawer, so it rides on
   its edge. It brightens and lifts as the hold runs (--pull-hold, 0 to 1). */
.pull-hint {
  position: fixed; left: 50%; bottom: 8px; z-index: 30;
  color: var(--focus-hue); opacity: 0; pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
}
.pull-hint svg { display: block; transition: transform 120ms ease; transform: translateY(calc(var(--pull-hold, 0) * -5px)) scale(calc(1 + var(--pull-hold, 0) * 0.2)); }
.focus-overlay.pull-open .pull-hint, .focus-overlay.pull-close .pull-hint { opacity: calc(0.6 + var(--pull-hold, 0) * 0.4); }
.focus-overlay.pull-close .pull-hint svg { transform: rotate(180deg) translateY(calc(var(--pull-hold, 0) * -5px)) scale(calc(1 + var(--pull-hold, 0) * 0.2)); }
.focus-overlay { overscroll-behavior-y: none; }

/* ============================================================
   CLOCK FACE RULES (1.42.0), see docs/DEVLOG.md
   Mid Century face, the digital time on every face with hands (where a
   brand name would be), its size setting, and the Tachometer's bezel as
   the break line.
   ============================================================ */
.focus-dial[data-face="mid"]:not(.is-words) .focus-face,
.focus-dial[data-face="mid"] .focus-face { display: block; }
.focus-dial[data-face="mid"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="mid"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="mid"] .focus-ring, .focus-dial[data-face="mid"] .focus-line { display: none !important; }
.focus-dial[data-face="mid"] .focus-readout { padding: 0; }
.focus-dial[data-face="mid"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.mid-face { display: flex; justify-content: center; }
.mid-svg { display: block; width: var(--dial); height: auto; overflow: visible; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14)); }
/* The case is the break line: a soft track in the accent, the fill on top. */
.mc-case { fill: none; stroke: color-mix(in srgb, var(--focus-hue) 24%, var(--paper)); stroke-width: 20; }
.mc-progress { fill: none; stroke: var(--focus-hue); stroke-width: 20; stroke-linecap: butt; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s linear, stroke 600ms ease; }
/* The dial and hands keep the original's colors in every theme, like a real clock on the wall. */
.mc-dial { fill: #F4F0E3; }
.mc-lip { fill: none; stroke: rgba(0, 0, 0, 0.07); stroke-width: 5; }
.mc-rays line { stroke: #151515; stroke-width: 1.3; }
.mc-dots circle { fill: #151515; }
.mc-num { fill: none; stroke: #151515; stroke-width: 6.8; stroke-linejoin: round; stroke-linecap: butt; }
.mc-plate { fill: #F4F0E3; }
.mc-window { fill: #151515; font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 26px; font-variant-numeric: tabular-nums lining-nums; }
.mc-hand { fill: #151515; }
.mc-sec { stroke: var(--focus-hue); stroke-width: 1.8; stroke-linecap: round; transition: stroke 600ms ease; }
.mc-sec-dot { fill: var(--focus-hue); }
.mc-cap { fill: #151515; }

/* Railway (1.42.6): same layout as Mid Century. */
.focus-dial[data-face="railway"]:not(.is-words) .focus-face,
.focus-dial[data-face="railway"] .focus-face { display: block; }
.focus-dial[data-face="railway"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="railway"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="railway"] .focus-ring, .focus-dial[data-face="railway"] .focus-line { display: none !important; }
.focus-dial[data-face="railway"] .focus-readout { padding: 0; }
.focus-dial[data-face="railway"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.rw-face { display: flex; justify-content: center; }
.rw-svg { display: block; width: var(--dial); height: auto; overflow: visible; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14)); }
/* The steel case is the break line: the track is the steel, the fill the accent. */
.rw-case { fill: none; stroke: #C4C8CB; stroke-width: 20; }
.rw-progress { fill: none; stroke: var(--focus-hue); stroke-width: 20; stroke-linecap: butt; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s linear, stroke 600ms ease; }
/* The dial and hands keep the original's colors in every theme, like a real clock on the wall. */
.rw-dial { fill: #FFFFFF; }
.rw-lip { fill: none; stroke: rgba(0, 0, 0, 0.09); stroke-width: 5; }
.rw-ticks line { stroke: #151515; stroke-width: 3.2; }
.rw-bars line { stroke: #151515; stroke-width: 11; }
/* 1.46.0: Helvetica like the original's lettering, regular weight (thin like the minute ticks), centered between the 12 bar and the center. */
.rw-window { fill: #151515; font-family: 'Helvetica Neue', Helvetica, 'Inter Tight', Arial, sans-serif; font-weight: 400; font-size: 40px; font-variant-numeric: tabular-nums lining-nums; }
.rw-window.is-words, .focus-dial[data-digits] .rw-window.is-words { font-size: 26px; letter-spacing: 0.04em; }
.rw-hand { fill: #151515; }
/* The second hand stays the original's red in every mode (Clock Face Rule 6: a second hand the design colors keeps its color). */
.rw-sec { stroke: #E5251B; stroke-width: 3.4; }
.rw-sec-disc, .rw-sec-dot { fill: #E5251B; }

/* Bauhaus, Dessau, Minimal and Neon (1.46.0): same layout as Railway. */
.focus-dial[data-face="bauhaus"]:not(.is-words) .focus-face,
.focus-dial[data-face="bauhaus"] .focus-face { display: block; }
.focus-dial[data-face="bauhaus"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="bauhaus"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="bauhaus"] .focus-ring, .focus-dial[data-face="bauhaus"] .focus-line { display: none !important; }
.focus-dial[data-face="bauhaus"] .focus-readout { padding: 0; }
.focus-dial[data-face="bauhaus"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.focus-dial[data-face="dessau"]:not(.is-words) .focus-face,
.focus-dial[data-face="dessau"] .focus-face { display: block; }
.focus-dial[data-face="dessau"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="dessau"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="dessau"] .focus-ring, .focus-dial[data-face="dessau"] .focus-line { display: none !important; }
.focus-dial[data-face="dessau"] .focus-readout { padding: 0; }
.focus-dial[data-face="dessau"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.focus-dial[data-face="minimal"]:not(.is-words) .focus-face,
.focus-dial[data-face="minimal"] .focus-face { display: block; }
.focus-dial[data-face="minimal"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="minimal"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="minimal"] .focus-ring, .focus-dial[data-face="minimal"] .focus-line { display: none !important; }
.focus-dial[data-face="minimal"] .focus-readout { padding: 0; }
.focus-dial[data-face="minimal"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.focus-dial[data-face="neon"]:not(.is-words) .focus-face,
.focus-dial[data-face="neon"] .focus-face { display: block; }
.focus-dial[data-face="neon"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="neon"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="neon"] .focus-ring, .focus-dial[data-face="neon"] .focus-line { display: none !important; }
.focus-dial[data-face="neon"] .focus-readout { padding: 0; }
.focus-dial[data-face="neon"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.bh-face, .ds-face, .mn-face, .nn-face { display: flex; justify-content: center; }
.bh-svg, .ds-svg, .mn-svg, .nn-svg { display: block; width: var(--dial); height: auto; overflow: visible; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14)); }
/* The cases are the break line: the track is the case's own color, the fill the accent. */
.bh-progress, .ds-progress, .mn-progress, .nn-progress { fill: none; stroke: var(--focus-hue); stroke-linecap: butt; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s linear, stroke 600ms ease; }

/* Bauhaus: thin light case, white dial, thin numerals, round steel hands. */
.bh-case { fill: none; stroke: #DADDE0; stroke-width: 12; }
.bh-progress { stroke-width: 12; }
.bh-dial { fill: #FFFFFF; }
.bh-lip { fill: none; stroke: rgba(0, 0, 0, 0.08); stroke-width: 4; }
.bh-ticks line { stroke: #151515; stroke-width: 1.2; }
.bh-mins, .bh-hours { fill: none; stroke: #151515; stroke-linecap: round; stroke-linejoin: round; }
.bh-digits { fill: none; stroke: #151515; stroke-linecap: round; stroke-linejoin: round; }
.bh-colon { fill: #151515; }
/* 1.46.0: the time in the dial's own thin digits; Digital time size scales it from its center. */
.bh-digital { transform-box: view-box; transform-origin: 200px 142px; }
.focus-dial[data-digits="small"] .bh-digital { transform: scale(0.85); }
.focus-dial[data-digits="large"] .bh-digital { transform: scale(1.15); }
.focus-dial[data-digits="bold"] .bh-digital { transform: scale(1.3); }
.focus-dial[data-digits="bold"] .bh-digits { stroke-width: 1.75px; }
.bh-words { fill: #151515; font-family: var(--font-heading); font-weight: 500; font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; }
.bh-hand rect { fill: url(#bh-steel); stroke: rgba(0, 0, 0, 0.18); stroke-width: 0.6; }
.bh-sec { stroke: var(--focus-hue); stroke-width: 1.4; stroke-linecap: round; transition: stroke 600ms ease; }
.bh-cap { fill: url(#bh-steel); stroke: rgba(0, 0, 0, 0.2); stroke-width: 0.6; }
.bh-cap-shine { fill: rgba(255, 255, 255, 0.85); }

/* Dessau: thin chrome case, white dial, six rim numerals, hands in the
   theme accent, big thin 00:00:00 in the bottom half. Digital time size
   scales the time from its center. */
.ds-case { fill: none; stroke: url(#ds-chrome); stroke-width: 9; }
.ds-progress { stroke-width: 9; }
.ds-dial { fill: #FCFCFC; }
.ds-lip { fill: none; stroke: rgba(0, 0, 0, 0.07); stroke-width: 5; }
.ds-ticks line { stroke: #1A1A1A; stroke-width: 1.3; }
.ds-ticks .ds-hr { stroke-width: 1.5; }
.ds-nums, .ds-digits { fill: none; stroke: #1A1A1A; stroke-linecap: round; stroke-linejoin: round; }
.ds-colon { fill: #1A1A1A; }
.ds-digital { transform-box: view-box; transform-origin: 200px 264px; }
.focus-dial[data-digits="small"] .ds-digital { transform: scale(0.85); }
.focus-dial[data-digits="large"] .ds-digital { transform: scale(1.15); }
.focus-dial[data-digits="bold"] .ds-digital { transform: scale(1.3); }
.focus-dial[data-digits="bold"] .ds-digits { stroke-width: 1.6px; }
.ds-words { fill: #1A1A1A; font-family: var(--font-heading); font-weight: 500; font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; }
.ds-hand { fill: var(--accent); filter: drop-shadow(1.5px 3px 2px rgba(0, 0, 0, 0.28)); transition: fill 600ms ease; }
.ds-sec { stroke: var(--focus-hue); stroke-width: 1; stroke-linecap: round; transition: stroke 600ms ease; }
.ds-cap { fill: var(--accent); }

/* Minimal: chrome case, white dial, hairlines, three bars, a squared 6, red hands. */
.mn-case { fill: none; stroke: url(#mn-chrome); stroke-width: 18; }
.mn-progress { stroke-width: 18; }
.mn-dial { fill: #FFFFFF; }
.mn-lip { fill: none; stroke: rgba(0, 0, 0, 0.1); stroke-width: 6; }
.mn-lines line { stroke: #151515; stroke-width: 0.8; opacity: 0.55; }
.mn-bars line { stroke: #151515; stroke-width: 3.6; }
/* 1.46.0: the digital time in the squared digits of the old 6, where the
   6 was. Digital time size scales the row from its bottom center. */
.mn-digit { fill: none; stroke: #151515; stroke-width: 4.2; stroke-linejoin: round; }
.mn-digits { transform-box: view-box; transform-origin: 200px 277px; }
.focus-dial[data-digits="small"] .mn-digits { transform: scale(0.85); }
.focus-dial[data-digits="large"] .mn-digits { transform: scale(1.15); }
.focus-dial[data-digits="bold"] .mn-digits { transform: scale(1.3); }
.focus-dial[data-digits="bold"] .mn-digit { stroke-width: 5.6; }
.mn-window { fill: #151515; font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 22px; font-variant-numeric: tabular-nums lining-nums; }
.mn-hand line { stroke: #E3262E; stroke-linecap: butt; }
.mn-hour line { stroke-width: 6; }
.mn-min line { stroke-width: 4.5; }
.mn-sec { stroke: var(--focus-hue); stroke-width: 1.2; transition: stroke 600ms ease; }
.mn-cap { fill: #FFFFFF; stroke: #E3262E; stroke-width: 3.5; }

/* Neon: a backlit dial in the theme's accent, glowing into the room, pale lit lines.
   --nn is the accent with its lightness held between 0.52 and 0.62 (OKLCH) and
   a little more chroma, so a near-white or near-black accent still glows as a
   color. The lines are a pale tint of it. Browsers without relative colors
   use the color-mix line above each one. */
.nn-svg {
  --nn: var(--accent);
  --nn: oklch(from var(--accent) clamp(0.52, l, 0.62) calc(c * 1.15) h);
  --nn-lit: color-mix(in srgb, var(--accent) 18%, white);
  --nn-lit: oklch(from var(--nn) 0.96 calc(c * 0.22) h);
  --nn-hot: color-mix(in srgb, var(--accent) 55%, white);
  --nn-hot: oklch(from var(--nn) 0.82 calc(c * 1.2) h);
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--nn) 60%, transparent)) drop-shadow(0 0 6px color-mix(in srgb, var(--nn-hot) 55%, transparent));
}
.nn-stop-core { stop-color: color-mix(in srgb, var(--nn) 82%, black); }
.nn-stop-deep { stop-color: color-mix(in srgb, var(--nn) 55%, black); }
.nn-stop-mid { stop-color: color-mix(in srgb, var(--nn) 75%, black); }
.nn-stop-edge { stop-color: var(--nn); }
.nn-dial { fill: url(#nn-dial-fill); }
/* The break line is a neon tube: dim when empty, the fill a bright tint of
   the mode color (an accent line on an accent dial would vanish). */
.nn-case { fill: none; stroke: color-mix(in srgb, var(--nn-lit) 38%, var(--nn)); stroke-width: 7; }
.nn-progress { stroke-width: 7; stroke: color-mix(in srgb, var(--focus-hue) 30%, white); stroke: oklch(from var(--focus-hue) 0.93 calc(c * 0.45) h); }
.nn-ticks line { stroke: var(--nn-lit); stroke-width: 1.4; opacity: 0.85; }
.nn-spokes line { stroke: var(--nn-lit); stroke-width: 1.2; opacity: 0.75; }
.nn-nums text { fill: var(--nn-lit); font-family: 'Arial Narrow', 'Helvetica Neue', 'Roboto Condensed', var(--font-heading); font-weight: 400; font-size: 50px; text-anchor: middle; }
.nn-window { fill: var(--nn-lit); font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 22px; font-variant-numeric: tabular-nums lining-nums; }
.nn-hand path { fill: var(--nn-lit); }
/* The second hand is the hottest tint of the dial's color, like the original's bright red on red. */
.nn-sec { stroke: var(--nn-hot); stroke-width: 2.4; }
.nn-sec-ring { fill: color-mix(in srgb, var(--nn) 55%, black); stroke: var(--nn-hot); stroke-width: 3; }

/* Hygrometer (1.46.0): same layout as Railway. A gauge: the hand counts
   the timer's minutes, pinned and shuddering past 120 like the Tachometer.
   The drop back to 0 on a break is a Web Animation (hySettle in hygrometer.js). */
.focus-dial[data-face="hygro"] .focus-face { display: block; }
.focus-dial[data-face="hygro"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="hygro"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="hygro"] .focus-ring, .focus-dial[data-face="hygro"] .focus-line { display: none !important; }
.focus-dial[data-face="hygro"] .focus-readout { padding: 0; }
.focus-dial[data-face="hygro"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.hy-face { display: flex; justify-content: center; }
.hy-svg { display: block; width: var(--dial); height: auto; overflow: visible; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.16)); }
/* The thin steel ring is the break line: steel track, accent fill. */
.hy-case { fill: none; stroke: #BFC3C7; stroke-width: 6; }
.hy-progress { fill: none; stroke: var(--focus-hue); stroke-width: 6; stroke-linecap: butt; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s linear, stroke 600ms ease; }
/* The dial, squares and hand keep the original's colors in every theme. */
.hy-dial { fill: #F7F7F6; } /* 2.0.7: the dome gradient is set on the circle itself (its id differs per copy); this is the fallback */
.hy-lip { fill: none; stroke: rgba(0, 0, 0, 0.07); stroke-width: 4; }
.hy-rows rect { fill: none; stroke: #2A2A2A; stroke-width: 0.8; }
.hy-rows rect.is-on { fill: #1E1E1E; }
/* The original's light condensed numerals (Barlow Semi Condensed Light is the closest Google font). */
.hy-nums text, .hy-window, .hy-label, .hy-unit { font-family: 'Barlow Semi Condensed', 'DIN Condensed', 'Arial Narrow', var(--font-heading); font-weight: 300; text-anchor: middle; }
.hy-nums text { fill: #6F7275; font-size: 15px; }
.hy-window { fill: #4A4D50; font-size: 42px; font-weight: 300; }
.hy-label { fill: #8C8F92; font-size: 10px; letter-spacing: 0.12em; }
.hy-unit { fill: #8C8F92; font-size: 11px; }
.hy-hand { transform-box: view-box; transform-origin: 200px 200px; transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.25, 1); }
.hy-hand path { fill: #2B2B2B; }
.hy-halo { fill: #EDEDED; stroke: rgba(0, 0, 0, 0.06); stroke-width: 1; }
.hy-dot { fill: var(--accent); }
.hy-svg.is-limiter .hy-hand { animation: hy-limiter 160ms ease-in-out infinite alternate; transition: none; }
@keyframes hy-limiter { from { transform: rotate(var(--hy-lo)); } to { transform: rotate(var(--hy-hi)); } }
@media (prefers-reduced-motion: reduce) {
  .hy-svg.is-limiter .hy-hand { animation: none; }
  .hy-hand { transition: none; }
}
.focus-dial[data-digits="small"] .hy-window { font-size: 32px; }
.focus-dial[data-digits="large"] .hy-window { font-size: 50px; }
.focus-dial[data-digits="bold"] .hy-window { font-size: 58px; font-weight: 600; fill: #151515; }

/* Ticker (1.46.0): same layout as the Hygrometer. A round smartwatch
   face: a row of minutes and a row of seconds (accent) that click one
   place sideways (transitions on each number, set in ticker.js), a rim
   marker as the second hand, the big digital time at the bottom. */
.focus-dial[data-face="ticker"] .focus-face { display: block; }
.focus-dial[data-face="ticker"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="ticker"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="ticker"] .focus-ring, .focus-dial[data-face="ticker"] .focus-line { display: none !important; }
.focus-dial[data-face="ticker"] .focus-readout { padding: 0; }
.focus-dial[data-face="ticker"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.tk-face { display: flex; justify-content: center; }
.tk-svg {
  display: block; width: var(--dial); height: auto; overflow: visible;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
  /* The theme's accent, held light enough to read on the dark dial. */
  --tk: var(--accent);
  --tk: oklch(from var(--accent) clamp(0.66, l, 0.82) c h);
}
/* The polished steel bezel is the break line: steel track, accent fill. */
.tk-case { fill: none; stroke: url(#tk-steel); stroke-width: 14; }
.tk-progress { fill: none; stroke: var(--focus-hue); stroke-width: 14; stroke-linecap: butt; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s linear, stroke 600ms ease; }
.tk-lip { fill: #111213; }
/* The dial, ticks and numbers keep the original's colors in every theme. */
.tk-dial { fill: url(#tk-glass); }
.tk-ticks line { stroke: #8D9094; stroke-width: 1.4; stroke-linecap: round; }
.tk-ticks line.is-five { stroke: #B5B8BB; stroke-width: 1.8; }
.tk-mins text, .tk-secs text, .tk-window { font-family: 'Quicksand', 'Varela Round', var(--font-heading); text-anchor: middle; }
.tk-mins text, .tk-secs text {
  transform-box: view-box; transform-origin: 0 0;
  stroke-opacity: 0; fill-opacity: 1;
  transition: transform 380ms cubic-bezier(0.3, 1.25, 0.5, 1), opacity 380ms ease, fill-opacity 380ms ease, stroke-opacity 380ms ease;
}
.tk-mins text { font-size: 32px; font-weight: 400; fill: #D5D7D9; stroke: #F2F3F4; stroke-width: 0.5; }
/* The current minute: big, in outline like the original. */
.tk-mins text.is-now { fill-opacity: 0; stroke-opacity: 1; }
.tk-secs text { font-size: 13px; font-weight: 500; fill: var(--tk); }
.tk-secs text.is-now { font-weight: 600; }
.tk-window { fill: #B5B8BB; font-size: 30px; font-weight: 400; }
/* The rim marker: an accent capsule over the ticks, one turn a minute. */
.tk-marker { transform-box: view-box; transform-origin: 200px 200px; transition: transform 260ms cubic-bezier(0.3, 1.6, 0.5, 1); }
.tk-marker rect { fill: #232426; stroke: var(--tk); stroke-width: 2.6; }
@media (prefers-reduced-motion: reduce) {
  .tk-mins text, .tk-secs text, .tk-marker { transition: none; }
}
.focus-dial[data-digits="small"] .tk-window { font-size: 24px; }
.focus-dial[data-digits="large"] .tk-window { font-size: 36px; }
.focus-dial[data-digits="bold"] .tk-window { font-size: 36px; font-weight: 700; fill: #F2F3F4; }

/* Tuner (1.46.0): same layout as the Ticker. A round wall radio: dark
   knurled case (the break line), white dial, the tuning scale on the
   right sliding past a fixed accent needle (transition on .tu-strip,
   set in tuner.js), the station readout on the left. */
.focus-dial[data-face="tuner"] .focus-face { display: block; }
.focus-dial[data-face="tuner"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="tuner"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="tuner"] .focus-ring, .focus-dial[data-face="tuner"] .focus-line { display: none !important; }
.focus-dial[data-face="tuner"] .focus-readout { padding: 0; }
.focus-dial[data-face="tuner"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.tu-face { display: flex; justify-content: center; }
.tu-svg {
  display: block; width: var(--dial); height: auto; overflow: visible;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.32));
  font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'tnum' 1;
}
/* The knurled case is the break line: knurl track, accent fill. */
.tu-case { fill: none; stroke: url(#tu-knurl); stroke-width: 18; }
.tu-case-shade { fill: none; stroke: url(#tu-shade); stroke-width: 18; }
.tu-progress { fill: none; stroke: var(--focus-hue); stroke-width: 18; stroke-linecap: butt; stroke-dasharray: 1000; stroke-dashoffset: 1000; opacity: 0.9; transition: stroke-dashoffset 1s linear, stroke 600ms ease; }
.tu-lip { fill: #0E0E0F; }
/* The dial, scale and text keep the original's colors in every theme. */
.tu-dial { fill: url(#tu-glass); }
.tu-band { fill: url(#tu-band); }
.tu-strip { transition: transform 320ms cubic-bezier(0.3, 1.35, 0.5, 1); }
.tu-strip line { stroke: #2B2B2B; stroke-width: 0.9; }
.tu-strip text { font-size: 9.5px; fill: #3A3A3A; }
.tu-strip .is-now text { fill: #111; font-weight: 600; }
.tu-needle { stroke: var(--accent); stroke-width: 2.6; }
.tu-unit { font-size: 9px; letter-spacing: 0.06em; fill: #3A3A3A; }
.tu-now, .tu-date { font-size: 10px; fill: #3A3A3A; }
.tu-today, .tu-window, .tu-break { text-anchor: middle; }
.tu-window.is-words { text-anchor: start; }
.tu-today { font-size: 19px; font-weight: 400; fill: #1A1A1A; }
.tu-tag { font-size: 6.5px; font-weight: 600; letter-spacing: 0.08em; fill: var(--accent); }
.tu-window { font-size: 50px; font-weight: 300; fill: #111; }
.tu-window .tu-dim { fill: #C9C9C6; }
.tu-window.is-words { font-size: 34px; }
.tu-rec { fill: none; stroke: #2B2B2B; stroke-width: 1; }
.tu-rec-text { font-size: 8.5px; font-weight: 500; fill: #1A1A1A; }
.tu-dot { fill: #C9C9C6; transition: fill 300ms ease; }
.tu-dot.is-on { fill: var(--accent); animation: tu-rec 2s ease-in-out infinite; }
@keyframes tu-rec { 50% { opacity: 0.35; } }
.tu-break { font-size: 12px; fill: #2B2B2B; }
@media (prefers-reduced-motion: reduce) {
  .tu-strip { transition: none; }
  .tu-dot.is-on { animation: none; }
}
.focus-dial[data-digits="small"] .tu-window { font-size: 44px; }
.focus-dial[data-digits="large"] .tu-window { font-size: 54px; }
.focus-dial[data-digits="bold"] .tu-window { font-size: 54px; font-weight: 500; }

/* Cassette Deck (1.56.0, Zen only): a silver front loading deck, 640 x
   330, wider than the other faces (it fills the room between the
   arrows). The counter drums and the level meter are moved by
   cassette.js (an animation frame loop), the hubs turn with Web
   Animations; the keys, RECORD LEVEL (switches the tape) and DOLBY NR
   (Breathe) are clickable. */
.focus-dial[data-face="cassette"] .focus-face { display: block; }
.focus-dial[data-face="cassette"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="cassette"] { width: auto; aspect-ratio: auto; max-height: var(--dial); max-width: 100%; padding: 0; }
.focus-dial[data-face="cassette"] .focus-ring, .focus-dial[data-face="cassette"] .focus-line { display: none !important; }
.focus-dial[data-face="cassette"] .focus-readout { padding: 0; }
.focus-dial[data-face="cassette"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.cs-face { display: flex; justify-content: center; }
.cs-svg {
  display: block; height: auto; overflow: visible;
  /* As wide as the row between the arrows allows (.focus-dial-row: min(92vw, 760px) less 2 x 56px). */
  width: min(calc(var(--dial) * 1.6), calc(min(92vw, 760px) - 112px));
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.28));
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-user-select: none; user-select: none;
}
/* Silk screen print on the silver panel and the cassette's own print. */
.cs-silk { fill: #2b2b2d; letter-spacing: 0.04em; }
.cs-silk-b { fill: #1f1f21; font-weight: 700; letter-spacing: 0.06em; }
.cs-italic { font-style: italic; font-weight: 600; }
.cs-print, .cs-label { font-weight: 700; letter-spacing: 0.05em; }
.cs-print { font-size: 8px; }
/* What can be clicked: POWER, the keys, RECORD LEVEL, DOLBY NR. */
.cs-power-sw, .cs-key, .cs-level, .cs-nr { cursor: pointer; }
.cs-level:hover .cs-level-cap, .cs-nr:hover .cs-nr-cap { filter: brightness(1.06); }
.cs-level-cap { transform-box: view-box; transition: transform 420ms cubic-bezier(0.3, 1.3, 0.5, 1); } /* origin: the knob's center, set in cassette.js */
.cs-pack { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; transition: r 1s linear; } /* fill: the tape's own color, inline */
/* The clear leader at either end of a side (csLeader; 2.5.2, Omar). 2.5.4:
   the clear leader and the red splice line travel along the tape
   (stroke-dasharray set by csLeader); the nearly empty reel shows its turns
   of leader, and at the very end it is a bare spool (2.5.3). */
.cs-lead { stroke: #E9EEF1; stroke-opacity: 0.9; stroke-width: 1.5; }
line.cs-lead { stroke-width: 2.3; }
.cs-splice { stroke: #D0302A; stroke-width: 1.7; }
line.cs-splice { stroke-width: 2.5; }
/* 2.19.2: solid, so the strand's end under it never shows through (it looked like a stick poking in). */
.cs-svg.is-leader-l .cs-pack-l, .cs-svg.is-leader-r .cs-pack-r { fill: #E2E6E9 !important; stroke: #F6F8FA; }
.cs-svg.is-bare-l .cs-pack-l, .cs-svg.is-bare-r .cs-pack-r { opacity: 0; }
/* 2.19.2: the leader's clear turns round the full pack (csLeader sets r and width). */
.cs-wrap { fill: none; stroke: rgba(244, 247, 249, 0.85); pointer-events: none; }
/* TAPE SELECT turns to the tape's type (origin set inline). */
.cs-select { transform-box: view-box; transition: transform 500ms cubic-bezier(0.3, 1.3, 0.5, 1); }
.cs-hub { transform-box: fill-box; transform-origin: center; }
/* Counter drums (moved every frame by cassette.js, no transition). */
.cs-digit { font-size: 32px; font-weight: 500; fill: #151515; text-anchor: middle; dominant-baseline: central; font-feature-settings: 'tnum' 1; }
.focus-dial[data-digits="small"] .cs-digit { font-size: 26px; }
.focus-dial[data-digits="large"] .cs-digit { font-size: 35px; }
.focus-dial[data-digits="bold"] .cs-digit { font-size: 35px; font-weight: 800; }
/* Keys: pressed ones sit lower and darker. DOLBY NR stays in while breathing. */
.cs-key, .cs-nr-cap { transition: transform 90ms ease-out, filter 90ms; }
.cs-key.is-down { transform: translateY(5px); filter: brightness(0.86); }
.cs-nr.is-down .cs-nr-cap { transform: translateY(1.5px); filter: brightness(0.86); }
/* Lamps and the power LED. REC flashes every second while recording. */
.cs-lamp { fill: #4a3c3a; transition: fill 120ms; }
.cs-lamp.is-on { fill: #c8f03c; }
.cs-lamp[data-lamp="rec"].is-on { fill: #ff4a3d; animation: cs-rec 1s step-end infinite; }
.cs-lamp[data-lamp="pause"].is-on { fill: #ffb21e; }
@keyframes cs-rec { 50% { fill: #4a3c3a; } }
.cs-power { fill: #c8f03c; transition: fill 160ms; }
/* POWER off (only by the switch): the power lamp dark, the switch down. */
.cs-svg.is-off .cs-power { fill: #3a3a2c; }
.cs-power-cap { transition: transform 140ms ease-out; }
.cs-svg.is-off .cs-power-cap { transform: translateY(16px); }
/* Level meter: green LEDs, the +3 one red (lit by cassette.js). */
.cs-seg { fill: #26301c; }
.cs-seg.is-on { fill: #c8f03c; }
.cs-seg.is-peak { fill: #3a1f1c; }
.cs-seg.is-peak.is-on { fill: #ff4a3d; }
/* Head and pinch roller: up into the cassette while recording, out on
   STOP and while rewinding; on a break the pinch roller lets go. */
.cs-head, .cs-pinch { transition: transform 420ms cubic-bezier(0.3, 0.8, 0.3, 1); }
/* Auto reverse: on side B the head is turned round (--cs-hs -1). The turn
   itself is a Web Animation in cassette.js (csFlip). */
.cs-head { transform-box: fill-box; transform-origin: center; transform: translateY(0) scaleX(var(--cs-hs, 1)); }
.cs-svg.is-side-b { --cs-hs: -1; }
.cs-svg.is-empty .cs-tape-shadow, .cs-svg.is-empty .cs-plate-vignette { display: none; } /* RECORD LEVEL 0: no tape in the deck (the vignette read as a tape's outline) */
.cs-svg.is-head-in .cs-head { transform: translateY(-12px) scaleX(var(--cs-hs, 1)); } /* CS_HEAD_IN */
.cs-svg.is-paused .cs-pinch { transform: translateY(7px); }
@media (prefers-reduced-motion: reduce) {
  .cs-key, .cs-nr-cap, .cs-head, .cs-pinch, .cs-pack, .cs-level-cap, .cs-power-cap, .cs-select { transition: none; }
  .cs-lamp[data-lamp="rec"].is-on { animation: none; }
}

/* Tachometer: the bezel lights up as the break line (1.42.0). */
.tc-progress { fill: none; stroke: var(--focus-hue); stroke-width: 7; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s linear, stroke 600ms ease; }
.tc-progress.hidden { display: none; }

/* Punch Clock: the digital time on the dial, above the center (1.42.0). */
.pc-window { fill: var(--ink-light); font-family: var(--font-heading); font-weight: var(--weight-bold); font-size: 38px; font-variant-numeric: tabular-nums lining-nums; }

/* Digital time size (1.42.0): Settings > Zen Clock and Settings >
   Pomodoro Timer > Digital time size. Medium is the size before 1.42.0.
   Big And Bold is the heavy ink digits of the Numbers face. */
.focus-dial[data-digits="small"] .mc-window { font-size: 20px; }
.focus-dial[data-digits="small"] .rw-window { font-size: 32px; } /* 1.46.0 */
.focus-dial[data-digits="small"] .an-window { font-size: 26px; } /* 1.46.0 */
.focus-dial[data-digits="small"] .mn-window, .focus-dial[data-digits="small"] .nn-window { font-size: 17px; }
.focus-dial[data-digits="large"] .mc-window { font-size: 36px; }
.focus-dial[data-digits="large"] .rw-window { font-size: 46px; } /* 1.46.0 */
.focus-dial[data-digits="large"] .an-window { font-size: 44px; } /* 1.46.0 */
.focus-dial[data-digits="large"] .mn-window, .focus-dial[data-digits="large"] .nn-window { font-size: 30px; }
.focus-dial[data-digits="bold"] .an-window { font-size: 56px; }
.focus-dial[data-digits="bold"] .mc-window { font-size: 48px; }
.focus-dial[data-digits="bold"] .rw-window { font-size: 50px; } /* 1.46.0 */
.focus-dial[data-digits="bold"] .mn-window, .focus-dial[data-digits="bold"] .nn-window { font-size: 38px; }
.focus-dial[data-digits="small"] .pc-window { font-size: 29px; }
.focus-dial[data-digits="large"] .pc-window { font-size: 50px; }
.focus-dial[data-digits="bold"] .pc-window { font-size: 64px; }
.focus-dial[data-digits="bold"] .an-window,
.focus-dial[data-digits="bold"] .mc-window,
.focus-dial[data-digits="bold"] .rw-window,
.focus-dial[data-digits="bold"] .mn-window,
.focus-dial[data-digits="bold"] .nn-window,
.focus-dial[data-digits="bold"] .pc-window { fill: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.focus-dial[data-digits="bold"] .mc-window, .focus-dial[data-digits="bold"] .rw-window, .focus-dial[data-digits="bold"] .mn-window { fill: #151515; }
.focus-dial[data-digits="bold"] .nn-window { fill: var(--nn-lit); }

/* ============================================================
   PHONE LAYOUT (1.45.0), 700px and below: Zen and the Pomodoro Timer
   The top controls (presets, modes, Settings, Full Screen, Close) float
   over the drawer on a wider screen; on a phone that put them on top of
   "What are you working on?", so here they sit in the page above it. The
   face arrows sit closer to the edges so the dial is wider, and the time
   is sized to the screen and stays on one line (it broke into "25:" and
   "00" and ran out of the ring). The quiet buttons are icons beside the
   big one.
   ============================================================ */
@media (max-width: 700px) {
  .focus-top { position: static; padding: var(--space-2); } /* 2.4.1 (Omar): the same 8px as between the pills (was 12px) */
  .focus-center { padding-top: var(--space-2); }
  .focus-dial-row { padding: 0 44px; }
  .focus-readout { padding: 0 6%; }
  .focus-clock { font-size: min(8vmin, 9.5vw); white-space: nowrap; } /* 1.46.0: 00:00:00 */
  /* The quiet buttons (End Session or Clock Out on the left, Breathe and
     Skip on the right) are round icon buttons beside the big one (1.45.1):
     a square for End Session and Clock Out, the breath lines for Breathe, a
     skip arrow for Skip. +5 Min keeps its words, it is a number. */
  .focus-controls-side { flex-direction: row; }
  .focus-controls .focus-side-btn:not(.hidden):has(.zen-btn-icon) {
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--btn-h-md); padding: 0;
  }
  .focus-controls .focus-side-btn:has(.zen-btn-icon) > span { display: none; }
  .focus-controls .focus-side-icon { display: block; }

  /* 1.45.1: the top pills are icons (or just the numbers) instead of words,
     so they fit on fewer lines: 25/5 and 90/15 for the presets, sliders for
     Custom, a target, a cup and a moon for Focus, Short Break and Long
     Break, and only the icons on Settings, Full Screen, Close and Resume
     Previous. Each keeps its name as its tooltip. */
  .focus-top .focus-pill-label,
  .focus-top .focus-pill-btn > span,
  .focus-top [data-focus-preset="custom"] .focus-preset-nums { display: none; }
  .focus-top .focus-pill-icon { display: block; }
  .focus-top .focus-mode { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; }
  .focus-top .focus-preset-nums { margin-left: 0; opacity: 1; }
  .focus-top { flex-wrap: wrap; align-items: center; row-gap: var(--space-2); }
  .focus-top-left { align-self: flex-start; }
  .focus-top-actions { margin-left: auto; align-self: flex-start; }
}

/* ============================================================
   1.48.0 (Omar): THEME PILL and JUST THE CLOCK, see focus.js
   The theme pill sits under Settings / Just The Clock / Full Screen /
   Close and fades with them. Just The Clock hides every control and the
   header; the face is 70% of the window tall, so 15% stays above and
   below it.
   ============================================================ */
.focus-top-actions { flex-direction: column; align-items: flex-end; gap: 6px; }
.focus-theme { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.focus-theme-pill { align-items: center; }
.focus-theme-arrow { display: inline-flex; align-items: center; justify-content: center; width: var(--btn-h-sm); padding: 0; }
.focus-theme-name {
  min-width: 9ch; max-width: 18ch; padding: 0 var(--space-1);
  font-size: var(--font-size-sm); font-weight: var(--weight-medium); color: var(--ink-light); /* 1.49.2 (Omar): the same color as the pill buttons (was --ink) */
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 2.0.1: at rest the name is a palette icon; the pill keeps its width so
   the arrows stay put when the name shows. */
.focus-theme-name.is-icon { display: inline-flex; align-items: center; justify-content: center; }
.focus-theme-icon { display: block; flex: none; }
/* 2.0.2 (Omar, iPhone): on a phone the theme pill is exactly as wide as the
   pill above it (Settings, Full Screen, Close), the arrows at its ends and a
   long theme name cut short with an ellipsis. width 0 + min-width 100%: the
   theme pill takes the column's width but never widens it. */
@media (max-width: 700px) {
  .focus-top-actions { align-items: stretch; }
  .focus-top-actions > .focus-modes { justify-content: space-between; }
  #focus-theme { width: 0; min-width: 100%; align-items: stretch; }
  #focus-theme .focus-theme-pill { display: flex; }
  #focus-theme .focus-theme-name { flex: 1 1 0; min-width: 0; max-width: none; padding: 0 2px; }
}
/* 2.20.2 (Omar): on a desktop the theme pill is always as wide as the row
   of dots under it (12px padding each side, 8px dots, 8px gaps), whatever
   the theme's name; a longer name is cut short with an ellipsis.
   --theme-count is set by renderThemePill() in focus.js. */
@media (min-width: 701px) {
  #focus-theme { --theme-pill-w: min(calc(var(--theme-count, 10) * 16px + 16px), 80vw, 420px); }
  #focus-theme .focus-theme-pill { display: flex; box-sizing: border-box; width: var(--theme-pill-w); }
  #focus-theme .focus-theme-name { flex: 1 1 0; min-width: 0; max-width: none; }
  #focus-theme .focus-theme-dots { box-sizing: border-box; width: var(--theme-pill-w); }
}
/* The dots: every theme's accent on its own page color, the picked one
   bigger. Shown while stepping, gone 1.6 seconds after the last step. */
.focus-theme-dots {
  position: absolute; top: calc(100% + 8px); right: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px;
  width: max-content; max-width: min(80vw, 420px);
  padding: 8px 12px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--focus-hue) 10%, var(--focus-bg));
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 400ms ease, transform 400ms ease;
}
.focus-theme-dots.is-shown { opacity: 1; transform: none; transition-duration: 150ms; }
.focus-theme-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 2px var(--dot-bg), 0 0 0 3px color-mix(in srgb, var(--ink) 20%, transparent);
  transition: transform 200ms ease;
}
.focus-theme-dot.is-on { transform: scale(1.6); }
@media (prefers-reduced-motion: reduce) {
  .focus-theme-dots, .focus-theme-dot { transition: none; }
}

/* Full screen only (Omar): there Just The Clock takes Settings' place;
   out of full screen Settings shows and Just The Clock doesn't. */
#focus-just-btn { display: none; }
html[data-focus-fullscreen] #focus-just-btn { display: inline-flex; }
html[data-focus-fullscreen] #focus-settings-btn { display: none; }
/* In and out (focus.js setJustClock): the controls fade (just-fade) while
   the clock eases to its new size (flipDial). */
.focus-overlay.just-anim :is(.focus-top, .focus-what-wrap, .focus-face-arrow, .focus-face-name, .breathe-caption, .focus-tip, .focus-tomatoes, .focus-today, .zen-stats, .focus-controls, .focus-status) { transition: opacity 250ms ease !important; }
.focus-overlay.just-fade :is(.focus-top, .focus-what-wrap, .focus-face-arrow, .focus-face-name, .breathe-caption, .focus-tip, .focus-tomatoes, .focus-today, .zen-stats, .focus-controls, .focus-status) { opacity: 0 !important; pointer-events: none; }
.focus-overlay.is-just-clock { --dial: min(70vh, 92vw); padding-top: 0; overflow: hidden; cursor: none; }
html[data-focus-just] .topbar { opacity: 0; pointer-events: none; }
.focus-overlay.is-just-clock .focus-top,
.focus-overlay.is-just-clock .pull-hint,
.focus-overlay.is-just-clock .focus-what-wrap,
.focus-overlay.is-just-clock .focus-face-arrow,
.focus-overlay.is-just-clock .focus-face-name,
.focus-overlay.is-just-clock .breathe-caption,
.focus-overlay.is-just-clock .breathe-stage,
.focus-overlay.is-just-clock .zen-note,
.focus-overlay.is-just-clock .focus-tip,
.focus-overlay.is-just-clock .focus-tomatoes,
.focus-overlay.is-just-clock .focus-today,
.focus-overlay.is-just-clock .zen-stats,
.focus-overlay.is-just-clock .focus-controls,
.focus-overlay.is-just-clock .focus-status { display: none !important; }
.focus-overlay.is-just-clock.zen-blocked .focus-dial-row { display: flex !important; } /* a Pomodoro session running still shows the clock */
.focus-overlay.is-just-clock .focus-center { min-height: 100vh; padding: 0; gap: 0; justify-content: center; }
.focus-overlay.is-just-clock .focus-dial-row { width: 100%; padding: 0; margin: 0; }
.focus-overlay.is-just-clock .focus-dial { margin-bottom: 0; }
/* The digital faces grow with the dial (their usual sizes stop at a cap). */
.focus-overlay.is-just-clock .focus-clock { font-size: calc(var(--dial) * 0.155); }
.focus-overlay.is-just-clock .stack-face { font-size: calc(var(--dial) * 0.36); }
.focus-overlay.is-just-clock .flip-row { font-size: calc(var(--dial) * 0.28); }
/* Cassette Deck (Omar): the arrows are gone, so the deck is as tall as the
   other faces (--dial; its box is 640 x 330, 1.94 to 1), at most 92vw wide. */
.focus-overlay.is-just-clock .cs-svg { width: min(calc(var(--dial) * 1.94), 92vw); }

/* Speedometer and Speedo And Tach (1.56.0, Omar): same layout as the
   Hygrometer. A classic car's speedometer: all chrome bezel (no break
   line: Speedo And Tach's small tach is its break line), black dial, cream numerals, orange needle, a drum odometer for the
   digital time (the drums roll in speedometer.js). Keeps its colors in
   every theme. */
.focus-dial:is([data-face="speedo"], [data-face="speedotach"]) .focus-face { display: block; }
.focus-dial:is([data-face="speedo"], [data-face="speedotach"]) .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial:is([data-face="speedo"], [data-face="speedotach"]) { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial:is([data-face="speedo"], [data-face="speedotach"]) :is(.focus-ring, .focus-line) { display: none !important; }
.focus-dial:is([data-face="speedo"], [data-face="speedotach"]) .focus-readout { padding: 0; }
.focus-dial:is([data-face="speedo"], [data-face="speedotach"]) .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.sp-face { display: flex; justify-content: center; }
.sp-svg { display: block; width: var(--dial); height: auto; overflow: visible; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28)); }
/* Speedo And Tach: a 500 x 400 box, as tall as the other faces. */
.sp-svg.has-tach { width: min(calc(var(--dial) * 1.25), 94vw); }
.sp-bezel { fill: none; stroke: url(#sp-chrome); stroke-width: 20; }
.sp-bezel-edge { fill: none; stroke: rgba(0, 0, 0, 0.35); stroke-width: 1; }
.sp-dial { fill: url(#sp-dial); }
.sp-ticks line { stroke: #F1EBDD; stroke-width: 1; opacity: 0.7; }
.sp-ticks line.is-mid { stroke-width: 2; opacity: 0.9; }
.sp-ticks line.is-major { stroke-width: 3.5; opacity: 1; }
.sp-nums text, .sp-unit, .sp-label, .sp-odo text { font-family: 'Barlow Semi Condensed', 'DIN Condensed', 'Arial Narrow', var(--font-heading); text-anchor: middle; }
.sp-nums text { fill: #F1EBDD; font-size: 24px; font-weight: 600; }
.sp-unit { fill: #F1EBDD; font-size: 13px; font-weight: 600; letter-spacing: 0.3em; opacity: 0.8; }
.sp-label { fill: #F1EBDD; font-size: 11px; font-weight: 400; letter-spacing: 0.32em; opacity: 0.65; }
.sp-peg { fill: #8E9399; }
.sp-odo-case { fill: #050505; stroke: #6B7076; stroke-width: 1.5; }
.sp-drum rect { fill: #111214; }
.sp-drum text { fill: #F1EBDD; font-size: 22px; font-weight: 400; }
.sp-drum.is-sec rect { fill: #EDE8DC; }
.sp-drum.is-sec text { fill: #151515; }
.sp-odo .sp-odo-colon { fill: #F1EBDD; font-size: 20px; }
/* The drums' curve: darker at the top and bottom edge of the window. */
.sp-odo-shade { fill: url(#sp-odo-shade); pointer-events: none; }
.sp-needle { transform-box: view-box; transform-origin: 200px 200px; transition: transform 1s linear; } /* 1.56.0: glides from second to second, never ticks */
.sp-needle path { fill: #FF6A1F; }
.sp-needle .sp-needle-tail { fill: #2A2C2F; }
.sp-hub { fill: url(#sp-hub); stroke: rgba(0, 0, 0, 0.4); stroke-width: 1; }
.sp-hub-dot { fill: #1A1B1D; }
.sp-glass { fill: url(#sp-glass); pointer-events: none; }
.sp-svg.is-pinned .sp-needle { animation: sp-pinned 120ms ease-in-out infinite alternate; transition: none; }
@keyframes sp-pinned { from { transform: rotate(var(--sp-lo)); } to { transform: rotate(var(--sp-hi)); } }
@media (prefers-reduced-motion: reduce) {
  .sp-svg.is-pinned .sp-needle { animation: none; }
  .sp-needle { transition: none; }
}
/* Speedo And Tach's small tach (lower right), the same chrome and dial. */
.st-shadow { fill: rgba(0, 0, 0, 0.35); filter: blur(4px); }
.st-bezel { fill: none; stroke: url(#sp-chrome); stroke-width: 12; }
.st-red { fill: none; stroke: #E4572E; stroke-width: 5; opacity: 0.9; }
.st-ticks line { stroke: #F1EBDD; stroke-width: 1; opacity: 0.75; }
.st-ticks line.is-major { stroke-width: 2.2; opacity: 1; }
.st-ticks line.is-red { stroke: #FF7A4D; opacity: 1; }
.st-nums text, .st-unit { font-family: 'Barlow Semi Condensed', 'DIN Condensed', 'Arial Narrow', var(--font-heading); text-anchor: middle; fill: #F1EBDD; }
.st-nums text { font-size: 12.5px; font-weight: 600; }
.st-nums text.is-red { fill: #FF7A4D; }
.st-unit { font-size: 7.5px; font-weight: 600; letter-spacing: 0.25em; opacity: 0.8; }
.st-unit.is-small { font-size: 6.5px; letter-spacing: 0.1em; opacity: 0.6; }
/* The needle is a looping Web Animation (stLoop in speedometer.js); the
   transition only eases a held needle to the counter. */
.st-needle { transform-box: view-box; transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.25, 1); }
@media (prefers-reduced-motion: reduce) { .st-needle { transition: none; } }
.st-needle path { fill: #FF6A1F; }

/* 2.0.1 (Omar, iPhone): the wide faces fit between the arrows on a phone.
   Flip Clock's 00:00:00 is 5.85em wide and Speedo And Tach is 1.25 dials
   wide, so at 28% of the dial they ran past both arrows. 112px is the two
   40px arrows plus a 16px margin each side. Just The Clock has no arrows:
   the screen less 16px each side. */
@media (max-width: 700px) {
  .flip-row { font-size: min(calc(var(--dial) * 0.28), calc((100vw - 112px) / 5.85)); }
  .sp-svg.has-tach { width: min(calc(var(--dial) * 1.25), calc(100vw - 112px)); }
  .sp-svg { width: min(var(--dial), calc(100vw - 112px)); }
  .focus-overlay.is-just-clock .flip-row { font-size: min(calc(var(--dial) * 0.28), calc((100vw - 32px) / 5.85)); }
  .focus-overlay.is-just-clock .sp-svg { width: min(var(--dial), calc(100vw - 32px)); }
  .focus-overlay.is-just-clock .sp-svg.has-tach { width: min(calc(var(--dial) * 1.25), calc(100vw - 32px)); }
}
.st-needle .sp-needle-tail { fill: #2A2C2F; }

/* Altimeter (1.56.0): same layout as the Hygrometer. A panel altimeter,
   dark in every theme; the case ring is the break line. Hands carry whole
   turns; drops wind back with needleSettle (altimeter.js). */
.focus-dial[data-face="alt"] .focus-face { display: block; }
.focus-dial[data-face="alt"] .focus-clock {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.focus-dial[data-face="alt"] { width: auto; aspect-ratio: auto; max-height: var(--dial); padding: 0; }
.focus-dial[data-face="alt"] .focus-ring, .focus-dial[data-face="alt"] .focus-line { display: none !important; }
.focus-dial[data-face="alt"] .focus-readout { padding: 0; }
.focus-dial[data-face="alt"] .focus-status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 60vw; margin-top: var(--space-2); text-align: center;
}
.al-face { display: flex; justify-content: center; }
.al-svg { display: block; width: var(--dial); height: auto; overflow: visible; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22)); }
.al-plate { fill: #232322; }
.al-screw { fill: #5F5E5A; }
.al-slot { stroke: #2C2C2A; stroke-width: 2.6; stroke-linecap: round; }
.al-knob > circle:first-child { fill: #3A3A38; }
.al-knurl line { stroke: #5A5A57; stroke-width: 2.2; }
.al-knob-cap { fill: #4E4E4B; }
.al-case { fill: none; stroke: #3D3D3B; stroke-width: 12; }
.al-progress { fill: none; stroke: var(--focus-hue); stroke-width: 12; stroke-linecap: butt; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s linear, stroke 600ms ease; }
.al-rim { fill: #1A1A19; }
.al-dial { fill: #0E0E0E; }
.al-ticks line { stroke: #F1EFE8; stroke-width: 2.2; }
.al-ticks line.is-major { stroke-width: 5.5; }
.al-nums text { fill: #F1EFE8; font-family: 'Barlow Semi Condensed', 'DIN Condensed', 'Arial Narrow', var(--font-heading); font-weight: 600; font-size: 46px; text-anchor: middle; }
.al-win { fill: #000; stroke: #3A3A38; stroke-width: 2; }
.al-digits { fill: #F1EFE8; font-family: 'Barlow Semi Condensed', 'DIN Condensed', 'Arial Narrow', var(--font-heading); font-weight: 400; font-size: 30px; }
.focus-dial[data-digits="small"] .al-digits { font-size: 25px; }
.focus-dial[data-digits="large"] .al-digits { font-size: 34px; }
.focus-dial[data-digits="bold"] .al-digits { font-size: 38px; font-weight: 600; }
.al-flag-bg { fill: #111; stroke: #444441; stroke-width: 2; }
/* The shutter: covers the stripes as the long hand climbs to 6, opens with the hourly drop. */
.al-flag-cover { fill: #111; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform 1s linear; }
.al-svg.is-crash .al-flag-cover { transition: transform 5s cubic-bezier(0.55, 0, 0.35, 1); }
.al-label, .al-small { fill: #F1EFE8; font-family: 'Barlow Semi Condensed', 'Arial Narrow', var(--font-heading); font-weight: 600; letter-spacing: 0.14em; }
.al-label { font-size: 17px; }
.al-small { font-size: 13px; fill: #B4B2A9; }
.al-feet { font-size: 15px; fill: #F1EFE8; }
.al-kbox { fill: #2A2A28; }
.al-ktape { fill: #D9D4C3; }
.al-kscale { transition: transform 1s linear; }
.al-kscale line { stroke: #222; stroke-width: 1.6; }
.al-kscale text { fill: #111; font-family: 'Barlow Semi Condensed', 'Arial Narrow', var(--font-heading); font-weight: 600; font-size: 14px; text-anchor: middle; }
.al-kindex { stroke: #E24B4A; stroke-width: 2.4; }
.al-hand { transform-box: view-box; transform-origin: 200px 200px; transition: transform 1s cubic-bezier(0.2, 0.9, 0.25, 1); }
.al-hand path { fill: #F1EFE8; stroke: #0E0E0E; stroke-width: 1.5; stroke-linejoin: round; }
.al-sec path { stroke: none; }
.al-hand.al-sec { transition: none; } /* sweeps every frame (alSweep) */
.al-hub { fill: #2C2C2A; stroke: #888780; stroke-width: 2; }
.al-pin { fill: #888780; }
@media (prefers-reduced-motion: reduce) {
  .al-hand, .al-hand.al-sec, .al-kscale, .al-flag-cover, .al-svg.is-crash .al-flag-cover { transition: none; }
}
