/* VisualTimer Core — timer UI (theme-independent) */

.vt-timer {
  --vt-accent: #0f766e;
  --vt-surface: #fffaf4;
  --vt-ink: #0f172a;
  --vt-muted: #475569;
  --vt-border: rgba(15, 23, 42, 0.18);
  --vt-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --vt-control-h: 48px;
  --vt-input-h: 46px;
  --vt-gap: 12px;
  --vt-row-gap: 16px;
  --vt-inrow-gap: 11px;
  --vt-viz-size: min(100%, 300px);
  color: var(--vt-ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto 1.5rem; /* 24px between timer card and content below */
  min-width: 0;
  box-sizing: border-box;
}

.vt-timer--candle,
.vt-timer:has(.vt-timer__shell--candle) {
  max-width: 56rem;
}

.vt-timer *,
.vt-timer *::before,
.vt-timer *::after {
  box-sizing: border-box;
}

.vt-timer__shell {
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(15, 118, 110, 0.08), transparent 50%),
    linear-gradient(180deg, #fffdf9 0%, var(--vt-surface) 100%);
  border: 1px solid var(--vt-border);
  border-radius: 1.25rem;
  box-shadow: var(--vt-shadow);
  padding: 1.5rem; /* 24px — content-driven, no min-height stretch */
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
}

.vt-timer__shell--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem; /* 24px — content-driven card height */
  max-width: 100%;
  align-items: start;
  height: auto;
  min-height: 0;
}

.vt-timer__shell--split .vt-timer__stage {
  margin-bottom: 0;
  justify-content: flex-start;
  align-items: center;
}

.vt-timer__shell--split .vt-timer__panel {
  display: flex;
  flex-direction: column;
  gap: var(--vt-row-gap); /* 16px between control rows */
  min-width: 0;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .vt-timer__shell--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center; /* columns share mid-line without stretching the card */
    padding: 1.75rem; /* 28px within 24–32px */
  }
}

/* Native fullscreen + expanded fallback: full viewport, viz centered above bottom toolbar */
.vt-timer__shell:fullscreen,
.vt-timer__shell:-webkit-full-screen,
.vt-timer__shell.is-fs-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none !important;
  min-height: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: max(0.75rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0
    max(1rem, env(safe-area-inset-left));
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(15, 118, 110, 0.1), transparent 55%),
    linear-gradient(180deg, #fffdf9 0%, #fffaf4 100%);
  gap: 0;
  /* Drop normal-page split columns / max-width constraints */
  grid-template-columns: none;
}

.vt-timer__shell.is-fs-active {
  position: fixed;
  inset: 0;
  z-index: 100000;
  width: 100%;
  /* Dynamic viewport: toolbar show/hide on mobile; svh/lvh as progressive fallbacks */
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  max-height: 100lvh;
  overflow: hidden;
  box-sizing: border-box;
}

.vt-timer:has(.vt-timer__shell.is-fs-active),
.vt-timer:has(.vt-timer__shell:fullscreen) {
  max-width: none;
  margin: 0;
  width: 100%;
}

body.vt-timer-fs-active {
  overflow: hidden;
}

body.vt-timer-fs-active .wp-site-blocks > header,
body.vt-timer-fs-active .wp-site-blocks > footer,
body.vt-timer-fs-active .vt-ad,
body.vt-timer-fs-active .vt-ad-sidebar {
  display: none !important;
}

.vt-timer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem; /* ~14px — Ready sits close under the visualization */
  margin-bottom: 1.1rem;
  min-width: 0;
  height: auto;
}

.vt-timer__shell--split .vt-timer__stage {
  gap: 0.9rem; /* 12–16px under viz */
}

.vt-timer__viz {
  position: relative;
  width: var(--vt-viz-size);
  max-width: 320px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.vt-timer__canvas {
  width: 100%;
  height: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  display: block;
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
}

.vt-timer__canvas[hidden],
.vt-timer__canvas--hidden {
  display: none !important;
}

.vt-timer__fields[hidden],
.vt-timer__chips[hidden],
.vt-timer__laps[hidden],
.vt-timer__interval-fields[hidden],
.vt-timer__quiz-fields[hidden],
.vt-timer__date-fields[hidden],
.vt-timer__breath-fields[hidden],
.vt-timer__traffic-fields[hidden],
.vt-timer__chime-fields[hidden],
.vt-timer__progress[hidden],
.vt-timer__phase[hidden],
.vt-btn[hidden] {
  display: none !important;
}

.vt-timer__digits {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  pointer-events: none;
  font-family: "Fraunces", "Source Serif 4", Georgia, serif;
  font-size: clamp(2.1rem, 6vw, 2.85rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1;
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.vt-timer__digits .vt-timer__clock {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-family: inherit;
}

.vt-timer__digits .vt-timer__time,
.vt-timer__digits .vt-timer__ms {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.vt-timer__digits .vt-timer__ms {
  font-size: 0.62em;
  font-weight: 650;
  opacity: 0.88;
  letter-spacing: 0.01em;
  margin-left: 0.02em;
  /* Fixed ms width so .000–.999 never shift the clock */
  display: inline-block;
  min-width: 3.2ch;
  text-align: left;
}

.vt-timer__shell:fullscreen .vt-timer__digits .vt-timer__ms,
:fullscreen .vt-timer__digits .vt-timer__ms,
.vt-timer__shell.is-fs-active .vt-timer__digits .vt-timer__ms {
  font-size: 0.58em;
}

.vt-timer__phase {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vt-accent);
  z-index: 1;
  white-space: nowrap;
}

/* ——— Classic Pomodoro (disc): centered readout + equal action row ——— */
.vt-timer__shell--pomodoro .vt-timer__viz {
  isolation: isolate;
  overflow: hidden; /* keep readout clipped to the ring */
}

/*
 * Shrink-wrap the time+phase stack and park its geometric center on the disc
 * center. A tall fixed box previously left FOCUS near the inner ring edge.
 * Inner canvas cutout is ~62% of radius — keep the stack ≤ ~46% of viz.
 */
.vt-timer__shell--pomodoro .vt-timer__readout {
  position: absolute;
  /* Do not set inset — it would reset top/left and break centering. */
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: none;
  width: max-content;
  max-width: 46%;
  height: auto;
  max-height: 46%;
  margin: 0;
  padding: 0.15rem 0.35rem;
  box-sizing: border-box;
  text-align: center;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.vt-timer__shell--pomodoro .vt-timer__digits {
  position: static;
  inset: auto;
  display: block;
  margin: 0;
  padding: 0;
  width: auto;
  max-width: 100%;
  font-size: clamp(1.7rem, 5vw, 2.35rem);
  line-height: 1;
  z-index: auto;
  grid-area: unset;
  opacity: 1;
  transform: none;
}

.vt-timer__shell--pomodoro .vt-timer__phase {
  position: static;
  inset: auto;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 0;
  width: auto;
  max-width: 100%;
  font-size: clamp(0.7rem, 2.2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vt-accent, #0f766e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  z-index: auto;
  line-height: 1.15;
  flex: 0 0 auto;
}

.vt-timer__shell--pomodoro .vt-timer__status {
  margin: 0;
  opacity: 1;
}

/* Pomodoro inherits the shared equal-width action grid; keep FS toolbar centered. */
.vt-timer__shell--pomodoro:fullscreen .vt-timer__controls,
.vt-timer__shell--pomodoro:fullscreen .vt-timer__row--actions .vt-timer__controls,
.vt-timer__shell--pomodoro.is-fs-active .vt-timer__controls,
.vt-timer__shell--pomodoro.is-fs-active .vt-timer__row--actions .vt-timer__controls {
  display: grid !important;
  grid-template-columns: repeat(var(--vt-action-cols, 3), minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  justify-content: stretch;
}

.vt-timer__shell--pomodoro:fullscreen .vt-timer__readout,
.vt-timer__shell--pomodoro.is-fs-active .vt-timer__readout {
  gap: 0.55rem;
  max-width: 44%;
  max-height: 44%;
}

.vt-timer__shell--pomodoro:fullscreen .vt-timer__digits,
.vt-timer__shell--pomodoro.is-fs-active .vt-timer__digits {
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
}

.vt-timer__shell--pomodoro:fullscreen .vt-timer__phase,
.vt-timer__shell--pomodoro.is-fs-active .vt-timer__phase {
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
}

@media (max-width: 640px) {
  .vt-timer__shell--pomodoro .vt-timer__readout {
    max-width: 48%;
    max-height: 48%;
    gap: 0.45rem;
  }

  .vt-timer__shell--pomodoro .vt-timer__digits {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
  }

  .vt-timer__shell--pomodoro .vt-timer__phase {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }
}

.vt-timer__status {
  margin: 0;
  text-align: center;
  color: var(--vt-muted);
  font-size: 0.95rem;
  line-height: 1.3;
}

.vt-timer__panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--vt-row-gap); /* ~16px between Duration / Presets / Actions / Advanced */
}

.vt-timer__row {
  display: flex;
  flex-direction: column;
  gap: var(--vt-inrow-gap); /* 10–12px within a row */
  min-width: 0;
}

.vt-timer__row:not(:has(*)) {
  display: none;
}

.vt-timer__row--advanced {
  margin-top: 0;
  padding-top: 0;
}

/* Shared action row: equal-width Start|Reset|Fullscreen (or N visible actions). */
.vt-timer__row--actions {
  width: 100%;
  min-width: 0;
}

.vt-timer__row--actions .vt-timer__controls {
  display: grid;
  grid-template-columns: repeat(var(--vt-action-cols, 3), minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: stretch;
  justify-items: stretch;
  flex-wrap: nowrap;
  box-sizing: border-box;
  margin-bottom: 0;
}

.vt-timer__row--actions .vt-timer__controls > .vt-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--vt-control-h);
  min-height: var(--vt-control-h);
  max-height: var(--vt-control-h);
  flex: none;
  margin: 0;
  padding: 0.5rem 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  align-self: stretch;
  text-align: center;
  box-sizing: border-box;
}

.vt-timer__row--duration,
.vt-timer__row--presets {
  width: 100%;
  min-width: 0;
}

.vt-timer__fields,
.vt-timer__interval-fields,
.vt-timer__pomodoro-break,
.vt-timer__quiz-fields,
.vt-timer__date-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--vt-gap);
  margin-bottom: 0;
}

.vt-timer__pomodoro-break {
  margin-top: var(--vt-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vt-timer__pomodoro-break .vt-timer__chips {
  grid-column: 1 / -1;
}

/* wpautop may inject <br> between labels — those must not become grid items */
.vt-timer__fields > br,
.vt-timer__interval-fields > br,
.vt-timer__pomodoro-break > br,
.vt-timer__quiz-fields > br,
.vt-timer__date-fields > br,
.vt-timer__breath-fields > br,
.vt-timer__panel > br,
.vt-timer__fields label > br,
.vt-timer__interval-fields label > br,
.vt-timer__pomodoro-break label > br,
.vt-timer__quiz-fields label > br,
.vt-timer__date-fields label > br,
.vt-timer__breath-fields label > br {
  display: none !important;
}

.vt-timer__date-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vt-timer__interval-fields label,
.vt-timer__pomodoro-break label,
.vt-timer__quiz-fields label,
.vt-timer__date-fields label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--vt-muted);
}

.vt-timer__interval-fields input,
.vt-timer__pomodoro-break input,
.vt-timer__quiz-fields input,
.vt-timer__date-fields input {
  width: 100%;
  border: 1px solid var(--vt-border);
  border-radius: 0.75rem;
  padding: 0.7rem 0.75rem;
  font-size: 1rem;
  background: #fff;
  color: var(--vt-ink);
}

.vt-timer__quiz-fields .vt-timer__chips {
  grid-column: 1 / -1;
}

.vt-timer__progress {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vt-accent);
  text-align: center;
}

.vt-timer__disclaimer {
  font-size: 0.85rem;
  color: var(--vt-muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.vt-timer__duration {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  width: 100%;
}

.vt-timer__duration-label {
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--vt-ink);
}

.vt-timer__duration-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--vt-muted);
}

.vt-timer__fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--vt-muted);
  min-width: 0;
}

.vt-timer__fields input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: var(--vt-input-h);
  min-height: var(--vt-input-h);
  border: 1.5px solid rgba(15, 23, 42, 0.22);
  border-radius: 0.65rem;
  padding: 0.4rem 0.55rem;
  font-size: 1.05rem;
  appearance: textfield;
  -moz-appearance: textfield;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.vt-timer__fields input:focus,
.vt-timer__fields input:focus-visible {
  border-color: var(--vt-accent);
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  background: #fff;
  color: var(--vt-ink);
}

.vt-timer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0;
}

/* Presets: equal cells, full-width aligned with duration inputs (no text-driven width). */
.vt-timer__row--presets .vt-timer__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--vt-inrow-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vt-timer__row--presets .vt-timer__chips button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  box-sizing: border-box;
  height: var(--vt-control-h);
  min-height: var(--vt-control-h);
  padding: 0.4rem 0.35rem;
}

