/* THIS IS FLORIDA: Free Focus Timer, Stopwatch and Countdown */
.tm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 0 0 1rem; }
.tm-keys { margin: 0; color: var(--muted); font-size: .92rem; }
.tm-bar .status { margin: 0; }
.tm-bar .status:empty { display: none; }
kbd { font-family: ui-monospace, Consolas, monospace; font-size: .88em; border: 1px solid #8fa79c; border-bottom-width: 2px; border-radius: .3rem; padding: .05rem .35rem; background: #fff; }
.tm-card { background: var(--card); border: 2px solid var(--line); border-radius: .9rem; padding: 1rem 1rem 1.1rem; text-align: center; max-width: 760px; margin: 0 auto 1.2rem; }
.tm-card[data-state="running"] { border-color: var(--brand); }
.tm-card[data-phase="short"], .tm-card[data-phase="long"] { background: #eef6fb; }
.tm-card[data-state="done"] { border-color: var(--danger); background: #fdf1ef; }
.tm-phase { margin: 0; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tm-digits { margin: .1rem 0 .2rem; font-size: clamp(3.4rem, 21vw, 9rem); line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.tm-digits-sw { font-size: clamp(2.6rem, 15.5vw, 7.5rem); }
.tm-digits.tm-long { font-size: clamp(2.4rem, 13vw, 7rem); }
.tm-digits-sw.tm-long { font-size: clamp(2rem, 10.5vw, 6rem); }
.tm-msg { min-height: 1.5em; margin: 0 0 .5rem; font-weight: 700; font-size: 1.1rem; color: var(--danger); }
.tm-controls { justify-content: center; margin: 0; }
.tm-controls button { min-width: 6.5rem; font-size: 1.1rem; }
.tm-sub { margin: .7rem 0 0; color: var(--muted); }
.tm-flash { animation: tm-flash .5s ease-in-out 6; }
@keyframes tm-flash { 0%, 100% { background: var(--card); } 50% { background: #f2a900; } }
@media (prefers-reduced-motion: reduce) { .tm-flash { animation: none; background: #ffe9a8; outline: 6px solid #f2a900; } }
.tm-settings { max-width: 760px; margin: 0 auto; }
.tm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .9rem; align-items: end; }
@media (max-width: 560px) { .tm-grid { grid-template-columns: 1fr; } .tm-grid2 { grid-template-columns: 1fr 1fr; } }
.editor label.tm-check { display: flex; align-items: center; gap: .65rem; min-height: 44px; margin: .3rem 0 0; cursor: pointer; }
.editor .tm-check input { width: 24px; height: 24px; min-height: 0; flex: 0 0 24px; margin: 0; padding: 0; accent-color: var(--brand); }
.tm-laps { max-width: 760px; margin: 0 auto; }
.tm-h2 { font-size: 1.25rem; margin: 0 0 .3rem; }
.tm-tablewrap { overflow-x: auto; max-height: 26rem; overflow-y: auto; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); }
.tm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tm-table th, .tm-table td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tm-table th { position: sticky; top: 0; background: #e6f2ec; }
.tm-tag { font-size: .8rem; font-weight: 700; color: var(--muted); }
.tm-printhead { display: none; }
.tips h2 { margin-top: 1.4rem; }
@media print {
  body[data-print="laps"] #panel-sw { display: block !important; }
  body[data-print] .tm-card { display: none; }
  body[data-print] .tm-printhead { display: block; }
  .tm-printhead h2 { margin: 0 0 .2rem; font-size: 1.3rem; }
  .tm-printhead p { margin: 0 0 .8rem; font-size: .9rem; }
  body[data-print] .tm-tablewrap { max-height: none; overflow: visible; border: 0; }
  body[data-print] .tm-table th, body[data-print] .tm-table td { border-bottom: 1px solid #999; padding: .25rem .5rem; }
  body[data-print] .tm-table th { position: static; background: none; }
  body[data-print] .tm-h2 { display: none; }
}
