/* Meeting Timer — large display for meetings & events */
.timer-shell {
  width: min(100% - 2rem, 800px);
  margin: 0 auto;
}

.timer-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  font-size: clamp(3.2rem, 14vw, 6.5rem);
  line-height: 1;
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
  color: var(--ink);
}

.timer-display[data-state="warn"] {
  color: var(--sun);
}

.timer-display[data-state="done"] {
  color: var(--danger);
  animation: pulse-done 1s ease infinite;
}

@keyframes pulse-done {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.timer-label {
  text-align: center;
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-weight: 600;
  min-height: 1.4em;
}

.mode-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mode-tabs button {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.mode-tabs button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.time-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.time-inputs label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.time-inputs input,
.session-label input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  background: #fbfefc;
  color: var(--ink);
}

.time-inputs input:focus,
.session-label input:focus {
  outline: 3px solid rgba(15, 122, 106, 0.28);
  border-color: var(--accent);
}

.session-label {
  margin-bottom: 0.85rem;
}

.session-label label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.presets button {
  appearance: none;
  border: 1px dashed var(--line);
  background: rgba(15, 122, 106, 0.06);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.presets button:hover {
  border-style: solid;
  border-color: var(--accent);
}

.timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.timer-actions .btn {
  min-width: 7rem;
}

body.is-timer-fullscreen {
  background: #0f1714;
  color: #f4faf7;
}

body.is-timer-fullscreen .site-header,
body.is-timer-fullscreen .site-footer,
body.is-timer-fullscreen .prose-section,
body.is-timer-fullscreen .ad-slot,
body.is-timer-fullscreen .tool-shell > .lede,
body.is-timer-fullscreen .timer-shell > h1 {
  display: none !important;
}

body.is-timer-fullscreen main {
  padding: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

body.is-timer-fullscreen .timer-shell {
  width: min(100% - 2rem, 960px);
}

body.is-timer-fullscreen .panel {
  background: transparent;
  border: none;
  padding: 0;
}

body.is-timer-fullscreen .timer-display {
  font-size: clamp(4rem, 22vw, 10rem);
  color: #f4faf7;
}

body.is-timer-fullscreen .timer-label,
body.is-timer-fullscreen .hint {
  color: #b7c7bf;
}

body.is-timer-fullscreen .mode-tabs,
body.is-timer-fullscreen .time-inputs,
body.is-timer-fullscreen .presets,
body.is-timer-fullscreen .session-label {
  display: none;
}

body.is-timer-fullscreen .timer-actions {
  justify-content: center;
}

@media (max-width: 560px) {
  .time-inputs {
    grid-template-columns: 1fr;
  }
}