.vt-timer__chips button {
  border: 1px solid var(--vt-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--vt-ink);
  border-radius: 0.55rem;
  padding: 0.4rem 0.7rem;
  min-height: 2.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.vt-timer__chips button.is-selected,
.vt-timer__chips button[aria-pressed='true'] {
  border-color: var(--vt-accent, #0f766e);
  background: color-mix(in srgb, var(--vt-accent, #0f766e) 14%, #fff);
  color: var(--vt-accent, #0f766e);
}

.vt-timer__chips button:hover:not(:disabled) {
  border-color: var(--vt-accent);
  color: var(--vt-accent);
}

.vt-timer__controls {
  display: grid;
  grid-template-columns: repeat(var(--vt-action-cols, 3), minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0;
  align-items: stretch;
  box-sizing: border-box;
}

/* Beat theme.json / WP element button styles that inflate native <button> */
.vt-timer .vt-btn,
.vt-timer button.vt-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--vt-border);
  background: #fff;
  color: var(--vt-ink);
  border-radius: 0.65rem;
  padding: 0.5rem 0.55rem;
  height: var(--vt-control-h);
  min-height: var(--vt-control-h);
  max-height: var(--vt-control-h);
  line-height: 1.2;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: none;
  text-decoration: none;
}

/* Primary action row only — equal-width cells; do not stretch Advanced ghost buttons. */
.vt-timer__controls .vt-btn,
.vt-timer__controls button.vt-btn,
.vt-timer__row--actions .vt-timer__controls .vt-btn {
  width: 100%;
  max-width: 100%;
}

.vt-btn {
  appearance: none;
  border: 1px solid var(--vt-border);
  background: #fff;
  color: var(--vt-ink);
  border-radius: 0.65rem;
  padding: 0.5rem 1rem;
  min-height: var(--vt-control-h);
  height: var(--vt-control-h);
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vt-btn:hover,
.vt-timer .vt-btn:hover {
  border-color: var(--vt-accent);
}

.vt-btn--primary,
.vt-timer .vt-btn--primary,
.vt-timer button.vt-btn--primary {
  background: var(--vt-accent) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.vt-timer button.vt-btn--primary:hover {
  background: #0d9488 !important;
  border-color: transparent !important;
  color: #fff !important;
}

.vt-btn--ghost,
.vt-timer .vt-btn--ghost {
  background: transparent;
}

.vt-btn:disabled,
.vt-timer__chips button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.vt-timer__advanced {
  margin-top: 0;
  border-top: 1px solid var(--vt-border);
  padding-top: 1rem; /* ~16px above Advanced divider */
  color: var(--vt-muted);
}

.vt-timer__advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--vt-ink);
  padding: 0.2rem 0;
}

.vt-timer__advanced summary:focus-visible {
  outline: 3px solid var(--vt-accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.vt-timer__toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.55rem 0;
}

.vt-timer__warning-prefs {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.vt-timer__volume {
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: var(--vt-muted);
  margin: 0.55rem 0;
}

.vt-timer__volume input[type="range"],
.vt-timer__volume select {
  width: 100%;
  max-width: 16rem;
}

.vt-timer__volume select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--vt-border);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--vt-ink);
}

.vt-timer__warning-interval {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.vt-timer__warning-interval legend {
  font-weight: 650;
  margin-bottom: 0.2rem;
  padding: 0;
}

.vt-timer__audio-hint {
  margin: 0;
  font-size: 0.88rem;
  color: #9a3412;
}

.vt-timer__laps {
  margin: 0.25rem 0 0;
  padding: 0;
  width: 100%;
  overflow-x: auto;
  color: var(--vt-ink);
}

.vt-timer__lap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.vt-timer__lap-table th,
.vt-timer__lap-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  white-space: nowrap;
}

.vt-timer__lap-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vt-muted);
  border-bottom-color: rgba(15, 23, 42, 0.16);
}

.vt-timer__lap-table tbody th {
  font-weight: 650;
  color: var(--vt-ink);
}

.vt-timer__lap-time {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.vt-timer__lap-row.is-fastest {
  background: rgba(15, 118, 110, 0.08);
}

.vt-timer__lap-row.is-slowest {
  background: rgba(15, 23, 42, 0.04);
}

.vt-timer__lap-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.08rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.vt-timer__lap-row.is-fastest .vt-timer__lap-tag {
  background: rgba(15, 118, 110, 0.16);
  color: #0f766e;
}

.vt-timer__lap-row.is-slowest .vt-timer__lap-tag {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.vt-timer__notice {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.vt-directory__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.vt-directory__field {
  display: flex;
  flex: 1 1 12rem;
  min-width: 10rem;
}

.vt-directory__filters input[type="search"],
.vt-directory__filters select {
  border: 1px solid var(--vt-border, rgba(15, 23, 42, 0.12));
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  width: 100%;
  background: #fff;
  font: inherit;
}

.vt-directory__filters .vt-btn {
  flex: 0 0 auto;
}

.vt-directory__clear {
  color: #0f766e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vt-directory__count {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.95rem;
}

.vt-directory__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.25rem 0 0;
}

.vt-directory__page {
  display: inline-flex;
  min-width: 2rem;
  justify-content: center;
  padding: 0.35rem 0.55rem;
  color: #0f766e;
  text-decoration: none;
  border-radius: 6px;
}

.vt-directory__page.is-current {
  background: #ccfbf1;
  color: #134e4a;
  font-weight: 600;
}

.vt-directory__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .vt-directory__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .vt-directory__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.vt-directory__item {
  position: relative;
  z-index: 0;
  list-style: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Entire card is one native link — no overlays, no nested controls */
a.vt-directory__card {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch; /* body column must fill card height for margin-top: auto */
  padding: 0.9rem 1rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fffdf9, #fffaf4);
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

a.vt-directory__card::before,
a.vt-directory__card::after {
  content: none !important;
  display: none !important;
  pointer-events: none !important;
}

/* wpautop can inject <br> into shortcode-rendered cards; keep them out of the grid */
a.vt-directory__card > br,
.vt-directory__body > br,
.vt-directory__actions > br,
.vt-directory__item > br {
  display: none !important;
}

a.vt-directory__card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, #ffffff, #fffaf4);
}

a.vt-directory__card:focus {
  outline: none;
}

a.vt-directory__card:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
  border-color: #0f766e;
}

.vt-directory__thumb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0.85rem;
  background: #ecfdf5;
  display: grid;
  place-items: center;
  align-self: start;
  flex-shrink: 0;
}

.vt-directory__thumb svg {
  width: 3rem;
  height: 3rem;
}

.vt-directory__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.vt-directory__title {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  color: #0f172a;
}

.vt-directory__meta {
  display: block;
  margin: 0;
  font-size: 0.85rem;
  color: #0f766e;
  font-weight: 650;
}

.vt-directory__excerpt {
  display: block;
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Pins Open Timer to the card bottom once .vt-directory__body fills height */
.vt-directory__actions {
  display: flex;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 0.55rem; /* minimum gap above action when descriptions are short */
  min-height: 2.45rem;
  flex-shrink: 0;
}

/* Visual label only — not a nested link/button */
.vt-directory__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  min-height: 2.1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.6rem;
  background: #0f766e;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
}

a.vt-directory__card:hover .vt-directory__open,
a.vt-directory__card:focus-visible .vt-directory__open {
  background: #115e59;
  color: #fff !important;
}

.vt-directory__empty {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  color: #475569;
}

/* Egg doneness UI */
.vt-egg-doneness {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0.35rem;
}

.vt-egg-doneness__btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 650;
  cursor: pointer;
  color: #0f172a;
}

.vt-egg-doneness__btn.is-selected,
.vt-egg-doneness__btn[aria-pressed="true"] {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.vt-egg-doneness__btn:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
}

.vt-egg-selected {
  margin: 0.25rem 0 0.5rem;
  color: #475569;
  font-size: 0.95rem;
}

.vt-timer__shell--egg .vt-timer__digits {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
}

@media (max-width: 640px) {
  .vt-timer__row--actions .vt-timer__controls,
  .vt-timer__controls {
    gap: 10px;
  }

  .vt-timer__row--actions .vt-timer__controls > .vt-btn,
  .vt-timer__controls .vt-btn {
    flex: none !important;
    width: 100% !important;
    min-width: 0;
    padding: 0.45rem 0.25rem;
    font-size: 0.8rem;
  }
}

/* Extreme narrow / large text: stack rather than clip labels. */
@media (max-width: 360px) {
  .vt-timer__row--actions .vt-timer__controls,
  .vt-timer__controls {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vt-btn,
  .vt-directory__item a {
    transition: none;
  }
}

body.vt-reduced-motion .vt-btn,
body.vt-reduced-motion .vt-directory__item a {
  transition: none;
}

/* Accessibility: visible focus, SR helper, ads rules */
.vt-btn:focus-visible,
.vt-timer__chips button:focus-visible,
.vt-timer__fields input:focus-visible,
.vt-timer__interval-fields input:focus-visible,
.vt-timer__quiz-fields input:focus-visible,
.vt-timer__date-fields input:focus-visible,
.vt-directory__filters input:focus-visible,
.vt-directory__filters select:focus-visible {
  outline: 3px solid var(--vt-accent);
  outline-offset: 2px;
}

.vt-timer__sr,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ads: never cover controls; hidden in fullscreen */
.vt-ad {
  margin: 1.25rem auto;
  max-width: 42rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
  position: relative;
  z-index: 0;
  pointer-events: auto;
}

.vt-ad__inner,
.vt-ad__consent {
  min-height: 2.5rem;
}

.vt-ad--editorial {
  min-height: 4rem;
}

.vt-ad-sidebar {
  display: none;
}

@media (min-width: 1100px) {
  .vt-ad-sidebar {
    display: block;
    position: fixed;
    top: 6rem;
    right: 1rem;
    width: 160px;
    z-index: 1;
  }
}

.vt-timer__shell:fullscreen .vt-ad,
.vt-timer__shell:-webkit-full-screen .vt-ad,
:fullscreen .vt-ad,
:-webkit-full-screen .vt-ad {
  display: none !important;
}

/* Keep ads below controls in stacking/order — never absolute over Start/Reset */
.vt-timer__controls,
.vt-timer__chips,
.vt-timer__fields {
  position: relative;
  z-index: 2;
}

/* Reserve below-timer slot so consent ↔ creative swap does not shift layout (CLS). */
.vt-ad--below_timer {
  margin-top: 1.5rem;
  min-height: 6.5rem;
}

.vt-ad--sidebar .vt-ad__inner,
.vt-ad--sidebar .vt-ad__consent {
  min-height: 250px;
}

/* Classroom — large digits for projection */
.vt-timer__shell--classroom .vt-timer__digits {
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 750;
  letter-spacing: 0.04em;
}

.vt-timer__shell--classroom .vt-timer__stage {
  min-height: 22rem;
}

.vt-timer__shell--classroom .vt-timer__chips button {
  min-height: 2.75rem;
  font-size: 1.05rem;
  padding: 0.55rem 1rem;
}

/* Presentation traffic light */
.vt-traffic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.vt-traffic__light {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  opacity: 0.28;
  border: 2px solid rgba(15, 23, 42, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vt-traffic__light.is-on {
  opacity: 1;
  transform: scale(1.12);
}

.vt-traffic__light--green {
  background: #22c55e;
}

.vt-traffic__light--yellow {
  background: #eab308;
}

.vt-traffic__light--red {
  background: #ef4444;
}

.vt-traffic__label {
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.vt-timer__shell--presentation[data-vt-signal="yellow"] .vt-timer__digits {
  color: #a16207;
}

.vt-timer__shell--presentation[data-vt-signal="red"] .vt-timer__digits {
  color: #b91c1c;
}

.vt-timer__traffic-fields,
.vt-timer__chime-fields,
.vt-timer__breath-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.vt-timer__traffic-fields label,
.vt-timer__chime-fields label,
.vt-timer__breath-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.vt-timer__traffic-fields input,
.vt-timer__chime-fields input,
.vt-timer__breath-fields input {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.5rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
}

.vt-timer__breath-fields .vt-timer__chips,
.vt-timer__chime-fields .vt-timer__chips {
  grid-column: 1 / -1;
}

/* Breathing */
.vt-timer__shell--breathing .vt-timer__digits {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-variant-numeric: tabular-nums;
}

/* Meditation */
.vt-timer__shell--meditation {
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.45), rgba(255, 255, 255, 0.9));
  border-radius: 1rem;
  padding: 0.5rem;
}

/* Multiple timers board */
.vt-multi__intro {
  margin: 0 0 1rem;
  color: #334155;
  font-size: 1rem;
}

.vt-multi__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 720px) {
  .vt-multi__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .vt-multi__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.vt-multi__slot {
  margin: 0;
  min-width: 0;
  isolation: isolate;
}

.vt-timer--slot {
  min-width: 0;
}

.vt-timer--slot .vt-timer__shell--slot {
  --vt-viz-size: min(100%, 220px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 0.85rem; /* 12–16px between label / viz / fields / presets / actions */
  overflow: hidden;
  position: relative;
}

.vt-multi__label {
  display: block;
  margin: 0;
}

.vt-multi__label input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(15, 118, 110, 0.35);
  background: transparent;
  font: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  padding: 0.25rem 0;
}

/* Each slot owns a square viz wrapper — digits overlay only that ring. */
.vt-timer--slot .vt-timer__stage {
  margin-bottom: 0;
  gap: 0.65rem;
  width: 100%;
}

.vt-timer--slot .vt-timer__viz {
  position: relative;
  width: var(--vt-viz-size);
  max-width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
  flex: 0 0 auto;
  isolation: isolate;
  overflow: hidden; /* clip any glyph overflow to this ring only */
}

.vt-timer--slot .vt-timer__canvas {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  display: block;
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
}

.vt-timer--slot .vt-timer__digits {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  grid-area: unset;
  width: auto;
  font-size: clamp(1.2rem, 4.2vw, 1.85rem);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.vt-timer--slot .vt-timer__status {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
}

.vt-timer--slot .vt-timer__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem; /* 12px */
  margin: 0;
}

.vt-timer--slot .vt-timer__chips--multi,
.vt-timer--slot .vt-timer__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.65rem;
  margin: 0;
}

.vt-timer--slot .vt-timer__chips button {
  width: 100%;
  justify-content: center;
}

.vt-timer--slot .vt-timer__controls {
  display: grid;
  grid-template-columns: repeat(var(--vt-action-cols, 3), minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  width: 100%;
}

.vt-timer--slot .vt-timer__controls .vt-btn {
  flex: none;
  min-width: 0;
  width: 100%;
  padding: 0.4rem 0.25rem;
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  .vt-traffic__light {
    transition: none;
  }
}

body.vt-reduced-motion .vt-traffic__light {
  transition: none;
}

/* ——— Sand hourglass: split layout, digits below viz (never overlapping) ——— */
.vt-timer__shell--sand {
  --vt-viz-size: min(100%, 280px);
}

.vt-timer__shell--sand .vt-timer__stage {
  gap: 0.65rem;
  width: 100%;
}

.vt-timer__shell--sand .vt-timer__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  aspect-ratio: auto;
  width: min(100%, 280px);
  max-width: 280px;
  margin-inline: auto;
  place-items: unset;
  min-width: 0;
}

.vt-timer__shell--sand .vt-timer__canvas {
  grid-area: unset;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  margin-inline: auto;
  justify-self: unset;
  align-self: unset;
  min-width: 0;
  display: block;
}

.vt-timer__shell--sand .vt-timer__digits {
  position: static;
  inset: auto;
  grid-area: unset;
  display: block;
  width: 100%;
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  text-align: center;
  pointer-events: none;
}

.vt-timer__shell--sand .vt-timer__phase {
  position: static;
  inset: auto;
  transform: none;
  bottom: auto;
  left: auto;
  margin-top: 0.15rem;
}

.vt-timer__shell--sand .vt-timer__status {
  margin-top: 0.1rem;
}

@media (min-width: 768px) {
  .vt-timer__shell--sand.vt-timer__shell--split {
    align-items: start;
  }

  .vt-timer__shell--sand .vt-timer__viz {
    width: min(100%, 300px);
    max-width: 300px;
  }
}

/* ——— Candle: split layout, digits below viz (never overlapping) ——— */
.vt-timer__shell--candle {
  --vt-viz-size: min(100%, 280px);
}

.vt-timer__shell--candle .vt-timer__stage {
  gap: 0.65rem;
  width: 100%;
}

.vt-timer__shell--candle .vt-timer__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  aspect-ratio: auto;
  width: min(100%, 280px);
  max-width: 280px;
  margin-inline: auto;
  place-items: unset;
  min-width: 0;
}

.vt-timer__shell--candle .vt-timer__canvas {
  grid-area: unset;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 5 / 6;
  height: auto;
  margin-inline: auto;
  justify-self: unset;
  align-self: unset;
  min-width: 0;
  display: block;
}

.vt-timer__shell--candle .vt-timer__digits {
  position: static;
  inset: auto;
  grid-area: unset;
  display: block;
  width: 100%;
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  pointer-events: none;
}

.vt-timer__shell--candle .vt-timer__phase {
  position: static;
  inset: auto;
  transform: none;
  bottom: auto;
  left: auto;
  margin-top: 0.15rem;
}

.vt-timer__shell--candle .vt-timer__status {
  margin-top: 0.1rem;
}

@media (min-width: 768px) {
  .vt-timer__shell--candle.vt-timer__shell--split {
    align-items: start;
  }

  .vt-timer__shell--candle .vt-timer__viz {
    width: min(100%, 300px);
    max-width: 300px;
  }
}

/* ——— Fullscreen presentation (same timer instance) ——— */
.vt-timer__shell:fullscreen .vt-timer__stage,
.vt-timer__shell:-webkit-full-screen .vt-timer__stage,
.vt-timer__shell.is-fs-active .vt-timer__stage {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  text-align: center;
}

.vt-timer__shell:fullscreen .vt-timer__panel,
.vt-timer__shell:-webkit-full-screen .vt-timer__panel,
.vt-timer__shell.is-fs-active .vt-timer__panel {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  gap: 0;
  align-items: center;
  padding: 0.65rem 0.75rem max(1rem, calc(0.65rem + env(safe-area-inset-bottom)));
  /* Reserve toolbar band so controls never cover countdown */
  min-height: calc(var(--vt-control-h) + 1.5rem + env(safe-area-inset-bottom, 0px));
}

.vt-timer__shell:fullscreen.vt-timer__shell--split,
.vt-timer__shell.is-fs-active.vt-timer__shell--split {
  display: flex;
  grid-template-columns: none;
  align-items: stretch;
}

.vt-timer__shell:fullscreen .vt-timer__row--duration,
.vt-timer__shell:fullscreen .vt-timer__row--presets,
.vt-timer__shell:-webkit-full-screen .vt-timer__row--duration,
.vt-timer__shell:-webkit-full-screen .vt-timer__row--presets,
.vt-timer__shell.is-fs-active .vt-timer__row--duration,
.vt-timer__shell.is-fs-active .vt-timer__row--presets {
  display: none !important;
}

.vt-timer__shell:fullscreen .vt-timer__row--advanced:not(.is-fs-settings-open),
.vt-timer__shell:-webkit-full-screen .vt-timer__row--advanced:not(.is-fs-settings-open),
.vt-timer__shell.is-fs-active .vt-timer__row--advanced:not(.is-fs-settings-open) {
  display: none !important;
}

.vt-timer__shell:fullscreen .vt-timer__row--advanced.is-fs-settings-open,
.vt-timer__shell:-webkit-full-screen .vt-timer__row--advanced.is-fs-settings-open,
.vt-timer__shell.is-fs-active .vt-timer__row--advanced.is-fs-settings-open {
  display: flex !important;
  position: absolute;
  left: 50%;
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  transform: translateX(-50%);
  width: min(28rem, calc(100% - 2rem));
  max-height: min(50vh, 22rem);
  overflow: auto;
  background: rgba(255, 253, 249, 0.97);
  border: 1px solid var(--vt-border);
  border-radius: 0.85rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 0.85rem 1rem;
  z-index: 5;
}

.vt-timer__shell:fullscreen .vt-timer__row--advanced.is-fs-settings-open .vt-timer__advanced,
.vt-timer__shell.is-fs-active .vt-timer__row--advanced.is-fs-settings-open .vt-timer__advanced {
  border-top: 0;
  padding-top: 0;
}

.vt-timer__shell:fullscreen .vt-timer__row--actions,
.vt-timer__shell.is-fs-active .vt-timer__row--actions {
  width: 100%;
  align-items: center;
}

.vt-timer__shell:fullscreen .vt-timer__controls,
.vt-timer__shell:-webkit-full-screen .vt-timer__controls,
.vt-timer__shell.is-fs-active .vt-timer__controls {
  display: grid;
  grid-template-columns: repeat(var(--vt-action-cols, 3), minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  justify-items: stretch;
}

.vt-timer__shell:fullscreen .vt-btn[data-vt-fs-settings],
.vt-timer__shell:fullscreen .vt-btn[data-vt-fs-mute],
.vt-timer__shell:-webkit-full-screen .vt-btn[data-vt-fs-settings],
.vt-timer__shell:-webkit-full-screen .vt-btn[data-vt-fs-mute],
.vt-timer__shell.is-fs-active .vt-btn[data-vt-fs-settings],
.vt-timer__shell.is-fs-active .vt-btn[data-vt-fs-mute] {
  display: inline-flex !important;
}

.vt-timer__shell:fullscreen .vt-timer__digits,
.vt-timer__shell:-webkit-full-screen .vt-timer__digits,
.vt-timer__shell.is-fs-active .vt-timer__digits {
  font-size: clamp(2.6rem, 8vw, 4.25rem);
}

.vt-timer__shell:fullscreen .vt-timer__status,
.vt-timer__shell.is-fs-active .vt-timer__status {
  font-size: 0.9rem;
  opacity: 0.9;
}

.vt-timer__shell:fullscreen .vt-timer__viz,
.vt-timer__shell.is-fs-active .vt-timer__viz {
  width: min(72vmin, 420px);
  max-width: min(72vmin, 420px);
}

.vt-timer__shell:fullscreen .vt-timer__canvas,
.vt-timer__shell.is-fs-active .vt-timer__canvas {
  max-width: min(72vmin, 420px);
}

/* Candle / sand fullscreen: viz sized from dynamic viewport; canvas never wider than viz */
.vt-timer__shell--candle:fullscreen .vt-timer__viz,
.vt-timer__shell--candle.is-fs-active .vt-timer__viz,
.vt-timer__shell--sand:fullscreen .vt-timer__viz,
.vt-timer__shell--sand.is-fs-active .vt-timer__viz {
  width: min(48vw, 52vh, 52dvh, 380px);
  max-width: min(48vw, 52vh, 52dvh, 380px);
  margin-inline: auto;
  align-items: center;
  min-width: 0;
}

.vt-timer__shell--candle:fullscreen .vt-timer__canvas,
.vt-timer__shell--candle.is-fs-active .vt-timer__canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin-inline: auto;
  aspect-ratio: 5 / 6;
  min-width: 0;
}

.vt-timer__shell--sand:fullscreen .vt-timer__canvas,
.vt-timer__shell--sand.is-fs-active .vt-timer__canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  min-width: 0;
}

