.timer-page .tt-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 34px);
}
.tt-intro { padding: clamp(14px, 3vw, 34px) 0 23px; }
.tt-intro h1 {
  margin: 5px 0 10px;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  color: inherit;
}
.tt-intro > p:last-child, .tt-guide { max-width: 68ch; }
.tt-intro p, .tt-panel p, .tt-guide p { line-height: 1.55; }
.tt-intro p, .tt-panel p { margin: 0; }
.tt-eyebrow, .tt-label {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.tt-eyebrow { color: #37705c; }
.tt-board {
  --tt-ink: #f3fff8;
  --tt-muted: #bdd9cc;
  --tt-accent: #f5d796;
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(14px, 3.6vw, 34px);
  border: 1px solid #316250;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 10%, #205844 0%, #12372d 58%, #0e2c25 100%);
  color: var(--tt-ink);
}
.tt-board[data-stage="break"] { --tt-accent: #b5def0; background: radial-gradient(ellipse at 50% 10%, #244b59, #132e39 65%, #102631); }
.tt-board[data-urgent] .tt-time { color: var(--tt-accent); }
.tt-board-top, .tt-top-actions, .tt-controls, .tt-adjust, .tt-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tt-board-top { justify-content: space-between; }
.tt-badge {
  border: 1px solid #d8eee54d;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: .86rem;
  font-weight: 800;
  color: var(--tt-accent);
}
.tt-board button, .tt-panel button {
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid #648579;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
}
.tt-board button:hover:not(:disabled) { background: #ffffff1b; }
.tt-board button:disabled, .tt-panel button:disabled { opacity: .46; cursor: default; }
.tt-main :is(button, input, summary, a):focus-visible { outline: 3px solid #bd8a3c; outline-offset: 3px; }
.tt-clock { min-width: 0; text-align: center; }
.tt-clock .tt-label, .tt-readouts .tt-label { color: var(--tt-muted); }
.tt-time {
  font-size: clamp(3.8rem, 14vw, 8.5rem);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  color: var(--tt-ink);
}
.tt-progress {
  width: min(100%, 460px);
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
  margin: 12px auto 0;
  background: #ffffff29;
}
.tt-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--tt-accent);
  transform-origin: left;
}
.tt-readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.tt-readouts > div {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  padding: 11px 8px;
  border-radius: 12px;
  border: 1px solid #d8eee544;
  background: #0d221d55;
  text-align: center;
}
.tt-readouts strong { font-size: clamp(1.16rem, 4.4vw, 2.55rem); line-height: 1.13; overflow-wrap: anywhere; }
.tt-readouts div > span:last-child { min-height: 1.25em; font-size: .9rem; color: var(--tt-muted); }
.tt-controls, .tt-adjust { justify-content: center; }
.tt-controls button { min-width: min(30%, 100px); }
.tt-main button.tt-primary { background: #f5d796; border-color: #f5d796; color: #182f27; }
.tt-main button.tt-primary:hover:not(:disabled) { background: #ffe9b8; }
.tt-adjust button { min-height: 36px; padding-block: 4px; }
.tt-board:is(:fullscreen, .tt-theater) {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: auto;
  grid-template-rows: auto minmax(min-content, 1fr) auto auto auto;
  gap: clamp(8px, 1.7vmin, 32px);
  border: 0;
  border-radius: 0;
  padding: clamp(10px, 3vmin, 72px) clamp(10px, 4vw, 160px);
}
.tt-board.tt-theater { position: fixed; inset: 0; z-index: 1000; height: 100dvh; }
body:has(.tt-theater) { overflow: hidden; }
.tt-board:is(:fullscreen, .tt-theater) .tt-clock { align-self: center; }
.tt-board:is(:fullscreen, .tt-theater) .tt-badge {
  font-size: clamp(1rem, 3.4vmin, 4.5rem);
  padding: .2em .65em;
}
.tt-board:is(:fullscreen, .tt-theater) .tt-time {
  font-size: min(27vw, 46vh);
  line-height: .94;
  white-space: nowrap;
}
.tt-board:is(:fullscreen, .tt-theater) .tt-progress {
  width: min(84%, 72vw);
  height: clamp(5px, .9vmin, 18px);
  margin-top: clamp(6px, 1.4vmin, 26px);
}
.tt-board:is(:fullscreen, .tt-theater) .tt-readouts { gap: clamp(8px, 1.7vmin, 32px); }
.tt-board:is(:fullscreen, .tt-theater) .tt-readouts > div {
  align-content: center;
  padding: clamp(8px, 1.5vmin, 32px);
  gap: clamp(4px, .7vmin, 14px);
}
.tt-board:is(:fullscreen, .tt-theater) .tt-label {
  font-size: clamp(.7rem, 2.45vmin, 3.25rem);
}
.tt-board:is(:fullscreen, .tt-theater) .tt-readouts strong {
  font-size: clamp(1.25rem, min(6.6vw, 10.5vh), 15rem);
  line-height: 1;
}
.tt-board:is(:fullscreen, .tt-theater) .tt-readouts div > span:last-child {
  font-size: clamp(.8rem, 2.55vmin, 3.4rem);
}
.tt-board:is(:fullscreen, .tt-theater) button {
  font-size: clamp(.78rem, 1.7vmin, 2rem);
}
@media (orientation: landscape) and (min-width: 520px) {
  .tt-board:is(:fullscreen, .tt-theater) {
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    grid-template-rows: auto minmax(min-content, 1fr) auto auto;
  }
  .tt-board:is(:fullscreen, .tt-theater) > :is(.tt-board-top, .tt-clock, .tt-readouts) { grid-column: 1 / -1; }
  .tt-board:is(:fullscreen, .tt-theater) .tt-controls { grid-column: 2; flex-wrap: nowrap; }
  .tt-board:is(:fullscreen, .tt-theater) .tt-controls button { min-width: auto; }
  .tt-board:is(:fullscreen, .tt-theater) .tt-adjust { grid-column: 3; flex-wrap: nowrap; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .tt-board:is(:fullscreen, .tt-theater) { gap: 6px; padding-block: 8px; }
  .tt-board:is(:fullscreen, .tt-theater) .tt-time { font-size: min(27vw, 38vh); }
  .tt-board:is(:fullscreen, .tt-theater) .tt-readouts > div { padding-block: 5px; }
  .tt-board:is(:fullscreen, .tt-theater) button { min-height: 34px; padding-block: 4px; }
}
.tt-panel {
  margin: 18px 0 34px;
  padding: clamp(13px, 3vw, 25px);
  border-radius: 16px;
  border: 1px solid #7c9a8c70;
  background: #7293810b;
}
.tt-panel h2, .tt-guide h2 { color: inherit; margin: 0 0 4px; line-height: 1.2; font-size: clamp(1.28rem, 3vw, 1.7rem); }
.tt-panel-head, .tt-panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tt-panel-foot { margin-top: 15px; }
.tt-panel button:hover:not(:disabled) { background: #7199812b; }
.tt-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.tt-presets button { display: grid; gap: 3px; text-align: left; min-width: 0; }
.tt-presets button[aria-pressed="true"] { background: #215241; border-color: #215241; color: #fff; }
.tt-presets button[aria-pressed="true"]:hover:not(:disabled) { background: #286651; }
.tt-presets span { font-size: .78rem; font-weight: 500; }
.tt-structure { border-block: 1px solid #7c9a8c70; padding: 8px 0; }
.tt-structure summary { cursor: pointer; font-weight: 750; padding: 7px 0; }
.tt-table-wrap { overflow-x: auto; }
.tt-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tt-table :is(th, td) { padding: 7px 4px; border-bottom: 1px solid #7c9a8c48; text-align: left; white-space: nowrap; }
.tt-table tr[data-current] { background: #71998125; }
.tt-table input {
  width: 100%;
  min-width: 53px;
  box-sizing: border-box;
  padding: 5px;
  min-height: 37px;
  border: 1px solid #7c9a8c;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.tt-table .tt-row-actions { display: flex; gap: 4px; }
.tt-panel .tt-row-actions button { padding: 3px; min-height: 36px; min-width: 33px; }
.tt-editor-actions { margin: 12px 0 8px; }
.tt-panel .tt-note { font-size: .88rem; padding-bottom: 4px; }
.tt-panel .tt-message { margin-top: 10px; font-weight: 750; }
.tt-guide { margin-bottom: 35px; }
.tt-guide .tt-eyebrow { margin-bottom: 5px; }
.tt-guide ol { padding-left: 23px; line-height: 1.55; }
.tt-guide li { margin-bottom: 8px; }
.tt-guide a { text-decoration: underline; }
.tt-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-theme="dark"] .tt-eyebrow { color: #a5d5bb; }
@media (max-width: 530px) {
  .tt-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-board-top { gap: 6px; }
  .tt-board-top button { min-height: 36px; padding-inline: 7px; font-size: .78rem; }
  .tt-badge { padding-inline: 7px; font-size: .78rem; }
}
