.sw-tabs { display: flex; justify-content: center; margin-bottom: 8px; }
.sw-tabs.seg button { font-size: 15px; padding: 9px 16px; font-weight: 700; }
.sw-face { text-align: center; padding: 18px 0 10px; }
.sw-time { font-size: clamp(54px, 17vw, 104px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sw-time small { font-size: .45em; color: var(--muted); font-weight: 700; }
.sw-sub { color: var(--muted); font-weight: 600; margin-top: 6px; min-height: 1.6em; font-variant-numeric: tabular-nums; }
.sw-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.sw-btns .btn { min-width: 120px; }
.sw-go { background: var(--c); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 35%, transparent); }
.sw-go.stop { background: var(--bad); box-shadow: 0 6px 16px rgba(220,61,61,.3); }
.sw-laps-wrap { margin-top: 16px; }
.sw-laps { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sw-laps th, .sw-laps td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.sw-laps th:first-child, .sw-laps td:first-child { text-align: left; }
.sw-laps tr.best td { color: var(--ok); font-weight: 700; }
.sw-laps tr.worst td { color: var(--bad); font-weight: 700; }
.tm-hms { display: flex; justify-content: center; gap: 10px; }
.tm-hms label { display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 600; color: var(--muted); }
.tm-hms input { width: 86px; font-size: 26px; font-weight: 800; text-align: center; }
.tm-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; }
.tm-presets button { font: inherit; font-weight: 700; font-size: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 6px 13px; cursor: pointer; min-height: 38px; }
.tm-face { position: relative; width: min(330px, 86vw); aspect-ratio: 1; margin: 10px auto 4px; padding: 0; display: grid; place-items: center; }
.tm-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-track { fill: none; stroke: var(--line); stroke-width: 7; }
.tm-prog { fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 339.29; transition: stroke-dashoffset .25s linear; }
.tm-in { position: relative; }
.tm-face .sw-time { font-size: clamp(44px, 13vw, 72px); }
.tm-alarm { margin: 16px auto 0; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--bad) 12%, var(--card)); border: 2px solid var(--bad); font-size: 22px; animation: sw-pulse 1s ease-in-out infinite; }
@keyframes sw-pulse { 50% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .tm-alarm { animation: none; } }
.sw-check { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-weight: 600; margin: 14px 0 0; }
.sw-check select { width: auto; }
.sw-check .btn { min-height: 44px; padding: 8px 14px; }
.po-phase { text-align: center; margin: 6px auto 0; width: fit-content; padding: 6px 18px; border-radius: 99px; font-weight: 800; background: color-mix(in srgb, var(--bad) 14%, var(--card)); color: var(--bad); }
.po-phase[data-phase="short"], .po-phase[data-phase="long"] { background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ok); }
.po-dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; }
.po-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.po-dots i.on { background: var(--c); }
.po-set { margin-top: 16px; }
.po-set summary { cursor: pointer; }
.po-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 12px; }
.sw-small { font-size: 13.5px; text-align: center; margin: 14px 0 0; }
@media (max-width: 440px) { .sw-tabs.seg { flex-wrap: nowrap; } .sw-tabs.seg button { padding: 8px 11px; font-size: 14px; } }
