/* Desk Break Timer. All classes start with dbt- to avoid clashes. */
.dbt-panel { max-width: 960px; }
.dbt-svg[hidden], .dbt-banner[hidden] { display: none; }
.dbt-banner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--yellow); color: var(--black); border: 3px solid var(--ink); padding: 14px 18px; margin: 0 0 20px; }
.dbt-banner-text { margin: 0; font-size: 1.15rem; color: var(--black); }
.dbt-banner-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dbt-banner .btn { min-height: 48px; }
.dbt-banner .btn-outline { background: var(--white); }
.dbt-safety { margin-top: 0; }

.dbt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
.dbt-main, .dbt-stage, .dbt-opt { min-width: 0; }
.dbt-stage { display: grid; gap: 14px; justify-items: center; }
.dbt-fig { width: 100%; max-width: 220px; }
.dbt-svg { display: block; width: 100%; height: auto; border: 3px solid var(--ink); background: var(--yellow); }

.dbt-ringbox { position: relative; width: 150px; height: 150px; }
.dbt-ring-svg { width: 100%; height: 100%; display: block; }
.dbt-ring-svg circle:last-child { transition: stroke-dashoffset .25s linear; }
.dbt-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.dbt-num span { font-size: 3rem; font-weight: 900; color: var(--ink); }
.dbt-num small { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Static progress bar replaces the ring when the visitor asks for reduced motion */
.dbt-bar { display: none; width: 100%; max-width: 220px; height: 16px; }
.dbt-reduced .dbt-ring-svg { display: none; }
.dbt-reduced .dbt-ringbox { height: auto; width: auto; }
.dbt-reduced .dbt-num { position: static; }
.dbt-reduced .dbt-bar { display: block; }
@media (prefers-reduced-motion: reduce) {
  .dbt-ring-svg circle:last-child { transition: none; }
  .dbt-ring-svg { display: none; }
  .dbt-ringbox { height: auto; width: auto; }
  .dbt-num { position: static; }
  .dbt-bar { display: block; }
}

.dbt-move { margin: 0 0 4px; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-dark); }
.dbt-name { margin: 0 0 4px; font-size: clamp(1.6rem, 4.6vw, 2.3rem); font-weight: 900; line-height: 1.08; }
.dbt-side { margin: 0 0 6px; min-height: 1.5em; font-weight: 800; color: var(--ink); }
.dbt-side:not(:empty)::before { content: "\25B6\00a0"; color: var(--red-dark); }
.dbt-cue { margin: 0 0 14px; font-size: 1.1rem; font-weight: 600; color: var(--ink); min-height: 3.6em; }
.dbt-dots { display: flex; gap: 8px; margin: 0 0 14px; }
.dbt-dot { width: 26px; height: 8px; background: var(--surface); border: 2px solid var(--ink); }
.dbt-dot.is-done { background: var(--ink); }
.dbt-dot.is-now { background: var(--red); }
.dbt-total { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; font-weight: 700; color: var(--ink); }
.dbt-total label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-dark); }
.dbt-total progress { flex: 1 1 140px; max-width: 260px; }
.dbt-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dbt-btns .btn { min-height: 52px; padding-left: 10px; padding-right: 10px; min-width: 0; }
.dbt-btns .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.dbt-live { margin: 12px 0 0; min-height: 1.6em; color: var(--muted); font-size: .95rem; }

.dbt-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 3px solid var(--ink); }
.dbt-opt .choice { min-height: 52px; align-items: center; }
.dbt-opt .choice:has(input:focus-visible) { outline: 3px solid var(--yellow); box-shadow: 0 0 0 6px var(--black); }
.dbt-hint { display: block; margin: 4px 0 0; font-size: .88rem; font-weight: 400; color: var(--muted); }
.dbt-lab { display: block; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.dbt-select { width: 100%; max-width: 260px; min-height: 48px; padding: 10px 12px; font: inherit; font-weight: 700; border: 3px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); }

.dbt-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; padding: 18px; background: var(--surface); border: 3px solid var(--ink); }
.dbt-stats p { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-weight: 800; color: var(--ink); }
.dbt-stat-num { font-size: 1.7rem; font-weight: 900; color: var(--red-dark); line-height: 1; }
.dbt-stat-clear { align-items: center !important; }

/* Static sections */
.dbt-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; margin: 0 0 24px; }
.dbt-figure { margin: 0; max-width: 260px; }
.dbt-figure-narrow { max-width: 200px; }
.dbt-figure img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.dbt-moves { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 10px; }
.dbt-diagram { margin: 8px 0 18px; max-width: 520px; }
.dbt-diagram svg { display: block; width: 100%; height: auto; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.dbt-diagram figcaption { margin-top: 10px; font-size: .92rem; font-weight: 700; color: var(--ink); }

@media (min-width: 700px) {
  .dbt-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 34px; }
  .dbt-btns { grid-template-columns: repeat(4, auto); justify-content: start; }
  .dbt-options { grid-template-columns: repeat(3, 1fr); }
  .dbt-stats { grid-template-columns: repeat(3, 1fr); }
  .dbt-stat-clear { grid-column: 1 / -1; }
  .dbt-split { grid-template-columns: 1fr 260px; gap: 36px; }
  .dbt-split-rev { grid-template-columns: 260px 1fr; }
  .dbt-split-rev > :first-child { order: 2; }
  .dbt-split-rev > .dbt-figure { order: 1; }
}
@media (max-width: 520px) {
  .dbt-panel { padding: 20px 14px; }
}
@media print { .dbt-panel, .dbt-banner { display: none !important; } }
