@font-face {
  font-family: Manrope;
  src: url("assets/Manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root { color-scheme: light; font-family: Manrope, Arial, sans-serif; color: #1a1a1a; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #fe3b3b; outline-offset: 5px; }
.timer-app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  height: 100svh;
  padding: max(44px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.fullscreen {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  top: max(20px, env(safe-area-inset-top));
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  color: #858585;
  background: transparent;
}
.fullscreen:hover { color: #1a1a1a; background: #f6f6f6; }
.fullscreen[hidden] { display: none; }
.heading-area { width: min(100%, 1200px); padding: 22px 38px 0; flex: 0 0 auto; }
.event-title {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  resize: none;
  overflow: hidden;
  text-align: center;
  color: #1a1a1a;
  background: transparent;
  font-size: clamp(20px, 3.2vw, 44px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.035em;
}
.event-title::placeholder { color: #b6b6b6; font-weight: 400; }
.event-title:read-only { cursor: default; }
.heading-area.is-empty-running { display: none; }
.timer-space { width: 100%; min-height: 0; flex: 1 1 auto; display: grid; align-items: center; justify-items: center; container-type: inline-size; }
.clock {
  display: grid;
  grid-template-columns: 1.35em .3em 1.35em;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  font-size: min(32cqw, 48svh);
  line-height: 1.24;
  letter-spacing: -.07em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  margin-block: -0.07em 0;
}
.time-part {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  text-align: center;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  font-variant-numeric: inherit;
  font-feature-settings: inherit;
  caret-color: #b00b0b;
  appearance: none;
  -moz-appearance: textfield;
}
.time-part:not(:read-only):hover { background: #fafafa; }
.time-part:read-only { cursor: default; outline: none; }
.separator { display: block; text-align: center; transform: translateY(-.055em); user-select: none; }
.timer-app[data-state="finished"] .clock { color: #b00b0b; }
.setup-hint { flex: 0 0 auto; margin: 0; max-width: 100%; text-align: center; color: #737373; font-size: 14px; line-height: 1.5; }
.setup-hint.is-hidden { visibility: hidden; }
.setup-hint.is-error { color: #b00b0b; }
.controls { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; flex: 0 0 auto; padding-top: 16px; }
.control {
  min-width: 132px;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  background: #f2f2f2;
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 600;
  transition: background-color .16s ease, color .16s ease;
}
.control:hover:not(:disabled) { background: #e7e7e7; }
.start { color: #fff; background: #b00b0b; }
.start:hover:not(:disabled) { background: #910909; }
.control:disabled { background: #f7f7f7; color: #bebebe; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .timer-app { padding: 50px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .fullscreen { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .heading-area { padding: 34px 4px 0; }
  .event-title { font-size: clamp(20px, 5.4vw, 30px); }
  .control { min-width: 0; flex: 1 1 0; max-width: 160px; height: 50px; padding: 0 12px; font-size: 15px; border-radius: 12px; }
  .controls { gap: 8px; padding-top: 12px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .timer-app { padding-top: 12px; padding-bottom: 12px; }
  .heading-area { padding-top: 0; }
  .event-title { font-size: 20px; }
  .clock { font-size: min(32cqw, 47svh); }
  .controls { padding-top: 0; }
  .control { height: 42px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