.vt-timer__shell--candle:fullscreen .vt-timer__digits,
.vt-timer__shell--candle.is-fs-active .vt-timer__digits,
.vt-timer__shell--sand:fullscreen .vt-timer__digits,
.vt-timer__shell--sand.is-fs-active .vt-timer__digits {
  position: static;
  text-align: center;
  width: 100%;
  margin-inline: auto;
  font-size: clamp(2.8rem, 8vmin, 4.75rem);
}

.vt-timer__shell--candle:fullscreen .vt-timer__status,
.vt-timer__shell--candle.is-fs-active .vt-timer__status,
.vt-timer__shell--sand:fullscreen .vt-timer__status,
.vt-timer__shell--sand.is-fs-active .vt-timer__status {
  text-align: center;
  width: 100%;
  margin-inline: auto;
}

@media (max-height: 500px) and (orientation: landscape) {
  .vt-timer__shell:fullscreen,
  .vt-timer__shell.is-fs-active {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.75rem;
    padding: 0.5rem max(0.75rem, env(safe-area-inset-right))
      max(0.5rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    overflow: auto;
  }

  .vt-timer__shell:fullscreen .vt-timer__stage,
  .vt-timer__shell.is-fs-active .vt-timer__stage {
    flex: 1 1 auto;
    min-width: 12rem;
    justify-content: center;
    align-items: center;
  }

  .vt-timer__shell:fullscreen .vt-timer__panel,
  .vt-timer__shell.is-fs-active .vt-timer__panel {
    flex: 0 0 auto;
    width: auto;
    min-width: 11rem;
    min-height: 0;
    padding: 0.35rem 0;
  }

  .vt-timer__shell:fullscreen .vt-timer__controls,
  .vt-timer__shell.is-fs-active .vt-timer__controls {
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 14rem;
  }

  .vt-timer__shell:fullscreen .vt-timer__viz,
  .vt-timer__shell.is-fs-active .vt-timer__viz,
  .vt-timer__shell--candle:fullscreen .vt-timer__viz,
  .vt-timer__shell--candle.is-fs-active .vt-timer__viz,
  .vt-timer__shell--sand:fullscreen .vt-timer__viz,
  .vt-timer__shell--sand.is-fs-active .vt-timer__viz {
    width: min(28vw, 38vh, 38dvh, 220px);
    max-width: min(28vw, 38vh, 38dvh, 220px);
    margin-inline: auto;
  }

  .vt-timer__shell--sand:fullscreen .vt-timer__canvas,
  .vt-timer__shell--sand.is-fs-active .vt-timer__canvas,
  .vt-timer__shell--candle:fullscreen .vt-timer__canvas,
  .vt-timer__shell--candle.is-fs-active .vt-timer__canvas {
    width: 100% !important;
    max-width: 100% !important;
  }

  .vt-timer__shell:fullscreen .vt-timer__digits,
  .vt-timer__shell.is-fs-active .vt-timer__digits {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }
}

/* ——— Stopwatch: tight card, tabular clock, lap table ——— */
.vt-timer--stopwatch {
  max-width: 36rem;
}

.vt-timer--stopwatch .vt-timer__shell {
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.14);
}

.vt-timer--stopwatch .vt-timer__stage {
  gap: 0.75rem; /* 12px under time → status */
  margin-bottom: 1.5rem; /* 24px under status → actions */
  width: 100%;
}

