/* Special timer tools — scoped so published pages are untouched */
.tmz-app[data-tmz-tool] .tmz-pick-timer{display:none}
.tmz-app[data-tmz-tool] .tmz-pick-special{display:block}
.tmz-sp-row{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 0 8px}
.tmz-sp-fields{gap:10px;align-items:flex-end}
.tmz-sp-fl{display:flex;flex-direction:column;gap:2px;font-size:12px;font-weight:500;color:var(--mu);text-align:center}
.tmz-sp-fl input{width:64px;height:34px;border:1px solid var(--bd);border-radius:4px;text-align:center;font:inherit;font-size:15px;font-weight:500;background:var(--sf);color:var(--tx)}
.tmz-sp-check{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:var(--tx);margin:4px 0 0}
.tmz-sp-extras{margin:4px 0 0}
.tmz-sp-skip{min-width:88px}
.tmz-pomo-dots{display:flex;gap:8px;justify-content:center;margin:4px 0 2px}
.tmz-dot{width:10px;height:10px;border-radius:50%;background:var(--bd);display:inline-block}
.tmz-dot.on{background:var(--ac,#1d5fd6)}
.tmz-pomo-meta{font-size:13px;font-weight:500;color:var(--mu);margin:0 0 6px}
.tmz-bomb-art{margin:0 auto 4px;max-width:180px}
.tmz-bomb-svg{width:120px;height:90px;display:block;margin:0 auto}
.tmz-fuse{stroke-dasharray:48;stroke-dashoffset:0}
.tmz-fusebar{height:6px;background:var(--bd);border-radius:99px;overflow:hidden;margin:6px 16px 0}
.tmz-fusebar span{display:block;height:100%;width:100%;background:#c2410c;border-radius:99px}
.tmz-card.tmz-bomb-hot{box-shadow:0 0 0 2px #e11d48}
.tmz-card.tmz-bomb-hot .tmz-time{color:#e11d48}
.tmz-boom{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,240,220,.92);font-size:clamp(48px,12vw,96px);font-weight:600;letter-spacing:.06em;color:#9a3412;z-index:5;pointer-events:none;border-radius:4px}
.tmz-boom[hidden]{display:none!important}
.tmz-sp-colors{gap:8px}
.tmz-color{width:28px;height:28px;border-radius:50%;border:2px solid var(--bd);background:var(--c);padding:0;cursor:pointer}
.tmz-color[aria-pressed=true]{border-color:var(--hd);box-shadow:0 0 0 2px var(--c)}
.tmz-card.tmz-hide-digits .tmz-time{visibility:hidden}
.tmz-sp-task{display:block;margin:0 0 6px}
.tmz-sp-task input{width:min(100%,320px);height:36px;border:1px solid var(--bd);border-radius:4px;padding:0 10px;font:inherit;font-size:15px;font-weight:500;background:var(--sf);color:var(--tx);text-align:center}
.tmz-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.tmz-study-log{font-size:13px;font-weight:500;color:var(--mu);margin:0 0 4px}
.tmz-study-log strong{font-weight:600;color:var(--hd)}
/* Aesthetic themes live only inside the card (rail and H1 stay site chrome) */
.tmz-card[data-ae]{transition:background .35s ease,color .35s ease,border-color .35s ease}
.tmz-card[data-ae] .tmz-lcd{font-family:ui-sans-serif,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-weight:600;font-style:normal;letter-spacing:.02em}
.tmz-card[data-ae=mist]{background:linear-gradient(180deg,#eef2f6,#d9e2ec);border-color:#c5d0dc}
.tmz-card[data-ae=dusk]{background:linear-gradient(180deg,#f3e6e1,#d9b8b0);border-color:#c9a39a;--lcd:#4a2f2a;color:#4a2f2a}
.tmz-card[data-ae=sage]{background:linear-gradient(180deg,#e7efe6,#c5d6c4);border-color:#a8bfa6;--lcd:#1f3a28}
.tmz-card[data-ae=sand]{background:linear-gradient(180deg,#f6efdf,#e4d3b0);border-color:#d2be93;--lcd:#5a4420}
.tmz-card[data-ae=night]{background:linear-gradient(180deg,#243044,#121826);border-color:#1b2433;color:#e8eef6;--lcd:#e8eef6;--mu:#b7c0cc}
.tmz-card[data-ae=night] .tmz-label,.tmz-card[data-ae=night] .tmz-sub,.tmz-card[data-ae=night] .tmz-ib{color:#c5cdd8}
.tmz-card[data-ae=night] .tmz-btn:not(.tmz-start){background:#1c2533;color:#e8eef6;border-color:#2a3546}
.tmz-sand{display:flex;justify-content:center;margin:0}
@media(prefers-reduced-motion:reduce){
  .tmz-sand-stage,.tmz-sand-stage.tmz-sand-flip{animation:none!important;transform:none!important}
  .tmz-card[data-ae]{transition:none}
}

/* Keep extras (hourglass, bomb art, dots) from being flex-squashed in the fixed card */
.tmz-app[data-tmz-tool] .tmz-sp-extras{flex-shrink:0;overflow:visible}
.tmz-sand{flex:none}
.tmz-bomb-art,.tmz-bomb-svg{flex:none}

/* iPad: pin H1 and the 5-tool rail to the same top gap as the homepage.
   Homepage timer uses a tall centred hero; extra tray rows would otherwise
   lift H1 and the rail. Same 119px flex-start used on the other tools. */
html.tmz-i .tmz-hero:has(.tmz-app[data-tmz-tool]){
  justify-content:flex-start;
  padding-top:119px
}

/* Desktop tray is a fixed 105px slot; keep special controls in one tight wrap so they stay visible */
html.tmz-d .tmz-app[data-tmz-tool] .tmz-pick-special{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 16px
}
html.tmz-d .tmz-app[data-tmz-tool] .tmz-sp-row{margin:0}
html.tmz-d .tmz-app[data-tmz-tool] .tmz-sp-check{margin:0}
html.tmz-d .tmz-app[data-tmz-tool] .tmz-go{min-width:140px;white-space:normal;line-height:1.15;padding:4px 12px;height:auto;min-height:40px}
.tmz-sp-extras{width:100%;display:flex;flex-direction:column;align-items:center}

/* Beat .tmz-app svg {width:22px;fill:none} so the bomb (and glass) keep their own paint and size */
.tmz-app[data-tmz-tool] .tmz-bomb-svg{
  width:120px;height:90px;stroke:initial;stroke-width:initial;fill:initial;flex:none
}
.tmz-app[data-tmz-tool] .tmz-sand-frame{
  width:100%;height:100%;stroke:initial;stroke-width:initial;fill:initial;overflow:visible
}


/* ===== 1.3.26 layout polish (scoped to special tools only) ===== */

/* Skip must use readable type: bare .tmz-btn is white on pale grey. */
.tmz-app[data-tmz-tool] .tmz-sp-skip{
  background:var(--sf);color:var(--hd);border:1px solid var(--bd2);
  height:34px;min-width:72px;max-width:none;width:auto;padding:0 14px;
  font-size:14px;font-weight:500;flex:none;align-self:flex-end;margin:0
}
.tmz-app[data-tmz-tool] .tmz-sp-skip:hover,
.tmz-app[data-tmz-tool] .tmz-sp-skip:focus-visible{
  background:var(--sf2);color:var(--hd)
}
.tmz-app[data-tmz-tool] .tmz-sp-fields{align-items:flex-end}

/* Bomb: same-size Start button; label shortened in JS to "Light fuse". */
.tmz-app[data-tmz-tool=bomb] .tmz-go{
  white-space:nowrap;height:40px;min-height:40px;line-height:1;
  padding:0 10px;width:auto;max-width:none
}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-go,
html.tmz-d .tmz-app[data-tmz-tool] .tmz-go{
  height:34px;min-height:34px;min-width:95px;white-space:nowrap;line-height:1;padding:0 8px
}
html.tmz-m .tmz-app[data-tmz-tool=bomb] .tmz-go{
  height:36px;min-height:36px;flex:1 1 0;padding:0 8px;font-size:14px
}

/* Ghost 8s behind bomb digits so "1" sits in a full 7-segment cell, like 05:00. */
.tmz-app[data-tmz-tool=bomb] .tmz-lcd.tmz-has-ghost{position:relative;display:inline-block}
.tmz-app[data-tmz-tool=bomb] .tmz-time-ghost{
  position:absolute;left:0;top:0;right:0;
  color:var(--lcd-ghost);pointer-events:none;user-select:none;
  font:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;
  font-style:inherit;font-weight:inherit;white-space:nowrap;text-align:center
}
.tmz-app[data-tmz-tool=bomb] .tmz-time{position:relative;z-index:1}

/* Bomb art sits with the timer display (above digits on mobile, beside on desktop). */
.tmz-app[data-tmz-tool=bomb] .tmz-face{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%
}
.tmz-app[data-tmz-tool=bomb] .tmz-sp-extras{margin:0;width:auto}
.tmz-app[data-tmz-tool=bomb] .tmz-bomb-art{margin:0 auto;max-width:none}
.tmz-app[data-tmz-tool=bomb] .tmz-bomb-svg{width:88px;height:66px}
.tmz-app[data-tmz-tool=bomb] .tmz-fusebar{margin:4px 8px 0;height:5px;width:88px}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-face{
  flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 28px
}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-sp-extras{order:1}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-lcd{order:2}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-sub{order:3;flex-basis:100%}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-bomb-svg{width:108px;height:81px}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-fusebar{width:108px}

/* Sand: hourglass is the hero of the card; smaller digits under it; buttons stay at the bottom.
   Extras shrink-wrap the glass so leftover card height is not dumped between the cap and the
   digits. The cluster sits just above the controls, with a controlled cap-to-digit gap
   (visual ~20–28px on mobile, proportional on iPad/desktop) and a matching gap to the buttons. */
.tmz-app[data-tmz-tool=sand] .tmz-card{display:flex;flex-direction:column;justify-content:flex-start}
.tmz-app[data-tmz-tool=sand] .tmz-card .tmz-label{top:auto!important}
.tmz-app[data-tmz-tool=sand] .tmz-face{
  flex:1 1 auto;min-height:0;width:100%;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end
}
.tmz-app[data-tmz-tool=sand] .tmz-sp-extras{
  flex:none;width:100%;margin:0;
  display:flex;align-items:center;justify-content:center
}
.tmz-app[data-tmz-tool=sand] .tmz-sand{
  width:100%;height:auto;min-height:0;margin:0;
  display:flex;align-items:center;justify-content:center;
  perspective:900px
}
.tmz-app[data-tmz-tool=sand] .tmz-sand-stage{
  position:relative;
  width:137px;
  height:206px;
  max-width:min(160px,72%);
  aspect-ratio:240/360;
  flex:none;
  margin-bottom:14px;
  transform-origin:center center;
  transform-style:preserve-3d
}
.tmz-app[data-tmz-tool=sand] .tmz-sub{display:none}
.tmz-app[data-tmz-tool=sand] .tmz-ctrl{flex-shrink:0;margin-top:22px;position:relative;z-index:2}
.tmz-app[data-tmz-tool=sand] .tmz-sand-frame,
.tmz-app[data-tmz-tool=sand] .tmz-sand-cv{
  position:absolute;inset:0;width:100%;height:100%;display:block
}
.tmz-app[data-tmz-tool=sand] .tmz-sand-cv{z-index:1}
.tmz-app[data-tmz-tool=sand] .tmz-sand-frame{z-index:2;overflow:visible}
.tmz-app[data-tmz-tool=sand] .tmz-sand-stage.tmz-sand-flip{
  animation:tmz-sand-flip .8s cubic-bezier(.22,.8,.28,1) both
}
@keyframes tmz-sand-flip{
  0%{transform:rotateX(0) scale(1)}
  42%{transform:rotateX(210deg) scale(1.05)}
  72%{transform:rotateX(340deg) scale(.98)}
  100%{transform:rotateX(360deg) scale(1)}
}
.tmz-app[data-tmz-tool=sand] .tmz-lcd{
  font-size:calc(clamp(40px,9vw,64px)*var(--ds,1))!important;
  margin:0!important
}
html.tmz-d .tmz-app[data-tmz-tool=sand] .tmz-sand-stage{width:133px;height:200px;max-width:140px;margin-bottom:16px}
html.tmz-d .tmz-app[data-tmz-tool=sand] .tmz-lcd{font-size:56px!important;margin:0!important}
html.tmz-d .tmz-app[data-tmz-tool=sand] .tmz-ctrl{margin-top:20px}
html.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-face{justify-content:center}
html.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-sand-stage{width:144px;height:216px;max-width:150px;margin-bottom:16px}
html.tmz-m .tmz-app[data-tmz-tool=sand] .tmz-sand-stage{width:135px;height:202px;max-width:145px;margin-bottom:14px}
html.tmz-m .tmz-app[data-tmz-tool=sand] .tmz-lcd{font-size:48px!important;margin:0!important}
html.tmz-m .tmz-app[data-tmz-tool=sand] .tmz-ctrl{margin-top:22px}

/* Classroom desktop: grow the disc to the leftover card height (mobile already fills). */
html.tmz-d .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc]{
  display:flex;flex-direction:column;justify-content:space-between
}
html.tmz-d .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-face{
  width:min(360px,100%);
  max-width:360px;
  max-height:360px;
  margin:0 auto;
  flex:0 0 auto
}
html.tmz-d .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-lcd{
  font-size:72px
}
html.tmz-d .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-lcd:has(.tmz-long){font-size:56px}
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-face{
  width:min(420px,86%);
  max-width:420px;
  margin:8px auto
}

/* 1.3.26b: keep bomb art clear of overflowing LCD glyphs; quieter ghost. */
.tmz-app[data-tmz-tool=bomb] .tmz-sp-extras{
  position:relative;z-index:2;flex:none;flex-shrink:0;
  margin:0 0 10px;min-height:0
}
.tmz-app[data-tmz-tool=bomb] .tmz-lcd{
  height:auto;min-height:1em;overflow:visible;z-index:1;margin-top:4px
}
.tmz-app[data-tmz-tool=bomb] .tmz-time-ghost{
  color:rgba(20,24,32,.06)
}
html[data-tmz=dark] .tmz-app[data-tmz-tool=bomb] .tmz-time-ghost{
  color:rgba(213,218,227,.08)
}

/* Classroom: leave a gap above the control row so the disc doesn't sit on the buttons. */
html.tmz-d .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-face{
  width:min(318px,100%);
  max-width:318px;
  max-height:318px;
  margin:0 auto 8px
}
html.tmz-d .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-ctrl{
  position:relative;z-index:2;margin-top:8px;flex-shrink:0
}
.tmz-app[data-tmz-tool=bomb] .tmz-bomb-art{margin:0 auto 20px}
.tmz-app[data-tmz-tool=bomb] .tmz-lcd{margin-top:12px}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-bomb-art{margin:0}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-lcd{margin-top:0}

/* iPad sand: plain px (no --ds), keep the glass as hero, buttons inside the 656px card. */
html.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-lcd,
html.tmz-sc.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-lcd{
  font-size:64px!important;
  margin:0!important
}
html.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-ctrl{
  flex-shrink:0;margin-top:24px;position:relative;z-index:2
}

/* iPad classroom: cap the disc so it and the control row stay inside the card;
   digits must sit inside the ring (disc font size, not the full LCD). */
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc]{
  display:flex;flex-direction:column;justify-content:space-between
}
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card,
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc]{
  height:656px!important;
  min-height:656px!important;
  max-height:656px!important;
  box-sizing:border-box;
  display:flex;
  flex-direction:column
}
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-ctrl{flex-shrink:0;margin-top:8px}
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-face{
  width:min(436px,80%);
  max-width:436px;
  max-height:436px;
  aspect-ratio:1;
  margin:8px auto;
  flex:1 1 auto;
  min-height:0
}
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-lcd,
html.tmz-sc.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-lcd{
  font-size:96px!important
}
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card[data-view=disc] .tmz-lcd:has(.tmz-long){
  font-size:72px!important
}
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-ctrl{
  flex-shrink:0;position:relative;z-index:2;margin-top:8px
}

/* iPad saved-layout translates assume the homepage stack. Extra sand/classroom
   content would push Start/Edit/Reset into the tray; neutralize on these cards. */
html.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-label,
html.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-face,
html.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-lcd,
html.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-ctrl,
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card .tmz-label,
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card .tmz-face,
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card .tmz-lcd,
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-card .tmz-ctrl,
html.tmz-m .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-label,
html.tmz-m .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-face,
html.tmz-m .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-lcd,
html.tmz-m .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-ctrl,
html.tmz-d .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-label,
html.tmz-d .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-face,
html.tmz-d .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-lcd,
html.tmz-d .tmz-app[data-tmz-tool=sand] .tmz-card .tmz-ctrl{
  translate:none!important;
  transform:none!important;
  top:auto!important;
  bottom:auto!important
}
html.tmz-i .tmz-app[data-tmz-tool=classroom] .tmz-ctrl{
  margin-top:16px
}
html.tmz-i .tmz-app[data-tmz-tool=sand] .tmz-ctrl{
  margin-top:24px
}

/* Desktop/landscape: keep the Fuse label with the bomb icon, not centred over the digits. */
.tmz-bomb-cap{display:none;text-align:center;font-size:18px;color:var(--mu);margin:0 0 8px;line-height:1.3;font-weight:400}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-bomb-cap{display:block}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-card > .tmz-label{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;top:auto!important;translate:none!important
}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-sp-extras,
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-bomb-art{
  display:flex;flex-direction:column;align-items:center
}

/* Pomodoro: Skip only while a session is running/paused; desktop tray wraps cleanly. */
html.tmz-i .tmz-app[data-tmz-tool=pomodoro]:has(.tmz-card:not([data-state=running]):not([data-state=paused])) .tmz-sp-skip,
html.tmz-d .tmz-app[data-tmz-tool=pomodoro]:has(.tmz-card:not([data-state=running]):not([data-state=paused])) .tmz-sp-skip{
  display:none!important
}
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-pick-special,
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-sp-row{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:8px 10px
}
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-sp-fields{flex-wrap:wrap;width:100%}

/* ===== 1.3.43 Pomodoro: breathing room under the digits + a clean, centred settings panel ===== */
.tmz-app[data-tmz-tool=pomodoro] .tmz-sp-extras{gap:0}
.tmz-app[data-tmz-tool=pomodoro] .tmz-pomo-dots{gap:12px;margin:16px 0 10px}
.tmz-app[data-tmz-tool=pomodoro] .tmz-dot{width:11px;height:11px}
.tmz-app[data-tmz-tool=pomodoro] .tmz-pomo-meta{margin:0;font-size:14px;line-height:1.3;letter-spacing:.02em}
.tmz-app[data-tmz-tool=pomodoro] .tmz-pick-special{display:flex!important;flex-direction:column;align-items:center;gap:16px;width:100%}
.tmz-app[data-tmz-tool=pomodoro] .tmz-sp-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:10px;margin:0;width:100%}
.tmz-app[data-tmz-tool=pomodoro] .tmz-sp-row:first-child .tmz-chip{min-width:92px;height:40px;border-radius:999px;padding:0 18px;font-size:15px;flex:none}
.tmz-app[data-tmz-tool=pomodoro] .tmz-sp-fields{gap:12px 18px;padding-top:16px;border-top:1px solid var(--bd)}
.tmz-app[data-tmz-tool=pomodoro] .tmz-sp-fl{gap:6px;font-size:13px;font-weight:500;color:var(--mu)}
.tmz-app[data-tmz-tool=pomodoro] .tmz-sp-fl input{width:76px;height:40px;font-size:16px;border-radius:6px;border-color:var(--bd2)}
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-card{height:398px}
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-card .tmz-lcd,
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-card .tmz-lcd:has(.tmz-long),
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-card .tmz-lcd:has(.tmz-xl){font-size:calc(150px * var(--ds,1))!important;margin-top:0!important;margin-bottom:0!important}
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-tray{height:auto;min-height:0;display:block;padding:20px 28px 22px;margin-top:18px}
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-card .tmz-ctrl{margin-top:20px}
html.tmz-i .tmz-app[data-tmz-tool=pomodoro] .tmz-tray{padding:20px 22px 22px}
html.tmz-m .tmz-app[data-tmz-tool=pomodoro] .tmz-tray{padding:16px 14px 18px}
html.tmz-m .tmz-app[data-tmz-tool=pomodoro] .tmz-sp-fl input{width:64px}
html.tmz-m .tmz-app[data-tmz-tool=pomodoro] .tmz-sp-fields{gap:10px 12px}
html.tmz-m .tmz-app[data-tmz-tool=pomodoro] .tmz-sp-row:first-child .tmz-chip{min-width:84px;padding:0 12px;flex:none}
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-card .tmz-lcd,
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-card .tmz-lcd:has(.tmz-long),
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-card .tmz-lcd:has(.tmz-xl){font-size:calc(140px * var(--ds,1))!important}
html.tmz-d .tmz-app[data-tmz-tool=pomodoro] .tmz-card .tmz-label{margin-bottom:14px!important}
html.tmz-m .tmz-app[data-tmz-tool=pomodoro]:has(.tmz-card:not([data-state=running]):not([data-state=paused])) .tmz-sp-skip{display:none!important}

/* ===== 1.3.46 Bomb: one centred column at every size (caption, bomb, fuse bar, digits, buttons); no ghost digits ===== */
.tmz-app[data-tmz-tool=bomb] .tmz-time-ghost{display:none!important}
.tmz-app[data-tmz-tool=bomb] .tmz-lcd.tmz-has-ghost{display:block}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-face{flex-direction:column!important;flex-wrap:nowrap!important;gap:12px!important;justify-content:center!important}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-sp-extras{order:1;margin:0}
html.tmz-d .tmz-app[data-tmz-tool=bomb] .tmz-lcd{order:2;margin:6px 0 0}
/* 1.3.47 Bomb: pill chips centred on every size; larger bomb on iPad */
.tmz-app[data-tmz-tool=bomb] .tmz-sp-row{display:flex!important;flex-wrap:wrap;justify-content:center;gap:8px}
.tmz-app[data-tmz-tool=bomb] .tmz-sp-row .tmz-chip{flex:0 0 auto!important;width:auto!important;min-width:56px;padding-left:14px;padding-right:14px;border-radius:999px}
html.tmz-i .tmz-app[data-tmz-tool=bomb] .tmz-bomb-svg{width:124px;height:93px}
html.tmz-i .tmz-app[data-tmz-tool=bomb] .tmz-fusebar{width:124px}
html.tmz-i .tmz-app[data-tmz-tool=bomb] .tmz-label{margin-bottom:14px}
/* 1.3.48 Bomb iPad: keep the "Fuse" caption clear of the fuse wire */
html.tmz-i .tmz-app[data-tmz-tool=bomb] .tmz-sp-extras{margin-top:10px}
html.tmz-i .tmz-app[data-tmz-tool=bomb] .tmz-face{gap:4px!important}
html.tmz-i .tmz-app[data-tmz-tool=bomb] .tmz-bomb-svg{width:112px;height:84px}
html.tmz-i .tmz-app[data-tmz-tool=bomb] .tmz-fusebar{width:112px}

/* ===== 1.3.50 Bomb redesign: big glossy bomb, red digits inside, burning fuse, BOOM + red alert ===== */
.tmz-app[data-tmz-tool=bomb]{--bw:280px}
html.tmz-i .tmz-app[data-tmz-tool=bomb]{--bw:350px}
html.tmz-m .tmz-app[data-tmz-tool=bomb]{--bw:300px}
.tmz-app[data-tmz-tool=bomb] .tmz-face{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:0!important}
.tmz-app[data-tmz-tool=bomb] .tmz-sp-extras{order:0!important;margin:0!important;width:auto!important;display:block!important;flex:none}
.tmz-app[data-tmz-tool=bomb] .tmz-sub{display:none!important}
.tmz-app[data-tmz-tool=bomb] .tmz-card>.tmz-label,.tmz-app[data-tmz-tool=bomb] .tmz-label{display:none!important}
.tmz-app[data-tmz-tool=bomb] .tmz-bb{position:relative;width:var(--bw);aspect-ratio:300/386;flex:none;margin:0 auto;transform-origin:50% 60%}
.tmz-app[data-tmz-tool=bomb] .tmz-bb-svg{position:absolute;inset:0;width:100%!important;height:100%!important;display:block;overflow:visible;fill:none}
/* digits sit inside the bomb's display panel */
.tmz-app[data-tmz-tool=bomb] .tmz-bb-digits{position:absolute;left:16%;right:16%;top:calc((215 + 40) / 386 * 100%);transform:translateY(-50%);display:flex;align-items:center;justify-content:center;z-index:2}
.tmz-app[data-tmz-tool=bomb] .tmz-lcd{position:static!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;text-align:center!important;translate:none!important;order:0!important;overflow:visible!important;background:none!important;font-size:calc(var(--bw)*.19)!important}
.tmz-app[data-tmz-tool=bomb] .tmz-time{display:block;font-size:calc(var(--bw)*.19)!important;line-height:1!important;color:#ff3030!important;text-shadow:0 0 6px rgba(255,48,48,.9),0 0 18px rgba(255,0,0,.55),0 0 34px rgba(255,0,0,.3);max-width:none!important;white-space:nowrap}
.tmz-app[data-tmz-tool=bomb] .tmz-bb.tmz-long .tmz-lcd,.tmz-app[data-tmz-tool=bomb] .tmz-bb.tmz-long .tmz-time{font-size:calc(var(--bw)*.135)!important}
/* fullscreen: the bomb scales up */
.tmz-app[data-tmz-tool=bomb] .tmz-card:fullscreen .tmz-bb,.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-pfs .tmz-bb,.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-isfs .tmz-bb{--bw:min(52vh,86vw)}
.tmz-app[data-tmz-tool=bomb] .tmz-card:fullscreen .tmz-face,.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-pfs .tmz-face,.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-isfs .tmz-face{flex:1 1 auto}
/* flame + sparks */
.tmz-app[data-tmz-tool=bomb] .tmz-fl-w{transform-box:fill-box;transform-origin:50% 100%;animation:tmzFlick .38s ease-in-out infinite}
.tmz-app[data-tmz-tool=bomb] .tmz-spk{animation:tmzSpark .75s ease-out infinite}
.tmz-app[data-tmz-tool=bomb] .tmz-card[data-state=idle] .tmz-fl-w{animation-duration:.8s;transform:scale(.8)}
.tmz-app[data-tmz-tool=bomb] .tmz-card[data-state=paused] .tmz-fl-w,.tmz-app[data-tmz-tool=bomb] .tmz-card[data-state=paused] .tmz-spk{animation-play-state:paused}
.tmz-app[data-tmz-tool=bomb] .tmz-card[data-state=idle] .tmz-spk{animation-duration:1.4s}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-bomb-hot .tmz-fl-w{animation-duration:.2s}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-bomb-hot .tmz-spk{animation-duration:.4s}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-bomb-hot .tmz-time{animation:tmzHot .5s steps(2,jump-none) infinite}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-bomb-hot{box-shadow:none}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-bomb-hot .tmz-bb-bomb{animation:tmzThrob .5s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 60%}
@keyframes tmzFlick{0%,100%{transform:scale(1,1) rotate(-2deg)}25%{transform:scale(.88,1.14) rotate(2deg)}50%{transform:scale(1.1,.9) rotate(-1deg)}75%{transform:scale(.94,1.08) rotate(3deg)}}
@keyframes tmzSpark{0%{transform:translate(0,0) scale(1);opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(.2);opacity:0}}
@keyframes tmzHot{50%{opacity:.5}}
@keyframes tmzThrob{to{transform:scale(1.012)}}
/* BOOM */
.tmz-app[data-tmz-tool=bomb] .tmz-blast{opacity:0;pointer-events:none}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-blast{opacity:1}
.tmz-app[data-tmz-tool=bomb] .tmz-st1,.tmz-app[data-tmz-tool=bomb] .tmz-st2{transform-box:fill-box;transform-origin:50% 50%}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-st1{animation:tmzPop .45s cubic-bezier(.2,1.4,.4,1) both,tmzBurst .7s ease-in-out .45s infinite alternate}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-st2{animation:tmzPop .35s cubic-bezier(.2,1.4,.4,1) .05s both,tmzSpin 6s linear .4s infinite}
.tmz-app[data-tmz-tool=bomb] .tmz-ring{transform-box:fill-box;transform-origin:50% 50%}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-ring{animation:tmzRing 1s ease-out infinite}
.tmz-app[data-tmz-tool=bomb] .tmz-deb{fill:#fbbf24}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-deb{animation:tmzSpark 1.1s ease-out infinite}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-bb-bomb{filter:brightness(.55) saturate(.8)}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-bb-crack{opacity:1}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-rope,.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-flame{display:none}
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-boom-on .tmz-bb-digits{opacity:0}
.tmz-app[data-tmz-tool=bomb] .tmz-boom{position:absolute;left:50%;top:calc((212 + 40) / 386 * 100%);z-index:3;font:900 calc(var(--bw)*.27)/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.02em;color:#fff;-webkit-text-stroke:calc(var(--bw)*.012) #b91c1c;paint-order:stroke fill;text-shadow:0 0 calc(var(--bw)*.05) #dc2626,0 calc(var(--bw)*.012) 0 #7f1d1d;transform:translate(-50%,-50%) rotate(-7deg);pointer-events:none;white-space:nowrap}
.tmz-app[data-tmz-tool=bomb] .tmz-boom:not([hidden]){animation:tmzBoomTxt .5s cubic-bezier(.2,1.5,.4,1) both,tmzBoomPulse .6s ease-in-out .5s infinite alternate}
.tmz-app[data-tmz-tool=bomb] .tmz-bb.tmz-shake{animation:tmzShake .5s linear 3}
@keyframes tmzPop{0%{transform:scale(.1);opacity:0}60%{opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes tmzBurst{to{transform:scale(1.07)}}
@keyframes tmzSpin{to{transform:rotate(360deg)}}
@keyframes tmzRing{0%{transform:scale(.5);opacity:1}100%{transform:scale(1.55);opacity:0}}
@keyframes tmzBoomTxt{0%{transform:translate(-50%,-50%) rotate(-7deg) scale(.1);opacity:0}100%{transform:translate(-50%,-50%) rotate(-7deg) scale(1);opacity:1}}
@keyframes tmzBoomPulse{to{transform:translate(-50%,-50%) rotate(-7deg) scale(1.07)}}
@keyframes tmzShake{0%,100%{transform:translate(0,0) rotate(0)}10%{transform:translate(-9px,5px) rotate(-1.4deg)}20%{transform:translate(8px,-6px) rotate(1.2deg)}30%{transform:translate(-7px,-4px) rotate(-1deg)}40%{transform:translate(9px,6px) rotate(1.4deg)}50%{transform:translate(-5px,3px) rotate(-.8deg)}60%{transform:translate(6px,-5px) rotate(.8deg)}70%{transform:translate(-4px,4px)}80%{transform:translate(4px,-3px)}90%{transform:translate(-2px,2px)}}
/* red alert: panel + screen pulse */
.tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-alert-on{animation:tmzCardRed .55s ease-in-out infinite alternate}
@keyframes tmzCardRed{from{box-shadow:inset 0 0 0 3px rgba(239,68,68,.9),inset 0 0 40px rgba(239,68,68,.25)}to{box-shadow:inset 0 0 0 5px #ef4444,inset 0 0 110px rgba(239,68,68,.6)}}
.tmz-redflash{position:fixed;inset:0;z-index:99999;pointer-events:none;background:radial-gradient(ellipse at center,rgba(239,68,68,0) 35%,rgba(220,38,38,.55) 100%);box-shadow:inset 0 0 0 8px rgba(239,68,68,.85);animation:tmzFlash .5s ease-in-out 10 alternate both}
@keyframes tmzFlash{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .tmz-app[data-tmz-tool=bomb] .tmz-bb.tmz-shake{animation:none}
  .tmz-app[data-tmz-tool=bomb] .tmz-card.tmz-alert-on{animation-duration:1.4s}
  .tmz-redflash{animation-duration:1.4s;animation-iteration-count:4}
  .tmz-app[data-tmz-tool=bomb] .tmz-fl-w,.tmz-app[data-tmz-tool=bomb] .tmz-spk{animation:none}
}
/* 1.3.53 Bomb: the saved hero layout nudges lcd/ctrl for the plain timer; the bomb has its own composition (options untouched, overridden here only) */
html .tmz-hero .tmz-app[data-tmz-tool=bomb] .tmz-card:not(.tmz-isfs) .tmz-lcd{translate:none!important;font-size:calc(var(--bw)*.19)!important}
html .tmz-hero .tmz-app[data-tmz-tool=bomb] .tmz-card:not(.tmz-isfs) .tmz-bb.tmz-long .tmz-lcd{font-size:calc(var(--bw)*.135)!important}
html .tmz-hero .tmz-app[data-tmz-tool=bomb] .tmz-card:not(.tmz-isfs) .tmz-ctrl{translate:none!important}
html .tmz-hero .tmz-app[data-tmz-tool=bomb] .tmz-card:not(.tmz-isfs) .tmz-label{translate:none!important}
html.tmz-i .tmz-app[data-tmz-tool=bomb] .tmz-ctrl{margin-top:26px!important}
/* 1.3.54 Bomb: BOOM word has no legacy panel; controls stay above the blast */
.tmz-app[data-tmz-tool=bomb] .tmz-boom{inset:auto;left:50%;top:calc((212 + 40) / 386 * 100%);background:none;border-radius:0;display:block;width:auto;height:auto}
.tmz-app[data-tmz-tool=bomb] .tmz-boom[hidden]{display:none!important}
.tmz-app[data-tmz-tool=bomb] .tmz-ctrl{position:relative;z-index:6}