.vt-timer--stopwatch .vt-timer__viz {
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  /* Match digit clamp so late font swap does not collapse the stage (CLS). */
  min-height: clamp(2.75rem, 11vw, 4.25rem);
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.vt-timer--stopwatch .vt-timer__digits {
  position: static;
  inset: auto;
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0;
  margin: 0;
  font-size: clamp(2.75rem, 11vw, 4.25rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1;
  min-height: 1.1em;
  /* Reserve width for HH:MM:SS.mmm so growing hours don’t jump layout */
  min-width: 7.5ch;
  text-align: center;
}

.vt-timer--stopwatch .vt-timer__digits .vt-timer__ms {
  font-size: 0.55em;
  min-width: 3.35ch;
  opacity: 0.9;
}

.vt-timer--stopwatch .vt-timer__status {
  font-size: 0.9rem;
  margin-top: 0;
}

.vt-timer--stopwatch .vt-timer__panel {
  gap: 0.85rem;
  align-items: stretch;
}

.vt-timer--stopwatch .vt-timer__row--actions {
  align-items: center;
}

.vt-timer--stopwatch .vt-timer__controls {
  display: grid;
  grid-template-columns: repeat(var(--vt-action-cols, 3), minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  justify-items: stretch;
}

.vt-timer--stopwatch .vt-timer__controls .vt-btn {
  min-width: 0;
  width: 100%;
  flex: none;
}

.vt-timer--stopwatch .vt-timer__row--advanced {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.vt-timer--stopwatch .vt-timer__advanced {
  padding-top: 0.75rem;
}

.vt-timer--stopwatch .vt-timer__laps {
  margin-top: 0.15rem;
}

.vt-timer--stopwatch .vt-timer__shell:fullscreen,
.vt-timer--stopwatch .vt-timer__shell.is-fs-active {
  max-width: none;
}

.vt-timer--stopwatch .vt-timer__shell:fullscreen .vt-timer__digits,
.vt-timer--stopwatch .vt-timer__shell.is-fs-active .vt-timer__digits {
  font-size: clamp(3.25rem, 12vw, 5.5rem);
  min-width: 8ch;
}

@media (max-width: 480px) {
  .vt-timer--stopwatch .vt-timer__shell {
    padding: 1.1rem 1rem 1rem;
  }

  .vt-timer--stopwatch .vt-timer__digits {
    font-size: clamp(2.35rem, 13vw, 3.1rem);
  }

  .vt-timer--stopwatch .vt-timer__controls {
    gap: 10px;
  }

  .vt-timer--stopwatch .vt-timer__controls .vt-btn {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 0.45rem 0.25rem;
    font-size: 0.8rem;
  }

  .vt-timer--stopwatch .vt-timer__lap-table {
    font-size: 0.86rem;
  }

  .vt-timer--stopwatch .vt-timer__lap-table th,
  .vt-timer--stopwatch .vt-timer__lap-table td {
    padding: 0.4rem 0.4rem;
  }
}

/* ===== Chess clock ===== */
.vt-timer--chess {
  --vt-chess-cream: #fffaf4;
  --vt-chess-ink: #0f172a;
  --vt-chess-navy: #1e293b;
  --vt-chess-emerald: #0f766e;
  --vt-chess-panel: #f8fafc;
  --vt-chess-edge: rgba(15, 23, 42, 0.12);
}

.vt-chess {
  display: grid;
  gap: 1rem;
  color: var(--vt-chess-ink);
}

.vt-chess__intro,
.vt-chess__hint {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.vt-chess__board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .vt-chess__board {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .vt-chess__player--black {
    order: 0;
  }
  .vt-chess__player--white {
    order: 0;
  }
}

.vt-chess__player {
  appearance: none;
  border: 3px solid var(--vt-chess-edge);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--vt-chess-cream) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 24px rgba(15, 23, 42, 0.08);
  color: inherit;
  text-align: left;
  padding: 1rem 1.1rem 1.15rem;
  min-height: 160px;
  display: grid;
  gap: 0.65rem;
  cursor: default;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.vt-chess__player:focus-visible {
  outline: 3px solid var(--vt-chess-emerald);
  outline-offset: 3px;
}

.vt-chess__player.is-active {
  border-color: var(--vt-chess-emerald);
  box-shadow:
    0 0 0 1px var(--vt-chess-emerald),
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 28px rgba(15, 118, 110, 0.16);
  cursor: pointer;
}

.vt-chess__player.is-inactive {
  opacity: 0.78;
}

.vt-chess__player.is-expired {
  border-color: #b91c1c;
  background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
}

.vt-chess__player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
}

.vt-chess__turn-label {
  font-weight: 700;
  color: var(--vt-chess-emerald);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0;
}

.vt-chess__player.is-active .vt-chess__turn-label {
  opacity: 1;
}

.vt-chess__name-display {
  font-weight: 700;
  color: var(--vt-chess-navy);
}

.vt-chess__moves {
  margin-left: auto;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.vt-chess__digits {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: "Fraunces", "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--vt-chess-ink);
  min-height: 1.15em;
}

.vt-chess__main {
  display: inline-block;
  min-width: 4.6ch;
  text-align: right;
}

.vt-chess__tenths {
  display: inline-block;
  width: 1.6ch;
  text-align: left;
  font-size: 0.55em;
  opacity: 0.85;
  transform: translateY(-0.15em);
}

.vt-chess__tenths.is-empty {
  visibility: hidden;
}

.vt-chess__status {
  margin: 0;
  font-weight: 600;
  color: var(--vt-chess-navy);
}

.vt-chess__controls,
.vt-chess__fs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vt-chess__fs-bar {
  display: none;
}

.vt-chess__settings {
  border: 1px solid var(--vt-chess-edge);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.35rem 0.85rem 0.85rem;
}

.vt-chess__settings > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.55rem 0;
  color: var(--vt-chess-navy);
}

.vt-chess__settings-body {
  display: grid;
  gap: 0.85rem;
}

.vt-chess__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vt-chess__presets button {
  border: 1px solid var(--vt-chess-edge);
  background: #fff;
  color: var(--vt-chess-navy);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-weight: 600;
  cursor: pointer;
}

.vt-chess__presets button:focus-visible {
  outline: 3px solid var(--vt-chess-emerald);
  outline-offset: 2px;
}

.vt-chess__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.vt-chess__fieldset legend {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.vt-chess__names,
.vt-chess__times,
.vt-chess__adjust-fields {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .vt-chess__names,
  .vt-chess__times,
  .vt-chess__adjust-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.vt-chess__settings label {
  display: grid;
  gap: 0.25rem;
  color: #334155;
  font-size: 0.92rem;
}

.vt-chess__fieldset label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vt-chess__settings input[type="text"],
.vt-chess__settings input[type="number"] {
  border: 1px solid var(--vt-chess-edge);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  background: #fff;
  color: var(--vt-chess-ink);
}

.vt-chess__rotate {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
}

/* Tabletop: black (upper on mobile stack) rotates for face-to-face */
@media (max-width: 767px) {
  .vt-chess--rotate-top .vt-chess__player--black {
    transform: rotate(180deg);
  }
}

/* Fullscreen chess */
.vt-chess:fullscreen,
.vt-chess.is-fs-active,
:fullscreen .vt-chess {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background: linear-gradient(165deg, #fffdf9 0%, #fffaf4 48%, #f5e6d3 100%);
  box-sizing: border-box;
  align-content: stretch;
}

.vt-chess:fullscreen .vt-chess__intro,
.vt-chess.is-fs-active .vt-chess__intro,
.vt-chess:fullscreen .vt-chess__settings,
.vt-chess.is-fs-active .vt-chess__settings:not([open]),
.vt-chess:fullscreen .vt-chess__controls,
.vt-chess.is-fs-active .vt-chess__controls {
  display: none;
}

.vt-chess:fullscreen .vt-chess__fs-bar,
.vt-chess.is-fs-active .vt-chess__fs-bar {
  display: flex;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: blur(6px);
  padding: 0.5rem 0;
}

.vt-chess:fullscreen .vt-chess__board,
.vt-chess.is-fs-active .vt-chess__board {
  flex: 1;
  min-height: min(70vh, 720px);
  align-items: stretch;
}

.vt-chess:fullscreen .vt-chess__player,
.vt-chess.is-fs-active .vt-chess__player {
  min-height: min(42vh, 420px);
}

.vt-chess:fullscreen .vt-chess__digits,
.vt-chess.is-fs-active .vt-chess__digits {
  font-size: clamp(3.5rem, 14vw, 7rem);
}

@media (max-height: 500px) and (orientation: landscape) {
  .vt-chess:fullscreen .vt-chess__board,
  .vt-chess.is-fs-active .vt-chess__board {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100dvh - 5rem);
  }
  .vt-chess:fullscreen .vt-chess__player,
  .vt-chess.is-fs-active .vt-chess__player {
    min-height: calc(100dvh - 5.5rem);
  }
  .vt-chess:fullscreen .vt-chess__digits,
  .vt-chess.is-fs-active .vt-chess__digits {
    font-size: clamp(2.4rem, 12vh, 4.5rem);
  }
}

.vt-timer:has(.vt-chess:fullscreen),
.vt-timer:has(.vt-chess.is-fs-active),
body:has(.vt-chess:fullscreen) .vt-site-header,
body:has(.vt-chess:fullscreen) .vt-site-footer,
body:has(.vt-chess:fullscreen) .vt-ad,
body:has(.vt-chess.is-fs-active) .vt-ad {
  /* hide chrome via fullscreen element; ads never cover clocks */
}

body:has(.vt-chess:fullscreen) .vt-ad,
.vt-chess:fullscreen ~ .vt-ad,
.vt-timer--chess:has(.is-fs-active) .vt-ad {
  display: none !important;
}

.vt-directory__thumb--chess svg {
  display: block;
}

/* ——— Tomato Timer (pomodoro engine + tomato viz) ——— */
.vt-timer__shell--tomato {
  --vt-accent: #c23b22;
  --vt-tomato-leaf: #2f6b3a;
  --vt-viz-size: min(100%, 280px);
  --vt-row-gap: 0.85rem; /* 12–16px */
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(194, 59, 34, 0.08), transparent 55%),
    linear-gradient(180deg, #fffdf9 0%, #fffaf4 100%);
}

.vt-timer__shell--tomato .vt-timer__stage {
  gap: 0.65rem;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}

.vt-timer__shell--tomato .vt-timer__viz {
  position: relative;
  width: var(--vt-viz-size);
  max-width: 280px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  min-width: 0;
  place-items: unset;
  /* Contain phase label to this timer instance (no absolute escape). */
  overflow: visible;
}

.vt-timer__shell--tomato .vt-timer__canvas,
.vt-timer__shell--tomato .vt-timer__ssr-tomato {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  height: auto;
  margin: 0;
  display: block;
  grid-area: unset;
}

/* Digits sit below the tomato (not overlaid) so FOCUS/countdown stay grouped. */
.vt-timer__shell--tomato .vt-timer__digits {
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  display: block;
  margin: 0.5rem 0 0;
  padding: 0.35rem 0.75rem;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: #1e293b;
  text-align: center;
  z-index: auto;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.75rem;
  box-sizing: border-box;
}

.vt-timer__shell--tomato .vt-timer__phase {
  position: static;
  inset: auto;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a2a18;
  white-space: nowrap;
  text-align: center;
  z-index: auto;
}

.vt-timer__shell--tomato .vt-timer__status {
  margin: 0.1rem 0 0;
}

.vt-tomato__sessions {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  color: #475569;
  text-align: center;
}

.vt-tomato__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.vt-tomato__tabs button {
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.5rem 0.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: #0f172a;
  cursor: pointer;
  min-height: 2.5rem;
}

.vt-tomato__tabs button.is-selected,
.vt-tomato__tabs button[aria-selected='true'] {
  background: rgba(194, 59, 34, 0.1);
  border-color: rgba(194, 59, 34, 0.45);
  color: #9a2a18;
}

.vt-tomato__task {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: #334155;
}

.vt-tomato__task input {
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 0.55rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #fff;
}

.vt-timer__shell--tomato .vt-timer__fields input,
.vt-timer__shell--tomato .vt-timer__pomodoro-break input {
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 0.5rem;
  padding: 0.45rem 0.55rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  background: #fff;
}

.vt-tomato__session-settings {
  margin: 0.15rem 0 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.15rem 0.75rem 0.65rem;
}

.vt-tomato__session-settings > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.95rem;
  color: #0f172a;
  padding: 0.55rem 0;
  list-style-position: outside;
}

.vt-tomato__session-settings .vt-timer__pomodoro-break {
  display: grid;
  gap: 0.65rem;
  margin: 0.15rem 0 0.65rem;
}

.vt-tomato__autostart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin: 0.15rem 0 0.25rem;
}

.vt-tomato__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: #334155;
}

.vt-timer__chips--tomato {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.vt-timer__chips--tomato button {
  width: 100%;
  justify-content: center;
  min-height: 2.4rem;
}

.vt-timer__shell--tomato .vt-timer__controls {
  gap: 12px;
}

.vt-timer__shell--tomato .vt-timer__controls .vt-btn {
  padding: 0.5rem 0.45rem;
  min-height: 2.5rem;
}

.vt-timer__shell--tomato .vt-timer__disclaimer--below {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.vt-timer__shell--tomato .vt-timer__sound-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.vt-btn--ghost {
  background: transparent;
  border: 1px dashed rgba(15, 23, 42, 0.2);
}

.vt-timer__shell--tomato:fullscreen .vt-timer__viz,
.vt-timer__shell--tomato.is-fs-active .vt-timer__viz {
  width: min(56vw, 56dvh, 380px);
  max-width: min(56vw, 56dvh, 380px);
}

.vt-timer__shell--tomato:fullscreen .vt-timer__digits,
.vt-timer__shell--tomato.is-fs-active .vt-timer__digits {
  font-size: clamp(2.4rem, 7vmin, 3.75rem);
  max-width: 16ch;
}

@media (min-width: 768px) {
  .vt-timer__shell--tomato.vt-timer__shell--split {
    align-items: start; /* tomato near top, beside controls — no large blank above */
    gap: 1rem;
  }

  .vt-timer__shell--tomato .vt-timer__viz {
    width: min(100%, 300px);
    max-width: 300px;
  }

  .vt-tomato__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vt-tomato__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vt-tomato__tabs button {
    font-size: 0.8rem;
    padding: 0.45rem 0.25rem;
  }

  .vt-timer__chips--tomato {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.vt-directory__thumb--tomato svg {
  display: block;
}

/* ——— Study Timer (pomodoro engine + book viz) ——— */
.vt-timer__shell--study {
  --vt-accent: #0f766e;
  --vt-study-navy: #1e3a5f;
  --vt-study-cream: #f7f3ea;
  --vt-viz-size: min(100%, 280px);
  --vt-row-gap: 0.85rem;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(30, 58, 95, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
}

.vt-timer__shell--study .vt-timer__stage {
  gap: 0.65rem;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}

.vt-timer__shell--study .vt-timer__viz {
  position: relative;
  width: var(--vt-viz-size);
  max-width: 280px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  min-width: 0;
  place-items: unset;
}

.vt-timer__shell--study .vt-timer__canvas,
.vt-timer__shell--study .vt-timer__ssr-study {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  height: auto;
  margin: 0;
  display: block;
  grid-area: unset;
}

.vt-timer__shell--study .vt-timer__digits {
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  aspect-ratio: auto;
  display: block;
  margin: 0.5rem 0 0;
  padding: 0.4rem 0.75rem;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: #1e3a5f;
  text-align: center;
  z-index: auto;
  pointer-events: none;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: 0.75rem;
  box-sizing: border-box;
}

.vt-timer__shell--study .vt-timer__phase {
  position: static;
  inset: auto;
  bottom: auto;
  left: auto;
  transform: none;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e3a5f;
  white-space: nowrap;
  text-align: center;
  z-index: auto;
}

.vt-study__totals {
  display: grid;
  gap: 0.15rem;
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #334155;
}

.vt-study__total {
  margin: 0;
}

.vt-study__goal {
  color: #0f766e;
  font-weight: 650;
}

.vt-study__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.vt-study__tabs button {
  border: 1px solid rgba(30, 58, 95, 0.18);
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.5rem 0.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e3a5f;
  cursor: pointer;
  min-height: 2.5rem;
}

.vt-study__tabs button.is-selected,
.vt-study__tabs button[aria-selected='true'] {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.45);
  color: #0f766e;
}

.vt-study__subject {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: #334155;
}

.vt-study__subject input,
.vt-timer__shell--study .vt-timer__fields input,
.vt-timer__shell--study .vt-timer__pomodoro-break input {
  border: 1px solid rgba(30, 58, 95, 0.18);
  border-radius: 0.55rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.vt-study__settings {
  margin: 0.15rem 0 0.35rem;
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 253, 248, 0.7);
  padding: 0.15rem 0.75rem 0.65rem;
}

.vt-study__settings > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.95rem;
  color: #1e3a5f;
  padding: 0.55rem 0;
}

.vt-study__autostart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin: 0.15rem 0 0.35rem;
}

.vt-study__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: #334155;
}

.vt-study__privacy {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.vt-timer__chips--study {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.vt-timer__chips--study button {
  width: 100%;
  justify-content: center;
  min-height: 2.4rem;
}

.vt-timer__shell--study .vt-timer__controls {
  gap: 12px;
}

.vt-timer__shell--study .vt-timer__controls .vt-btn {
  padding: 0.5rem 0.45rem;
}

.vt-timer__shell--study .vt-timer__disclaimer--below {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.vt-timer__shell--study:fullscreen .vt-timer__viz,
.vt-timer__shell--study.is-fs-active .vt-timer__viz {
  width: min(56vw, 56dvh, 380px);
  max-width: min(56vw, 56dvh, 380px);
}

.vt-timer__shell--study:fullscreen .vt-timer__digits,
.vt-timer__shell--study.is-fs-active .vt-timer__digits {
  font-size: clamp(2.4rem, 7vmin, 3.75rem);
  max-width: 16ch;
}

@media (min-width: 768px) {
  .vt-timer__shell--study.vt-timer__shell--split {
    align-items: start;
    gap: 1rem;
  }

  .vt-timer__shell--study .vt-timer__viz {
    width: min(100%, 300px);
    max-width: 300px;
  }
}

@media (max-width: 767px) {
  .vt-timer__chips--study {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.vt-directory__thumb--study svg {
  display: block;
}

/* ——— Seconds Timer (countdown engine + HTML digits + ring) ——— */
.vt-timer__shell--seconds {
  --vt-accent: #0f766e;
  --vt-seconds-navy: #1e3a5f;
  --vt-seconds-cream: #f7f3ea;
  --vt-viz-size: min(100%, 280px);
  --vt-row-gap: 0.85rem;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(30, 58, 95, 0.07), transparent 55%),
    linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
  max-width: 36rem;
  margin-inline: auto;
}

.vt-timer__shell--seconds .vt-timer__stage {
  gap: 0.65rem;
  width: 100%;
  align-items: center;
}

.vt-timer__shell--seconds .vt-timer__viz {
  position: relative;
  width: var(--vt-viz-size);
  max-width: 280px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  min-width: 0;
}

.vt-timer__shell--seconds .vt-timer__canvas,
.vt-timer__shell--seconds .vt-timer__ssr-seconds {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  height: auto;
  margin: 0;
  display: block;
}

.vt-timer__shell--seconds .vt-timer__digits.vt-seconds__digits {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  inset: auto;
  transform: none;
  width: min(70%, 11ch);
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.25rem;
  text-align: center;
  pointer-events: none;
  background: transparent;
  border: 0;
  color: #1e3a5f;
}

.vt-seconds__value {
  display: block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-size: clamp(2.4rem, 9vw, 3.5rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.02em;
  min-width: 4ch;
  text-align: center;
}

.vt-seconds__unit {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #475569;
  line-height: 1.2;
}

.vt-seconds__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
}

.vt-seconds__field label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 600;
}

.vt-seconds__field input {
  border: 1px solid rgba(30, 58, 95, 0.2);
  border-radius: 0.55rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  background: #fff;
  width: 100%;
  max-width: 12rem;
  box-sizing: border-box;
}

.vt-seconds__error {
  margin: 0;
  font-size: 0.88rem;
  color: #b91c1c;
  line-height: 1.35;
}

.vt-timer__chips--seconds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.vt-timer__chips--seconds button {
  width: 100%;
  justify-content: center;
  min-height: 2.5rem;
  font-variant-numeric: tabular-nums;
}

.vt-timer__shell--seconds .vt-timer__controls {
  gap: 12px;
}

.vt-timer__shell--seconds .vt-timer__controls .vt-btn {
  padding: 0.5rem 0.45rem;
}

.vt-timer__shell--seconds .vt-timer__disclaimer--below {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.vt-timer__shell--seconds:fullscreen .vt-timer__viz,
.vt-timer__shell--seconds.is-fs-active .vt-timer__viz {
  width: min(56vw, 56dvh, 380px);
  max-width: min(56vw, 56dvh, 380px);
}

.vt-timer__shell--seconds:fullscreen .vt-seconds__value,
.vt-timer__shell--seconds.is-fs-active .vt-seconds__value {
  font-size: clamp(3rem, 10vmin, 4.5rem);
}

@media (min-width: 768px) {
  .vt-timer__chips--seconds {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vt-timer__chips--seconds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vt-seconds__field input {
    max-width: none;
  }
}

.vt-directory__thumb--seconds svg {
  display: block;
}

/* —— Vacation countdown —— */
.vt-timer__shell--vacation {
  --vt-accent: #0f766e;
  --vt-viz-size: min(100%, 240px);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(15, 118, 110, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
  max-width: 44rem;
  margin-inline: auto;
}

.vt-timer__shell--vacation .vt-timer__stage {
  gap: 0.45rem;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
}

.vt-timer__shell--vacation .vt-timer__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  aspect-ratio: auto;
  width: min(100%, 240px);
  max-width: 240px;
  margin-inline: auto;
  place-items: unset;
  min-width: 0;
}

.vt-timer__shell--vacation .vt-timer__canvas,
.vt-timer__shell--vacation .vt-timer__ssr-vacation {
  grid-area: unset;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  display: block;
  border-radius: 0.65rem;
  justify-self: unset;
  align-self: unset;
  min-width: 0;
}

.vt-timer__shell--vacation .vt-timer__status {
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

.vt-vacation__heading {
  width: 100%;
  text-align: center;
  margin: 0.4rem 0 0;
}

.vt-vacation__name {
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 750;
  color: #1e3a5f;
  line-height: 1.2;
}

.vt-vacation__dest {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #0f766e;
  font-weight: 650;
}

.vt-vacation__target {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.35;
}

.vt-vacation__units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  margin: 0.5rem 0 0;
}

@media (min-width: 640px) {
  .vt-vacation__units {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.vt-vacation__unit {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: 0.6rem;
  padding: 0.6rem 0.3rem;
  text-align: center;
  min-height: 3.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.vt-vacation__num {
  display: block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-weight: 750;
  font-size: clamp(1.75rem, 5.5vw, 2.35rem);
  line-height: 1.05;
  color: #1e3a5f;
  min-width: 2ch;
}

.vt-vacation__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.vt-vacation__complete {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f766e;
}

/* Illustration is decorative — keep it compact above the countdown. */
.vt-timer__shell--vacation .vt-timer__canvas,
.vt-timer__shell--vacation .vt-timer__ssr-vacation {
  max-height: 9.5rem;
  object-fit: cover;
}

.vt-vacation--active .vt-vacation__heading {
  margin-top: 0.15rem;
}

.vt-vacation--active .vt-vacation__units {
  margin-top: 0.65rem;
}

.vt-vacation__form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.vt-vacation__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (min-width: 520px) {
  .vt-vacation__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.vt-vacation__form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.vt-vacation__form[hidden],
.vt-vacation__form [hidden],
.vt-vacation__form [data-vt-vacation-time-wrap][hidden],
.vt-vacation__midnight-note[hidden],
.vt-vacation__error[hidden] {
  display: none !important;
}

.vt-vacation__form input[type='text'],
.vt-vacation__form input[type='date'],
.vt-vacation__form input[type='time'] {
  border: 1px solid rgba(30, 58, 95, 0.18);
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  box-sizing: border-box;
  width: 100%;
  min-height: 2.65rem;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vt-vacation__form input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.vt-vacation__form input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(248, 250, 252, 0.9);
}

.vt-vacation__time-toggle {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  font-weight: 600;
  min-height: 2.5rem;
}

.vt-vacation__time-toggle input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #0f766e;
}

.vt-vacation__midnight-note,
.vt-vacation__privacy {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
  font-weight: 500;
}

.vt-vacation__themes {
  border: 0;
  margin: 0;
  padding: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
}

.vt-vacation__themes legend {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.25rem;
  padding: 0;
  width: 100%;
}

.vt-vacation__themes label {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  min-height: 2.25rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.4rem;
}

.vt-vacation__themes label:focus-within {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.vt-vacation__themes input {
  accent-color: #0f766e;
}

.vt-vacation__error {
  margin: 0;
  font-size: 0.88rem;
  color: #b91c1c;
  line-height: 1.35;
}

.vt-timer__shell--vacation .vt-timer__controls {
  display: grid;
  grid-template-columns: repeat(var(--vt-action-cols, 3), minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.vt-timer__shell--vacation .vt-timer__controls .vt-btn {
  min-height: var(--vt-control-h);
}

.vt-timer__shell--vacation .vt-timer__disclaimer--below {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .vt-timer__shell--vacation.vt-timer__shell--split {
    align-items: start;
  }

  .vt-timer__shell--vacation .vt-timer__viz {
    width: min(100%, 260px);
    max-width: 260px;
  }
}

.vt-timer__shell--vacation:fullscreen .vt-timer__viz,
.vt-timer__shell--vacation.is-fs-active .vt-timer__viz {
  width: min(70vw, 48dvh, 380px);
  max-width: min(70vw, 48dvh, 380px);
}

.vt-timer__shell--vacation:fullscreen .vt-timer__canvas,
.vt-timer__shell--vacation.is-fs-active .vt-timer__canvas {
  max-height: none;
}

.vt-timer__shell--vacation:fullscreen .vt-vacation__num,
.vt-timer__shell--vacation.is-fs-active .vt-vacation__num {
  font-size: clamp(2rem, 8vmin, 3rem);
}

.vt-directory__thumb--vacation svg {
  display: block;
}

/* —— Friday Countdown —— */
.vt-timer__shell--friday {
  --vt-accent: #0f766e;
  background:
    radial-gradient(85% 60% at 20% 0%, rgba(15, 118, 110, 0.1), transparent 55%),
    radial-gradient(70% 50% at 90% 10%, rgba(30, 58, 95, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
  max-width: 44rem;
  margin-inline: auto;
}

.vt-timer__shell--friday .vt-timer__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: auto;
  width: min(100%, 100%);
  max-width: 100%;
  margin-inline: auto;
  place-items: unset;
  min-width: 0;
}

.vt-timer__shell--friday .vt-timer__canvas,
.vt-timer__shell--friday .vt-timer__ssr-friday {
  width: min(100%, 160px);
  max-width: 160px;
  aspect-ratio: 10 / 7;
  height: auto !important;
  max-height: 5.75rem;
  display: block;
  border-radius: 0.65rem;
  margin-inline: auto;
}

.vt-timer__shell--friday .vt-timer__canvas {
  display: none;
}

.vt-timer[data-vt-mounted='1'] .vt-timer__shell--friday .vt-timer__canvas {
  display: block;
}

.vt-timer[data-vt-mounted='1'] .vt-timer__ssr-friday {
  display: none !important;
}

.vt-friday__heading {
  width: 100%;
  text-align: center;
  margin: 0.55rem 0 0;
}

.vt-friday__answer {
  margin: 0;
  font-size: clamp(1.55rem, 5.2vw, 2.15rem);
  font-weight: 780;
  color: #1e3a5f;
  line-height: 1.15;
  min-height: 1.2em;
}

.vt-friday__explain,
.vt-friday__target {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: #0f766e;
  font-weight: 600;
  line-height: 1.35;
}

.vt-friday__target {
  color: #475569;
  font-weight: 500;
}

.vt-friday__note,
.vt-friday__ref {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.vt-friday__note[hidden],
.vt-friday__ref[hidden],
.vt-friday__its[hidden],
.vt-friday__next[hidden] {
  display: none !important;
}

.vt-friday__exact {
  margin: 0.55rem 0 0;
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.vt-friday__units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
  margin: 0.35rem 0 0;
}

@media (min-width: 640px) {
  .vt-friday__units {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.vt-friday__unit {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: 0.6rem;
  padding: 0.65rem 0.3rem;
  text-align: center;
  min-height: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.vt-friday__num {
  display: block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-weight: 750;
  font-size: clamp(1.85rem, 5.8vw, 2.5rem);
  line-height: 1.05;
  color: #1e3a5f;
  min-width: 2ch;
}

.vt-friday__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.vt-friday__its {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 750;
  color: #0f766e;
}

.vt-friday__form {
  display: grid;
  gap: 0.75rem;
}

.vt-friday__form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: #1e3a5f;
}

.vt-friday__tz-field {
  position: relative;
  display: block;
}

.vt-friday__tz-field::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #1e3a5f;
  border-bottom: 2px solid #1e3a5f;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  opacity: 0.65;
}

.vt-friday__form input[type='text'] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(30, 58, 95, 0.28);
  border-radius: 0.5rem;
  padding: 0.55rem 2rem 0.55rem 0.7rem;
  font: inherit;
  background: rgba(255, 253, 248, 0.96);
  color: #1e3a5f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.vt-friday__form input[type='text']:focus,
.vt-friday__form input[type='text']:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
  border-color: #0f766e;
}

.vt-friday__next:focus-visible,
.vt-timer__shell--friday .vt-btn:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
}

.vt-friday__sound-help {
  margin: -0.15rem 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
}

.vt-friday__privacy {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.vt-friday__next {
  justify-self: start;
}

@media (min-width: 768px) {
  .vt-timer__shell--friday.vt-timer__shell--split {
    align-items: start !important;
  }

  .vt-timer__shell--friday .vt-timer__viz {
    width: min(100%, 100%);
  }
}

.vt-timer__shell--friday:fullscreen .vt-timer__stage,
.vt-timer__shell--friday.is-fs-active .vt-timer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.vt-timer__shell--friday:fullscreen .vt-friday__answer,
.vt-timer__shell--friday.is-fs-active .vt-friday__answer {
  font-size: clamp(1.8rem, 6vmin, 2.6rem);
}

.vt-timer__shell--friday:fullscreen .vt-friday__num,
.vt-timer__shell--friday.is-fs-active .vt-friday__num {
  font-size: clamp(2rem, 8vmin, 3.1rem);
}

.vt-timer__shell--friday:fullscreen .vt-timer__panel,
.vt-timer__shell--friday.is-fs-active .vt-timer__panel {
  max-width: 28rem;
  margin-inline: auto;
}

.vt-directory__thumb--friday svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .vt-timer__shell--friday .vt-timer__canvas {
    animation: none;
  }
}

/* —— Time Until Calculator —— */
.vt-timer__shell--timeuntil {
  --vt-accent: #0f766e;
  background:
    radial-gradient(80% 55% at 15% 0%, rgba(15, 118, 110, 0.1), transparent 55%),
    radial-gradient(65% 45% at 95% 8%, rgba(30, 58, 95, 0.07), transparent 50%),
    linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
  max-width: 46rem;
  margin-inline: auto;
}

.vt-timer__shell--timeuntil .vt-timer__stage {
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.vt-timer__shell--timeuntil .vt-timer__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: auto;
  width: 100%;
  max-width: 100%;
  place-items: unset;
  min-width: 0;
  flex: 0 0 auto;
}

.vt-timeuntil__clock {
  width: 7rem;
  max-width: 7rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-inline: auto;
  overflow: hidden;
}

.vt-timer__shell--timeuntil .vt-timer__canvas,
.vt-timer__shell--timeuntil .vt-timer__ssr-timeuntil {
  width: 100%;
  max-width: 100%;
  height: 100% !important;
  max-height: none;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 50%;
  margin: 0;
  object-fit: contain;
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
}

.vt-timer__shell--timeuntil .vt-timer__canvas {
  display: none;
}

.vt-timer[data-vt-mounted='1'] .vt-timer__shell--timeuntil .vt-timer__canvas {
  display: block;
}

.vt-timer[data-vt-mounted='1'] .vt-timer__ssr-timeuntil {
  display: none !important;
}

.vt-timeuntil__heading {
  width: 100%;
  text-align: center;
  margin: 0.35rem 0 0;
}

.vt-timeuntil__question {
  margin: 0;
  font-size: clamp(1.1rem, 3.4vw, 1.35rem);
  font-weight: 700;
  color: #0f766e;
  line-height: 1.25;
}

.vt-timeuntil__answer {
  margin: 0.25rem 0 0;
  font-size: clamp(1.2rem, 3.8vw, 1.55rem);
  font-weight: 780;
  color: #1e3a5f;
  line-height: 1.2;
  min-height: 1.2em;
}

.vt-timeuntil__meta,
.vt-timeuntil__now,
.vt-timeuntil__ref {
  margin: 0.22rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.3;
}

.vt-timeuntil__units {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
  margin: 0.45rem 0 0;
}

.vt-timeuntil__unit {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: 0.6rem;
  padding: 0.55rem 0.25rem;
  text-align: center;
  min-height: 3.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.vt-timeuntil__num {
  display: block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-weight: 750;
  font-size: clamp(1.7rem, 5.4vw, 2.35rem);
  line-height: 1.05;
  color: #1e3a5f;
  min-width: 2ch;
}

.vt-timeuntil__label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.vt-timeuntil__done {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 750;
  color: #0f766e;
}

.vt-timeuntil__stage-actions {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin: 0.35rem 0 0;
}

.vt-timeuntil__stage-actions .vt-btn:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
}

.vt-timer__shell--timeuntil .vt-timer__row--actions {
  display: none;
}

.vt-timeuntil__form {
  display: grid;
  gap: 0.55rem;
}

.vt-timeuntil__form.is-dirty [data-vt-tu-apply] {
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}

.vt-timeuntil__row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.vt-timeuntil__form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: #1e3a5f;
}

.vt-timeuntil__form input[type='text'],
.vt-timeuntil__form input[type='number'],
.vt-timeuntil__form select {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.55rem;
  border: 1px solid rgba(30, 58, 95, 0.28);
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: rgba(255, 253, 248, 0.96);
  color: #1e3a5f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.vt-timeuntil__form input:focus,
.vt-timeuntil__form input:focus-visible,
.vt-timeuntil__form select:focus,
.vt-timeuntil__form select:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
  border-color: #0f766e;
}

.vt-timeuntil__tz-field {
  position: relative;
  display: block;
}

.vt-timeuntil__tz-field::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #1e3a5f;
  border-bottom: 2px solid #1e3a5f;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  opacity: 0.65;
}

.vt-timeuntil__tz-field input[type='text'] {
  padding-right: 2rem;
}

.vt-timeuntil__ampm {
  display: flex;
  gap: 0.4rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-height: 2.55rem;
  align-items: stretch;
}

.vt-timeuntil__ampm label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.65rem;
  min-height: 2.55rem;
  border: 1px solid rgba(30, 58, 95, 0.28);
  border-radius: 0.5rem;
  background: rgba(255, 253, 248, 0.96);
  font-size: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.vt-timeuntil__hours {
  display: grid;
  gap: 0.55rem;
}

.vt-timeuntil__hours-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.vt-timeuntil__chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.vt-timeuntil__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(30, 58, 95, 0.22);
  background: rgba(255, 253, 248, 0.96);
  color: #1e3a5f;
  border-radius: 0.45rem;
  padding: 0.4rem 0.25rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 2.5rem;
  line-height: 1.15;
  text-align: center;
}

.vt-timeuntil__chip-main {
  display: block;
}

.vt-timeuntil__chip-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 550;
  color: #64748b;
  letter-spacing: 0.01em;
}

.vt-timeuntil__chip.is-selected {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
  color: #1e3a5f;
}

.vt-timeuntil__chip.is-selected .vt-timeuntil__chip-sub {
  color: #0f766e;
}

.vt-timeuntil__chip:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
  border-color: #0f766e;
}

.vt-timeuntil__privacy {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.vt-timeuntil__done[hidden],
.vt-timeuntil__next[hidden],
.vt-timeuntil__ref[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .vt-timeuntil__row {
    grid-template-columns: 1fr 1fr;
  }

  .vt-timeuntil__ampm {
    grid-column: 1 / -1;
  }

  .vt-timeuntil__chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .vt-timer__shell--timeuntil.vt-timer__shell--split {
    align-items: start !important;
  }
}

.vt-timer__shell--timeuntil:fullscreen .vt-timer__stage,
.vt-timer__shell--timeuntil.is-fs-active .vt-timer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.vt-timer__shell--timeuntil:fullscreen .vt-timeuntil__stage-actions,
.vt-timer__shell--timeuntil.is-fs-active .vt-timeuntil__stage-actions {
  justify-content: center;
}

.vt-timer__shell--timeuntil:fullscreen .vt-timeuntil__answer,
.vt-timer__shell--timeuntil.is-fs-active .vt-timeuntil__answer {
  font-size: clamp(1.5rem, 5.5vmin, 2.2rem);
}

.vt-timer__shell--timeuntil:fullscreen .vt-timeuntil__num,
.vt-timer__shell--timeuntil.is-fs-active .vt-timeuntil__num {
  font-size: clamp(2rem, 8vmin, 3.1rem);
}

.vt-directory__thumb--timeuntil svg,
.vt-directory__thumb--time-until svg {
  display: block;
}

/* —— Digital Timer —— */
.vt-timer__shell--digital {
  --vt-accent: #0f766e;
  --vt-digital-on: #34d399;
  --vt-digital-off: rgba(52, 211, 153, 0.14);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(30, 58, 95, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
  max-width: 40rem;
  margin-inline: auto;
}

.vt-timer__shell--digital .vt-timer__stage {
  gap: 0.45rem;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
}

.vt-timer__shell--digital .vt-timer__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  min-width: 0;
  place-items: unset;
}

.vt-timer__shell--digital .vt-timer__canvas--hidden {
  display: none !important;
}

.vt-timer__shell--digital .vt-timer__status {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.vt-digital__display {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 0.95rem 1.1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 58, 95, 0.14);
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.25rem;
  box-sizing: border-box;
}

.vt-digital__display[data-theme='dark'] {
  background: #1e3a5f;
  border-color: rgba(94, 234, 212, 0.28);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.vt-digital__time {
  display: block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-weight: 750;
  font-size: clamp(2.4rem, 10vw, 3.9rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: #1e3a5f;
  min-width: 8ch;
  text-align: center;
  font-family: 'IBM Plex Sans', 'Source Sans 3', 'Segoe UI', sans-serif;
}

.vt-digital__display[data-theme='dark'] .vt-digital__time {
  color: #ecfeff;
}

.vt-digital__segs {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.14em;
  min-width: 8.2ch;
  font-size: clamp(2.2rem, 9.5vw, 3.6rem);
  line-height: 0;
}

.vt-digital__display[data-style='seven'] {
  background: #111827;
  border-color: rgba(15, 118, 110, 0.4);
  --vt-digital-on: #34d399;
  --vt-digital-off: rgba(52, 211, 153, 0.12);
}

.vt-digital__display[data-style='seven'][data-theme='dark'] {
  background: #0b1220;
  border-color: rgba(94, 234, 212, 0.3);
}

.vt-digital__display[data-style='seven'] .vt-digital__time {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vt-digital__display[data-style='seven'] .vt-digital__segs {
  display: inline-flex;
}

.vt-seg {
  position: relative;
  display: inline-block;
  width: 0.62em;
  height: 1.05em;
  margin: 0 0.02em;
  flex: 0 0 auto;
}

.vt-seg span {
  position: absolute;
  background: var(--vt-digital-off);
  border-radius: 0.08em;
}

.vt-seg span.is-on {
  background: var(--vt-digital-on);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.28);
}

.vt-seg__a {
  top: 0;
  left: 0.12em;
  right: 0.12em;
  height: 0.12em;
}
.vt-seg__d {
  bottom: 0;
  left: 0.12em;
  right: 0.12em;
  height: 0.12em;
}
.vt-seg__g {
  top: 50%;
  left: 0.12em;
  right: 0.12em;
  height: 0.12em;
  transform: translateY(-50%);
}
.vt-seg__b {
  top: 0.14em;
  right: 0;
  width: 0.12em;
  height: calc(50% - 0.18em);
}
.vt-seg__c {
  bottom: 0.14em;
  right: 0;
  width: 0.12em;
  height: calc(50% - 0.18em);
}
.vt-seg__f {
  top: 0.14em;
  left: 0;
  width: 0.12em;
  height: calc(50% - 0.18em);
}
.vt-seg__e {
  bottom: 0.14em;
  left: 0;
  width: 0.12em;
  height: calc(50% - 0.18em);
}

.vt-seg--colon {
  width: 0.28em;
  height: 1.05em;
}

.vt-seg--colon i {
  position: absolute;
  left: 50%;
  width: 0.14em;
  height: 0.14em;
  border-radius: 50%;
  background: var(--vt-digital-on);
  transform: translateX(-50%);
  box-shadow: 0 0 5px rgba(52, 211, 153, 0.25);
}

.vt-seg--colon i:first-child {
  top: 0.28em;
}
.vt-seg--colon i:last-child {
  bottom: 0.28em;
}

.vt-digital__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.vt-digital__fields label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.vt-digital__fields input {
  border: 1px solid rgba(30, 58, 95, 0.18);
  border-radius: 0.55rem;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  box-sizing: border-box;
  min-height: 2.55rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vt-digital__fields input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.vt-digital__error {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: #b91c1c;
  line-height: 1.35;
}

.vt-digital__error[hidden] {
  display: none !important;
}

.vt-timer__row--display {
  margin: 0;
}

.vt-digital__prefs {
  margin: 0;
  border-radius: 0.55rem;
  border: 1px solid rgba(30, 58, 95, 0.12);
  padding: 0.25rem 0.7rem 0.55rem;
  background: rgba(255, 255, 255, 0.55);
}

.vt-digital__prefs summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.92rem;
  color: #1e3a5f;
  padding: 0.4rem 0;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
}

.vt-digital__styles {
  border: 0;
  margin: 0.25rem 0 0.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.vt-digital__styles label,
.vt-digital__dark-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  min-height: 2.25rem;
}

.vt-digital__styles input,
.vt-digital__dark-toggle input {
  accent-color: #0f766e;
}

.vt-timer__chips--digital {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.vt-timer__chips--digital button {
  width: 100%;
  justify-content: center;
  min-height: 2.5rem;
}

.vt-timer__chips--digital button.is-selected {
  border-color: rgba(15, 118, 110, 0.55);
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-weight: 700;
}

.vt-timer__shell--digital .vt-timer__sound-note {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.35;
}

.vt-timer__shell--digital .vt-timer__disclaimer--below {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .vt-timer__shell--digital.vt-timer__shell--split {
    align-items: start;
  }
}

.vt-timer__shell--digital:fullscreen .vt-digital__display,
.vt-timer__shell--digital.is-fs-active .vt-digital__display {
  max-width: min(88vw, 36rem);
  min-height: 7rem;
  padding: 1.35rem 1.5rem;
}

.vt-timer__shell--digital:fullscreen .vt-digital__time,
.vt-timer__shell--digital.is-fs-active .vt-digital__time {
  font-size: clamp(3.2rem, 14vmin, 6rem);
}

.vt-timer__shell--digital:fullscreen .vt-digital__segs,
.vt-timer__shell--digital.is-fs-active .vt-digital__segs {
  font-size: clamp(2.8rem, 12vmin, 5.2rem);
}

@media (max-width: 639px) {
  .vt-timer__chips--digital {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vt-digital__time {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .vt-digital__segs {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }
}

.vt-directory__thumb--digital-timer svg {
  display: block;
}

/* —— Kindergarten Timer —— */
.vt-timer__shell--kindergarten {
  --vt-accent: #0f766e;
  background:
    radial-gradient(80% 55% at 12% 0%, rgba(240, 201, 135, 0.22), transparent 55%),
    radial-gradient(70% 50% at 92% 8%, rgba(15, 118, 110, 0.1), transparent 52%),
    linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
  max-width: 46rem;
  margin-inline: auto;
}

.vt-timer__shell--kindergarten .vt-timer__stage {
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  align-items: center;
}

.vt-timer__shell--kindergarten .vt-timer__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: auto;
  width: 100%;
  max-width: 100%;
  place-items: unset;
  min-width: 0;
  flex: 0 0 auto;
  text-align: center;
}

.vt-kinder__viz-frame {
  width: min(100%, 15rem);
  max-width: 15rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-inline: auto;
  overflow: hidden;
}

.vt-timer__shell--kindergarten .vt-timer__canvas,
.vt-timer__shell--kindergarten .vt-timer__ssr-kindergarten {
  width: 100%;
  max-width: 100%;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 50%;
  margin: 0;
  grid-area: 1 / 1;
  object-fit: contain;
}

.vt-timer__shell--kindergarten .vt-timer__canvas {
  display: none;
}

.vt-timer[data-vt-mounted='1'] .vt-timer__shell--kindergarten .vt-timer__canvas {
  display: block;
}

.vt-timer[data-vt-mounted='1'] .vt-timer__ssr-kindergarten {
  display: none !important;
}

/* Preview group: activity → countdown → status → Fullscreen */
.vt-kinder__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0.2rem 0 0;
  text-align: center;
  gap: 0.2rem;
}

.vt-kinder__activity {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  font-weight: 750;
  color: #0f766e;
  line-height: 1.2;
}

.vt-kinder__digits {
  width: 100%;
  margin: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  font-size: clamp(2rem, 7vw, 2.85rem);
  color: #1e3a5f;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.vt-kinder__status {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 650;
  color: #475569;
  letter-spacing: 0.01em;
}

.vt-kinder--hide-numbers .vt-kinder__digits {
  display: none !important;
}

.vt-kinder__finished {
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f766e;
  line-height: 1.3;
}

.vt-kinder__finished[hidden] {
  display: none !important;
}

.vt-kinder__stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
  margin: 0.15rem 0 0;
  justify-content: center;
}

.vt-timer__shell--kindergarten .vt-timer__row--actions {
  /* Fullscreen lives under the viz; keep Start/Pause/Reset in the panel. */
}

.vt-kinder__form {
  display: grid;
  gap: 0.55rem;
}

.vt-kinder__duration {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.vt-kinder__duration-label {
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: 0.01em;
}

.vt-kinder__duration-hint {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
}

.vt-kinder__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.vt-kinder__fields label span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: #334155;
}

.vt-kinder__form input[type='number'],
.vt-kinder__form input[type='text'] {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.55rem;
  border: 2px solid rgba(30, 58, 95, 0.4);
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #fffdf8;
  color: #1e3a5f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.vt-kinder__form input:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
  border-color: #0f766e;
}

.vt-kinder__hide-nums {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.15rem 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e3a5f;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
  line-height: 1.25;
}

.vt-kinder__hide-nums input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #0f766e;
}

.vt-kinder__hide-nums:focus-within {
  outline: 2px solid rgba(15, 118, 110, 0.45);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.vt-kinder__activities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.vt-kinder__act {
  border: 1px solid rgba(30, 58, 95, 0.22);
  background: rgba(255, 253, 248, 0.96);
  color: #1e3a5f;
  border-radius: 0.45rem;
  padding: 0.5rem 0.45rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 2.5rem;
  text-align: center;
}

.vt-kinder__act.is-selected,
.vt-kinder__act:focus-visible {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 1px;
}

.vt-timer__chips--kindergarten {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
}

.vt-timer__chips--kindergarten button {
  min-height: 2.4rem;
}

.vt-timer__chips--kindergarten button.is-selected {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
}

@media (max-width: 640px) {
  .vt-timer__chips--kindergarten {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vt-kinder__viz-frame {
    width: min(100%, 12.5rem);
    max-width: 12.5rem;
  }
}

.vt-timer__shell--kindergarten:fullscreen .vt-timer__stage,
.vt-timer__shell--kindergarten.is-fs-active .vt-timer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.vt-timer__shell--kindergarten:fullscreen .vt-kinder__viz-frame,
.vt-timer__shell--kindergarten.is-fs-active .vt-kinder__viz-frame {
  width: min(72vw, 58vh, 22rem);
  max-width: min(72vw, 58vh, 22rem);
}

.vt-timer__shell--kindergarten:fullscreen .vt-kinder__digits,
.vt-timer__shell--kindergarten.is-fs-active .vt-kinder__digits {
  font-size: clamp(2.4rem, 10vmin, 4rem);
}

.vt-timer__shell--kindergarten:fullscreen .vt-kinder__activity,
.vt-timer__shell--kindergarten.is-fs-active .vt-kinder__activity {
  font-size: clamp(1.4rem, 5vmin, 2rem);
}

.vt-timer__shell--kindergarten:fullscreen .vt-timer__panel,
.vt-timer__shell--kindergarten.is-fs-active .vt-timer__panel {
  width: min(100%, 36rem);
}

.vt-kinder--controls-hidden .vt-timer__panel {
  display: none !important;
}

.vt-kinder__reveal {
  position: fixed;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0));
  right: max(0.75rem, env(safe-area-inset-right, 0));
  z-index: 30;
}

.vt-directory__thumb--kindergarten svg {
  display: block;
}

/* —— School Timer —— */
.vt-timer__shell--school {
  --vt-accent: #0f766e;
  background:
    radial-gradient(80% 55% at 10% 0%, rgba(240, 201, 135, 0.18), transparent 55%),
    radial-gradient(70% 50% at 94% 6%, rgba(15, 118, 110, 0.1), transparent 52%),
    linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
  max-width: 48rem;
  margin-inline: auto;
}
.vt-timer__shell--school .vt-timer__stage {
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  align-items: center;
}
.vt-timer__shell--school .vt-timer__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: auto;
  width: 100%;
  max-width: 100%;
  place-items: unset;
  min-width: 0;
  flex: 0 0 auto;
  text-align: center;
}
.vt-school__display {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  padding: 0.65rem 0.75rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(30, 58, 95, 0.12);
  box-sizing: border-box;
  gap: 0.15rem;
}
.vt-school__viz-frame {
  width: min(100%, 13.5rem);
  max-width: 13.5rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-inline: auto;
  overflow: hidden;
}
.vt-timer__shell--school .vt-timer__canvas,
.vt-timer__shell--school .vt-timer__ssr-school {
  width: 100%;
  max-width: 100%;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 50%;
  margin: 0;
  grid-area: 1 / 1;
  object-fit: contain;
}
.vt-timer__shell--school .vt-timer__canvas { display: none; }
.vt-timer[data-vt-mounted='1'] .vt-timer__shell--school .vt-timer__canvas { display: block; }
.vt-timer[data-vt-mounted='1'] .vt-timer__ssr-school { display: none !important; }
.vt-school__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  text-align: center;
  gap: 0.2rem;
}
.vt-school__activity {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem);
  font-weight: 750;
  color: #0f766e;
  line-height: 1.2;
}
.vt-school__digits {
  width: 100%;
  margin: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  font-size: clamp(2rem, 7vw, 2.85rem);
  color: #1e3a5f;
  line-height: 1.1;
}
.vt-school--hide-numbers .vt-school__digits { display: none !important; }
.vt-school__status {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 650;
  color: #475569;
}
.vt-school__seq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: center;
  width: 100%;
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}
.vt-school__seq-meta[hidden] { display: none !important; }
.vt-school__finished {
  margin: 0.1rem 0 0;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f766e;
  line-height: 1.3;
}
.vt-school__finished[hidden] { display: none !important; }
.vt-school__stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
  margin: 0.25rem 0 0;
  justify-content: center;
}
/* Dark display: scoped to preview panel only — panel/form stays light. */
.vt-school--dark .vt-school__display {
  background: #0f172a;
  border-color: rgba(94, 234, 212, 0.28);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
}
.vt-school--dark .vt-school__activity { color: #5eead4; }
.vt-school--dark .vt-school__digits { color: #ecfeff; }
.vt-school--dark .vt-school__status { color: #cbd5e1; }
.vt-school--dark .vt-school__seq-meta { color: #94a3b8; }
.vt-school--dark .vt-school__finished { color: #99f6e4; }
.vt-school--dark .vt-school__stage-actions .vt-btn {
  background: #1e293b;
  color: #ecfeff;
  border-color: rgba(94, 234, 212, 0.35);
}
.vt-school--dark .vt-school__stage-actions .vt-btn--primary {
  background: #0f766e;
  border-color: #14b8a6;
  color: #ecfeff;
}
.vt-school--dark .vt-school__stage-actions .vt-btn--ghost {
  background: transparent;
  color: #ecfeff;
}
.vt-school__form { display: grid; gap: 0.5rem; }
.vt-school__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.vt-school__mode {
  border: 1px solid rgba(30, 58, 95, 0.22);
  background: rgba(255, 253, 248, 0.96);
  color: #1e3a5f;
  border-radius: 0.45rem;
  padding: 0.5rem 0.45rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 2.5rem;
}
.vt-school__mode.is-selected,
.vt-school__mode:focus-visible {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 1px;
}
.vt-school__duration { margin: 0; padding: 0; border: 0; min-width: 0; }
.vt-school__duration-label {
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e3a5f;
}
.vt-school__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.vt-school__form input[type='number'],
.vt-school__form input[type='text'],
.vt-school__form select {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.45rem;
  border: 2px solid rgba(30, 58, 95, 0.4);
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
  background: #fffdf8;
  color: #1e3a5f;
}
.vt-school__form input:focus-visible,
.vt-school__form select:focus-visible,
.vt-school__mode:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.55);
  outline-offset: 2px;
  border-color: #0f766e;
}
.vt-school__title-field { display: grid; gap: 0.25rem; margin-top: 0.4rem; }
.vt-school__title-field span,
.vt-school__stage label > span {
  font-size: 0.78rem;
  font-weight: 650;
  color: #334155;
}
.vt-school__appearance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}
.vt-school__hide-nums {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e3a5f;
  cursor: pointer;
  width: fit-content;
}
.vt-school__builder-note,
.vt-school__template-help,
.vt-school__pause-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
}
.vt-school__pause-hint[hidden] { display: none !important; }
.vt-school__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.vt-school__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 4.75rem 4.75rem auto;
  gap: 0.35rem 0.4rem;
  align-items: end;
  padding: 0.5rem;
  border: 2px solid rgba(30, 58, 95, 0.22);
  border-radius: 0.5rem;
  background: rgba(255, 253, 248, 0.95);
}
.vt-school__stage-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: center;
}
.vt-school__stage-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e3a5f;
}
.vt-school__stage-current {
  font-size: 0.72rem;
  font-weight: 750;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vt-school__stage.is-current {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.08);
  box-shadow: inset 3px 0 0 #0f766e;
}
.vt-school__stage-name { min-width: 0; display: grid; gap: 0.2rem; }
.vt-school__stage-mins,
.vt-school__stage-secs { display: grid; gap: 0.2rem; }
.vt-school__stage-moves {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  min-height: 2.45rem;
}
.vt-school__stage-moves .vt-btn {
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding-inline: 0.35rem;
}
.vt-school__stage-moves .vt-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.vt-school__builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.vt-school__auto { margin: 0.15rem 0 0; }
.vt-school__templates {
  margin: 0.15rem 0 0;
  border: 1px solid rgba(30, 58, 95, 0.16);
  border-radius: 0.5rem;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 253, 248, 0.7);
}
.vt-school__templates > summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  color: #1e3a5f;
  list-style: none;
}
.vt-school__templates > summary::-webkit-details-marker { display: none; }
.vt-school__templates-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: end;
  margin-top: 0.45rem;
}
.vt-school__templates-body label {
  flex: 1 1 9rem;
  display: grid;
  gap: 0.25rem;
}
.vt-timer__chips--school {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}
.vt-timer__chips--school button.is-selected {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
}
.vt-timer__shell--school .vt-timer__panel { min-height: 0; }
@media (max-width: 640px) {
  .vt-timer__chips--school { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vt-school__stage {
    grid-template-columns: 1fr 1fr;
  }
  .vt-school__stage-name { grid-column: 1 / -1; }
  .vt-school__stage-moves { grid-column: 1 / -1; justify-content: flex-start; }
  .vt-school__viz-frame { width: min(100%, 11.5rem); max-width: 11.5rem; }
  .vt-school__display { max-width: 100%; }
}
.vt-timer__shell--school:fullscreen .vt-timer__stage,
.vt-timer__shell--school.is-fs-active .vt-timer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.vt-timer__shell--school:fullscreen .vt-school__display,
.vt-timer__shell--school.is-fs-active .vt-school__display {
  max-width: min(92vw, 28rem);
}
.vt-timer__shell--school:fullscreen .vt-school__viz-frame,
.vt-timer__shell--school.is-fs-active .vt-school__viz-frame {
  width: min(72vw, 58vh, 20rem);
  max-width: min(72vw, 58vh, 20rem);
}
.vt-timer__shell--school:fullscreen .vt-timer__panel,
.vt-timer__shell--school.is-fs-active .vt-timer__panel {
  width: min(100%, 36rem);
}
.vt-school--controls-hidden .vt-timer__panel { display: none !important; }
.vt-school__reveal {
  position: fixed;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0));
  right: max(0.75rem, env(safe-area-inset-right, 0));
  z-index: 30;
}
.vt-directory__thumb--school svg { display: block; }

/* —— Bubble Timer (stacked: viz → digits → status → controls) —— */
/* Outer card width matches Blocks / shared .vt-timer (42rem) + .vt-timer__shell (100%).
   Do not re-cap shell max-width — keep viz circle sized via .vt-bubble__viz-frame only. */
.vt-timer__shell--bubble {
  background: linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
}
.vt-timer__shell--bubble .vt-timer__stage {
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  align-items: center;
  width: 100%;
}
.vt-timer__shell--bubble .vt-timer__panel {
  width: 100%;
  min-width: 0;
}
.vt-timer__shell--bubble .vt-timer__viz {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: auto !important;
  width: 100%;
  max-width: 100%;
  place-items: unset;
  min-width: 0;
  flex: 0 0 auto;
  text-align: center;
}
.vt-bubble__viz-frame {
  width: min(100%, 16rem);
  max-width: 16rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-inline: auto;
  overflow: hidden;
}
.vt-timer__shell--bubble .vt-timer__canvas,
.vt-timer__shell--bubble .vt-timer__ssr-bubble {
  width: 100%;
  max-width: 100%;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 50%;
  margin: 0;
  grid-area: 1 / 1;
  object-fit: contain;
}
.vt-timer__shell--bubble .vt-timer__canvas { display: none; }
.vt-timer[data-vt-mounted='1'] .vt-timer__shell--bubble .vt-timer__canvas { display: block; }
.vt-timer[data-vt-mounted='1'] .vt-timer__ssr-bubble { display: none !important; }
.vt-bubble__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0.15rem 0 0;
  text-align: center;
  gap: 0.25rem;
}
.vt-bubble__activity {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 750;
  color: #0f766e;
  line-height: 1.2;
}
.vt-bubble__activity:empty { display: none; }
.vt-bubble__digits {
  width: 100%;
  margin: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  font-size: clamp(2rem, 7vw, 2.85rem);
  color: #1e3a5f;
  line-height: 1.1;
}
.vt-bubble__status {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 650;
  color: #475569;
}
.vt-bubble__form {
  display: flex;
  flex-direction: column;
  gap: var(--vt-inrow-gap, 0.65rem);
  width: 100%;
}
.vt-bubble__duration {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  width: 100%;
}
.vt-bubble__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--vt-inrow-gap, 0.65rem);
  width: 100%;
}
.vt-bubble__title-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e3a5f;
}
.vt-bubble__title-field input {
  border: 1.5px solid rgba(15, 23, 42, 0.22);
  border-radius: 0.65rem;
  padding: 0.4rem 0.55rem;
  background: #fff;
  height: var(--vt-input-h, 2.55rem);
  min-height: var(--vt-input-h, 2.55rem);
  box-sizing: border-box;
  width: 100%;
}
.vt-bubble__title-field input:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
  border-color: var(--vt-accent, #0f766e);
}
.vt-bubble__hide-nums {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e3a5f;
  cursor: pointer;
  width: fit-content;
}
.vt-bubble--hide-numbers .vt-bubble__digits { display: none !important; }
.vt-bubble__finished[hidden] { display: none !important; }
.vt-timer__chips--bubble {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--vt-inrow-gap, 0.65rem);
  width: 100%;
  max-width: 100%;
}
.vt-timer__chips--bubble button.is-selected {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
}
/* Actions inherit shared .vt-timer__row--actions grid (incl. mobile 10px gap). */
.vt-timer__shell--bubble .vt-btn:focus-visible,
.vt-timer__shell--bubble .vt-timer__chips--bubble button:focus-visible,
.vt-timer__shell--bubble input:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}
.vt-timer__disclaimer--below {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #475569;
}
@media (max-width: 360px) {
  .vt-timer__chips--bubble { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vt-bubble__viz-frame { width: min(100%, 13.5rem); max-width: 13.5rem; }
}
.vt-timer__shell--bubble:fullscreen .vt-timer__stage,
.vt-timer__shell--bubble.is-fs-active .vt-timer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.vt-timer__shell--bubble:fullscreen .vt-bubble__viz-frame,
.vt-timer__shell--bubble.is-fs-active .vt-bubble__viz-frame {
  width: min(72vw, 58vh, 20rem);
  max-width: min(72vw, 58vh, 20rem);
}
.vt-timer__shell--bubble:fullscreen .vt-bubble__digits,
.vt-timer__shell--bubble.is-fs-active .vt-bubble__digits {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
}
.vt-timer__shell--bubble:fullscreen .vt-timer__panel,
.vt-timer__shell--bubble.is-fs-active .vt-timer__panel {
  width: min(100%, 36rem);
}
.vt-directory__thumb--bubble svg { display: block; }

/* —— Jumping Sheep Timer (stacked: viz → digits → status → controls) —— */
/* Outer card width matches Blocks / shared .vt-timer (42rem) + .vt-timer__shell (100%).
   Scene stays centered with its own .vt-sheep__viz-frame max size. */
.vt-timer__shell--sheep {
  background: linear-gradient(180deg, #f7f3ea 0%, #e8f5e9 55%, #fffdf8 100%);
}
.vt-timer__shell--sheep .vt-timer__stage {
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  align-items: center;
  width: 100%;
}
.vt-timer__shell--sheep .vt-timer__panel {
  width: 100%;
  min-width: 0;
}
.vt-timer__shell--sheep .vt-timer__viz {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: auto !important;
  width: 100%;
  max-width: 100%;
  place-items: unset;
  min-width: 0;
  flex: 0 0 auto;
  text-align: center;
}
.vt-sheep__viz-frame {
  width: min(100%, 22rem);
  max-width: 22rem;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #dbeafe 0%, #e8f5e9 45%, #c8e6c0 100%);
  border: 1px solid rgba(30, 58, 95, 0.12);
}
.vt-timer__shell--sheep .vt-timer__canvas,
.vt-timer__shell--sheep .vt-timer__ssr-sheep {
  width: 100%;
  max-width: 100%;
  height: 100% !important;
  aspect-ratio: 4 / 3;
  display: block;
  border-radius: 0.75rem;
  margin: 0;
  grid-area: 1 / 1;
  object-fit: contain;
}
.vt-timer__shell--sheep .vt-timer__canvas { display: none; }
.vt-timer[data-vt-mounted='1'] .vt-timer__shell--sheep .vt-timer__canvas { display: block; }
.vt-timer[data-vt-mounted='1'] .vt-timer__ssr-sheep { display: none !important; }
.vt-sheep__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0.15rem 0 0;
  text-align: center;
  gap: 0.25rem;
}
.vt-sheep__activity {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 750;
  color: #0f766e;
  line-height: 1.2;
}
.vt-sheep__activity:empty { display: none; }
.vt-sheep__digits {
  width: 100%;
  margin: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  font-size: clamp(2rem, 7vw, 2.85rem);
  color: #1e3a5f;
  line-height: 1.1;
}
.vt-sheep__progress-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  font-size: 0.78rem;
  font-weight: 650;
  color: #475569;
  gap: 0.5rem;
}
.vt-sheep__status {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 650;
  color: #475569;
}
.vt-sheep__form {
  display: flex;
  flex-direction: column;
  gap: var(--vt-inrow-gap, 0.65rem);
  width: 100%;
}
.vt-sheep__duration {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  width: 100%;
}
.vt-sheep__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--vt-inrow-gap, 0.65rem);
  width: 100%;
}
.vt-sheep__title-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e3a5f;
}
.vt-sheep__title-field input {
  border: 1.5px solid rgba(15, 23, 42, 0.22);
  border-radius: 0.65rem;
  padding: 0.4rem 0.55rem;
  background: #fff;
  height: var(--vt-input-h, 2.55rem);
  min-height: var(--vt-input-h, 2.55rem);
  box-sizing: border-box;
  width: 100%;
}
.vt-sheep__title-field input:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
  border-color: var(--vt-accent, #0f766e);
}
.vt-sheep__hide-nums {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e3a5f;
  cursor: pointer;
  width: fit-content;
}
.vt-sheep--hide-numbers .vt-sheep__digits { display: none !important; }
.vt-sheep__finished[hidden] { display: none !important; }
.vt-timer__chips--sheep {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--vt-inrow-gap, 0.65rem);
  width: 100%;
  max-width: 100%;
}
.vt-timer__chips--sheep button.is-selected {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
}
/* Actions inherit shared .vt-timer__row--actions grid (incl. mobile 10px gap). */
.vt-timer__shell--sheep .vt-btn:focus-visible,
.vt-timer__shell--sheep .vt-timer__chips--sheep button:focus-visible,
.vt-timer__shell--sheep input:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}
@media (max-width: 360px) {
  .vt-timer__chips--sheep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vt-sheep__viz-frame { width: min(100%, 100%); max-width: 100%; }
}
.vt-timer__shell--sheep:fullscreen .vt-timer__stage,
.vt-timer__shell--sheep.is-fs-active .vt-timer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.vt-timer__shell--sheep:fullscreen .vt-sheep__viz-frame,
.vt-timer__shell--sheep.is-fs-active .vt-sheep__viz-frame {
  width: min(88vw, 62vh, 28rem);
  max-width: min(88vw, 62vh, 28rem);
}
.vt-timer__shell--sheep:fullscreen .vt-sheep__digits,
.vt-timer__shell--sheep.is-fs-active .vt-sheep__digits {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
}
.vt-timer__shell--sheep:fullscreen .vt-timer__panel,
.vt-timer__shell--sheep.is-fs-active .vt-timer__panel {
  width: min(100%, 36rem);
}
.vt-directory__thumb--sheep svg { display: block; }

/* ——— Count Up Timer — above-fold compact (Blocks 42rem, stacked) ——— */
.vt-timer--count-up {
  --vt-countup-ink: #1e3a5f;
  --vt-countup-accent: #0f766e;
  --vt-countup-cream: #f7f3ea;
  --vt-countup-gap: clamp(0.75rem, 1.2vh, 1rem); /* 12–16px between major blocks */
  --vt-countup-digit: clamp(1.85rem, 4.2vh + 1.2vw, 3.1rem);
  --vt-countup-input-h: clamp(2.35rem, 4.2vh, 2.75rem);
  --vt-countup-chip-h: clamp(2.1rem, 3.8vh, 2.45rem);
  --vt-countup-font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
/* Page chrome around this tool: tighter title/intro so the card fits one screen */
body:has(.vt-timer--count-up) .vt-page-header,
body:has(.vt-timer--count-up) .entry-header,
.vt-countup-page .vt-page-header,
.vt-countup-page .entry-header {
  margin-bottom: 0.35rem;
}
body:has(.vt-timer--count-up) .vt-page-intro,
.vt-countup-page .vt-page-intro {
  margin: 0 0 0.55rem;
  font-size: clamp(0.92rem, 1.6vh, 1.05rem);
  line-height: 1.35;
  max-width: 40rem;
}
body:has(.vt-timer--count-up) h1.entry-title,
body:has(.vt-timer--count-up) .vt-page-title,
.vt-countup-page h1 {
  margin: 0.35rem 0 0.25rem;
  font-size: clamp(1.35rem, 2.8vh + 0.4vw, 1.85rem);
  line-height: 1.15;
}
.vt-timer__shell--countup {
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(15, 118, 110, 0.08), transparent 52%),
    linear-gradient(180deg, #fffdf9 0%, #f7f3ea 100%);
  padding: clamp(0.55rem, 1.2vh, 0.85rem) clamp(0.65rem, 1.5vw, 1rem);
  gap: var(--vt-countup-gap);
}
.vt-timer__shell--countup .vt-timer__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
}
.vt-timer__shell--countup .vt-timer__viz {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: auto !important;
  width: 100%;
  max-width: 100%;
  place-items: unset;
  gap: 0.2rem;
}
.vt-timer__shell--countup .vt-timer__canvas--hidden {
  display: none !important;
}
.vt-countup__display {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: clamp(0.45rem, 1vh, 0.7rem) 0.85rem clamp(0.4rem, 0.9vh, 0.6rem);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(30, 58, 95, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 0;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.05);
  overflow: visible;
}
.vt-countup__display[data-theme='dark'] {
  background: #1e3a5f;
  border-color: rgba(94, 234, 212, 0.22);
}
.vt-countup__time {
  display: block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 750;
  font-size: var(--vt-countup-digit);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--vt-countup-ink);
  min-width: 9ch;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}
.vt-countup__display[data-theme='dark'] .vt-countup__time {
  color: #5eead4;
}
.vt-countup__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  width: 100%;
  text-align: center;
  margin: 0 0 0.15rem;
}
.vt-countup__activity {
  min-height: 0;
  font-family: var(--vt-countup-font);
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--vt-countup-ink);
  line-height: 1.2;
}
.vt-countup__activity:empty {
  display: none;
}
.vt-countup__summary {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  max-width: 36rem;
  font-family: var(--vt-countup-font);
  font-size: clamp(0.8rem, 1.5vh, 0.9rem);
  font-weight: 650;
  line-height: 1.3;
  color: var(--vt-muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.vt-countup__status {
  margin: 0;
  color: var(--vt-muted);
  font-weight: 650;
}
.vt-countup__target-line {
  margin: 0;
  color: var(--vt-countup-ink);
  font-weight: 650;
  max-width: 100%;
}
.vt-countup__pending {
  margin: 0;
  width: 100%;
  font-weight: 650;
  color: #b45309;
  font-size: 0.85em;
}
.vt-countup__pending[hidden] {
  display: none !important;
}
.vt-countup__progress {
  width: 100%;
  max-width: 16rem;
  margin: 0;
}
.vt-countup__progress[hidden] {
  display: none !important;
}
.vt-countup__bar {
  width: 100%;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.12);
  overflow: hidden;
}
.vt-countup__display[data-theme='dark'] .vt-countup__bar {
  background: rgba(94, 234, 212, 0.18);
}
.vt-countup__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--vt-countup-accent);
}
.vt-countup__display[data-theme='dark'] .vt-countup__bar-fill {
  background: #5eead4;
}
.vt-countup__ring { display: none !important; }

/* Panel: actions directly under display, then targets, then activity/settings */
.vt-timer__shell--countup .vt-timer__panel {
  display: flex;
  flex-direction: column;
  gap: var(--vt-countup-gap);
  font-family: var(--vt-countup-font);
}
.vt-timer__shell--countup .vt-timer__row--actions {
  order: 1;
  margin: 0;
}
.vt-timer__shell--countup .vt-timer__row--duration {
  order: 2;
  margin: 0;
}
.vt-timer__shell--countup .vt-timer__row--display {
  order: 3;
  margin: 0;
}
.vt-timer__shell--countup .vt-timer__row--advanced {
  order: 4;
  margin: 0;
}
.vt-timer__shell--countup .vt-timer__row--actions .vt-timer__controls,
.vt-timer__shell--countup .vt-timer__controls {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.vt-timer__shell--countup .vt-timer__controls > .vt-btn {
  width: 100%;
  min-width: 0;
  min-height: var(--vt-control-h);
  height: var(--vt-control-h);
  box-sizing: border-box;
  font-family: var(--vt-countup-font);
}

.vt-countup__form {
  display: flex;
  flex-direction: column;
  gap: var(--vt-countup-gap);
  width: 100%;
}
.vt-countup__target-panel {
  display: flex;
  flex-direction: column;
  gap: var(--vt-countup-gap);
  width: 100%;
}
.vt-countup__target-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  width: 100%;
}
.vt-countup__target-heading {
  margin: 0;
  font-family: var(--vt-countup-font);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--vt-countup-ink);
  flex: 1 1 auto;
  min-width: 0;
}
.vt-countup__target-head .vt-countup__clear,
.vt-countup__clear {
  flex: 0 0 auto;
  width: auto;
  min-width: 6.75rem;
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0 0.85rem;
  font-family: var(--vt-countup-font);
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1;
  pointer-events: auto !important;
  border: 1px solid rgba(30, 58, 95, 0.32);
  background: #fff;
  color: var(--vt-countup-ink);
  border-radius: 0.55rem;
  cursor: pointer;
  box-sizing: border-box;
}
.vt-countup__target-head .vt-countup__clear:focus-visible,
.vt-countup__clear:focus-visible {
  outline: 2px solid var(--vt-countup-accent);
  outline-offset: 2px;
}
.vt-countup__fields-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}
.vt-countup__stop-toggle {
  margin: 0;
  font-family: var(--vt-countup-font);
  font-size: 0.82rem;
  gap: 0.35rem;
  align-self: flex-start;
  min-height: 2rem;
}
.vt-countup__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.vt-countup__fields label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--vt-countup-font);
  font-size: 0.8rem;
  font-weight: 650;
  min-width: 0;
}
.vt-countup__fields input {
  height: var(--vt-countup-input-h);
  min-height: var(--vt-countup-input-h);
  border: 1px solid rgba(30, 58, 95, 0.32);
  border-radius: 0.55rem;
  padding: 0 0.55rem;
  font: inherit;
  font-family: var(--vt-countup-font);
  width: 100%;
  min-width: 0;
  background: rgba(247, 243, 234, 0.65);
  box-sizing: border-box;
}
.vt-countup__fields input:focus {
  outline: 2px solid var(--vt-countup-accent);
  outline-offset: 1px;
  background: #fff;
}
.vt-countup__error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 650;
}
.vt-countup__error[hidden] {
  display: none !important;
}
.vt-countup__chips {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  width: 100%;
}
.vt-countup__chips button {
  width: 100%;
  min-width: 0;
  height: var(--vt-countup-chip-h);
  min-height: var(--vt-countup-chip-h);
  border-radius: 0.5rem;
  border: 1px solid rgba(30, 58, 95, 0.16);
  background: #fff;
  font-family: var(--vt-countup-font);
  font-weight: 650;
  font-size: 0.82rem;
  color: var(--vt-countup-ink);
  cursor: pointer;
  padding: 0 0.2rem;
}
.vt-countup__chips button.is-selected,
.vt-countup__chips button[aria-pressed='true'] {
  background: rgba(15, 118, 110, 0.12);
  border-color: var(--vt-countup-accent);
  color: var(--vt-countup-accent);
}
.vt-countup__chips button.is-pending {
  border-style: dashed;
  border-color: #b45309;
  color: #b45309;
  background: rgba(180, 83, 9, 0.06);
}
.vt-countup__target-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  margin: 0;
  width: 100%;
}
.vt-countup__target-actions:empty,
.vt-countup__target-actions:not(:has(> :not([hidden]))) {
  display: none;
}
.vt-countup__target-actions .vt-btn[data-vt-countup-apply] {
  flex: 0 1 auto;
  min-width: 0;
  min-height: var(--vt-countup-chip-h);
  height: var(--vt-countup-chip-h);
  font-family: var(--vt-countup-font);
  font-size: 0.85rem;
}
.vt-countup__target-actions .vt-btn[data-vt-countup-apply][hidden] {
  display: none !important;
}
.vt-countup__title-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--vt-countup-font);
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--vt-countup-ink);
}
.vt-countup__title-field input {
  height: var(--vt-countup-input-h);
  min-height: var(--vt-countup-input-h);
  border: 1px solid rgba(30, 58, 95, 0.35);
  border-radius: 0.55rem;
  padding: 0 0.65rem;
  font: inherit;
  font-family: var(--vt-countup-font);
  background: #fff;
  color: var(--vt-ink);
  box-sizing: border-box;
  width: 100%;
}
.vt-countup__title-field input:focus {
  outline: 2px solid var(--vt-countup-accent);
  outline-offset: 1px;
  background: #fff;
}
.vt-countup__field-help {
  font-family: var(--vt-countup-font);
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--vt-muted);
  line-height: 1.3;
}

/* Shared expand/collapse for Display / Advanced — compact */
.vt-timer__shell--countup .vt-countup__details {
  margin: 0;
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 0.6rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
}
.vt-timer__shell--countup .vt-countup__details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.75rem;
  font-weight: 650;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--vt-countup-ink);
  box-sizing: border-box;
}
.vt-timer__shell--countup .vt-countup__details > summary::-webkit-details-marker {
  display: none;
}
.vt-timer__shell--countup .vt-countup__details > summary:focus-visible {
  outline: 2px solid var(--vt-countup-accent);
  outline-offset: 2px;
  border-radius: 0.45rem;
}
.vt-countup__details-label {
  flex: 1;
  min-width: 0;
}
.vt-countup__details-chevron {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--vt-countup-ink);
  border-bottom: 2px solid var(--vt-countup-ink);
  transform: rotate(45deg);
  opacity: 0.7;
  margin-top: -0.12rem;
}
.vt-timer__shell--countup .vt-countup__details[open] > summary .vt-countup__details-chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}
.vt-countup__details-body {
  padding: 0 0.75rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.vt-timer__shell--countup .vt-timer__advanced.vt-countup__details {
  border-top: 0;
  padding-top: 0;
  color: inherit;
  margin-top: 0;
}
.vt-timer__shell--countup .vt-timer__advanced.vt-countup__details > :not(summary) {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}
.vt-timer__shell--countup .vt-timer__advanced.vt-countup__details > :not(summary):last-child {
  margin-bottom: 0.7rem;
}
.vt-timer__shell--countup:fullscreen .vt-countup__display,
.vt-timer__shell--countup.is-fs-active .vt-countup__display {
  max-width: min(92vw, 32rem);
}
.vt-timer__shell--countup:fullscreen .vt-countup__time,
.vt-timer__shell--countup.is-fs-active .vt-countup__time {
  font-size: clamp(2.8rem, 12vw, 5rem);
}
.vt-timer__shell--countup:fullscreen .vt-timer__stage,
.vt-timer__shell--countup.is-fs-active .vt-timer__stage {
  justify-content: center;
  min-height: 100%;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.vt-timer__shell--countup:fullscreen .vt-timer__panel,
.vt-timer__shell--countup.is-fs-active .vt-timer__panel {
  width: min(100%, 36rem);
}
@media (max-width: 640px) {
  .vt-countup__chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .vt-countup__target-head {
    align-items: flex-start;
  }
  .vt-countup__target-heading {
    flex: 1 1 calc(100% - 8rem);
  }
  .vt-countup__target-head .vt-countup__clear {
    min-height: 2.5rem;
    height: 2.5rem;
  }
}
@media (max-width: 380px) {
  .vt-countup__chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-height: 780px) {
  .vt-timer--count-up {
    --vt-countup-digit: clamp(1.7rem, 3.6vh + 1vw, 2.6rem);
    --vt-countup-input-h: 2.25rem;
    --vt-countup-chip-h: 2rem;
    --vt-countup-gap: 0.7rem;
  }
  .vt-timer__shell--countup .vt-countup__details > summary {
    min-height: 2.15rem;
  }
}
@media (max-height: 700px) {
  .vt-countup__title-field .vt-countup__field-help {
    display: none;
  }
  .vt-timer--count-up {
    --vt-countup-digit: clamp(1.55rem, 3.2vh + 0.8vw, 2.35rem);
    --vt-countup-input-h: 2.1rem;
    --vt-countup-chip-h: 1.9rem;
    --vt-countup-gap: 0.65rem;
  }
  .vt-timer__shell--countup {
    padding: 0.4rem 0.65rem;
  }
  .vt-countup__display {
    padding: 0.35rem 0.7rem 0.3rem;
  }
  .vt-timer__shell--countup .vt-countup__details > summary {
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
  }
  .vt-countup-page h1,
  body:has(.vt-timer--count-up) h1.entry-title,
  body:has(.vt-timer--count-up) .vt-page-title {
    margin: 0.2rem 0 0.15rem;
    font-size: clamp(1.2rem, 2.4vh + 0.3vw, 1.55rem);
  }
  .vt-countup-page .vt-page-intro,
  body:has(.vt-timer--count-up) .vt-page-intro {
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
  }
}
@media (max-width: 400px) and (max-height: 700px) {
  .vt-site-header {
    height: 44px;
  }
  .vt-countup__title-field > span:first-child {
    font-size: 0.78rem;
  }
}
.vt-directory__thumb--count-up svg {
  display: block;
}
