@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.smt6x-timer-app {
  --smt6x-accent: #3157d5;
  --smt6x-accent-dark: #2445b5;
  --smt6x-accent-soft: #eef2ff;
  --smt6x-text: #0f172a;
  --smt6x-muted: #5b6475;
  --smt6x-border: #dfe3ea;
  --smt6x-surface: #ffffff;
  --smt6x-subtle: #f7f8fb;
  --smt6x-success: #16794b;
  --smt6x-error: #b42318;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  color: var(--smt6x-text);
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  isolation: isolate;
}

.smt6x-timer-app,
.smt6x-timer-app * {
  box-sizing: border-box;
}

.smt6x-timer-app__wrapper {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 34px 16px 42px;
}

.smt6x-timer-app__header {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

.smt6x-timer-app__title {
  margin: 0;
  color: var(--smt6x-text);
  font-size: 30px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.smt6x-timer-app__subtitle {
  margin: 10px auto 0;
  color: var(--smt6x-muted);
  font-size: 15px;
  line-height: 1.55;
}

.smt6x-timer-app__tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--smt6x-border);
  border-radius: 18px;
  background: var(--smt6x-surface);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.smt6x-timer-app__primary,
.smt6x-timer-app__secondary {
  min-width: 0;
}

.smt6x-timer-app__primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 18px;
  text-align: center;
}

.smt6x-timer-app__secondary {
  padding: 24px 18px;
  border-top: 1px solid var(--smt6x-border);
  background: var(--smt6x-subtle);
}

.smt6x-timer-app__state {
  min-height: 24px;
  color: var(--smt6x-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.smt6x-timer-app__display {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 10px 0 16px;
  overflow-wrap: anywhere;
  color: var(--smt6x-text);
  font-size: clamp(52px, 17vw, 88px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.055em;
}

.smt6x-timer-app__progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid #cfd5df;
  border-radius: 7px;
  background: #e8ebf0;
}

.smt6x-timer-app__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--smt6x-accent);
  transform-origin: left center;
  transition: width 0.16s linear;
}

.smt6x-timer-app__summary {
  min-height: 22px;
  margin: 10px 0 20px;
  color: var(--smt6x-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.smt6x-timer-app__transport {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.smt6x-timer-app__control,
.smt6x-timer-app__preset,
.smt6x-timer-app__option,
.smt6x-timer-app__utility {
  min-height: 44px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.smt6x-timer-app__control--primary {
  color: #ffffff;
  border-color: var(--smt6x-accent);
  background: var(--smt6x-accent);
}

.smt6x-timer-app__control--primary:hover {
  border-color: var(--smt6x-accent-dark);
  background: var(--smt6x-accent-dark);
}

.smt6x-timer-app__control--secondary,
.smt6x-timer-app__utility {
  color: var(--smt6x-text);
  border-color: #cfd5df;
  background: #ffffff;
}

.smt6x-timer-app__control--secondary:hover,
.smt6x-timer-app__utility:hover {
  border-color: #aab3c2;
  background: #f8fafc;
}

.smt6x-timer-app__control:active,
.smt6x-timer-app__preset:active,
.smt6x-timer-app__option:active,
.smt6x-timer-app__utility:active {
  transform: translateY(1px);
}

.smt6x-timer-app__control:focus-visible,
.smt6x-timer-app__preset:focus-visible,
.smt6x-timer-app__option:focus-visible,
.smt6x-timer-app__utility:focus-visible,
.smt6x-timer-app__input:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.25);
  outline-offset: 2px;
}

.smt6x-timer-app__control:disabled,
.smt6x-timer-app__utility:disabled {
  color: #6b7280;
  border-color: #d6dae1;
  background: #eceff3;
  cursor: not-allowed;
  opacity: 0.78;
}

.smt6x-timer-app__completion-live {
  min-height: 1px;
  overflow-wrap: anywhere;
}

.smt6x-timer-app__setting-group + .smt6x-timer-app__setting-group {
  margin-top: 20px;
}

.smt6x-timer-app__section-title {
  margin: 0 0 10px;
  color: var(--smt6x-text);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.smt6x-timer-app__duration-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.smt6x-timer-app__field {
  display: block;
  min-width: 0;
}

.smt6x-timer-app__field-label {
  display: block;
  margin-bottom: 5px;
  color: #3f4858;
  font-size: 12px;
  font-weight: 700;
}

.smt6x-timer-app__input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 8px 10px;
  color: var(--smt6x-text);
  border: 1px solid #c7ced9;
  border-radius: 9px;
  background: #ffffff;
  font: inherit;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.smt6x-timer-app__input:focus {
  border-color: var(--smt6x-accent);
}

.smt6x-timer-app__input[aria-invalid="true"] {
  border-color: var(--smt6x-error);
  background: #fff7f6;
}

.smt6x-timer-app__validation {
  min-height: 20px;
  margin: 6px 0 0;
  color: var(--smt6x-error);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.smt6x-timer-app__presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.smt6x-timer-app__preset {
  padding: 8px 6px;
  color: #344054;
  border-color: #cfd5df;
  background: #ffffff;
  white-space: nowrap;
}

.smt6x-timer-app__preset:hover {
  border-color: #9ca8bb;
  background: #f8fafc;
}

.smt6x-timer-app__preset[aria-pressed="true"] {
  color: var(--smt6x-accent-dark);
  border-color: var(--smt6x-accent);
  background: var(--smt6x-accent-soft);
  box-shadow: inset 0 0 0 1px var(--smt6x-accent);
}

.smt6x-timer-app__options {
  margin-top: 20px;
}

.smt6x-timer-app__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 8px 10px 8px 12px;
  color: var(--smt6x-text);
  border-color: #cfd5df;
  background: #ffffff;
  text-align: left;
}

.smt6x-timer-app__option:hover {
  border-color: #aab3c2;
}

.smt6x-timer-app__toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 38px;
  height: 22px;
  padding: 2px;
  border-radius: 12px;
  background: #778195;
  transition: background-color 0.16s ease;
}

.smt6x-timer-app__toggle span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.16s ease;
}

.smt6x-timer-app__option[aria-pressed="true"] .smt6x-timer-app__toggle {
  background: var(--smt6x-accent);
}

.smt6x-timer-app__option[aria-pressed="true"] .smt6x-timer-app__toggle span {
  transform: translateX(16px);
}

.smt6x-timer-app__utilities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.smt6x-timer-app__utility {
  padding: 8px 10px;
}

.smt6x-timer-app__feedback {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--smt6x-success);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.smt6x-timer-app__tool.smt6x-timer-app__tool--complete {
  animation: smt6x-timer-app-complete 0.55s ease;
}

.smt6x-timer-app__tool.smt6x-timer-app__tool--complete .smt6x-timer-app__state {
  color: var(--smt6x-success);
}

@keyframes smt6x-timer-app-complete {
  0%, 100% { box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08); }
  50% { box-shadow: 0 14px 38px rgba(22, 121, 75, 0.2); }
}

@media (min-width: 320px) and (max-width: 374px) {
  .smt6x-timer-app__wrapper {
    padding: 26px 10px 34px;
  }

  .smt6x-timer-app__header {
    margin-bottom: 18px;
  }

  .smt6x-timer-app__title {
    font-size: 23px;
  }

  .smt6x-timer-app__subtitle {
    font-size: 13px;
  }

  .smt6x-timer-app__primary,
  .smt6x-timer-app__secondary {
    padding: 20px 12px;
  }

  .smt6x-timer-app__display {
    font-size: clamp(48px, 18vw, 66px);
  }

  .smt6x-timer-app__transport {
    grid-template-columns: 1fr;
  }

  .smt6x-timer-app__duration-fields {
    gap: 8px;
  }

  .smt6x-timer-app__presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .smt6x-timer-app__wrapper {
    padding: 30px 14px 38px;
  }

  .smt6x-timer-app__title {
    font-size: 27px;
  }

  .smt6x-timer-app__primary,
  .smt6x-timer-app__secondary {
    padding: 24px 17px;
  }

  .smt6x-timer-app__display {
    font-size: clamp(58px, 18vw, 74px);
  }

  .smt6x-timer-app__transport {
    grid-template-columns: 1fr 1fr;
  }

  .smt6x-timer-app__presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .smt6x-timer-app__wrapper {
    padding: 34px 20px 44px;
  }

  .smt6x-timer-app__title {
    font-size: 31px;
  }

  .smt6x-timer-app__primary {
    padding: 30px 26px;
  }

  .smt6x-timer-app__secondary {
    padding: 26px;
  }

  .smt6x-timer-app__display {
    font-size: clamp(66px, 16vw, 88px);
  }

  .smt6x-timer-app__transport,
  .smt6x-timer-app__utilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smt6x-timer-app__presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .smt6x-timer-app__wrapper {
    padding: 44px 28px 54px;
  }

  .smt6x-timer-app__header {
    margin-bottom: 28px;
  }

  .smt6x-timer-app__title {
    font-size: 36px;
  }

  .smt6x-timer-app__tool {
    grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  }

  .smt6x-timer-app__primary {
    padding: 38px 30px;
  }

  .smt6x-timer-app__secondary {
    padding: 28px 24px;
    border-top: 0;
    border-left: 1px solid var(--smt6x-border);
  }

  .smt6x-timer-app__display {
    font-size: clamp(72px, 10vw, 94px);
  }

  .smt6x-timer-app__transport,
  .smt6x-timer-app__utilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smt6x-timer-app__presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .smt6x-timer-app__wrapper {
    padding: 52px 32px 64px;
  }

  .smt6x-timer-app__header {
    margin-bottom: 30px;
  }

  .smt6x-timer-app__title {
    font-size: 40px;
  }

  .smt6x-timer-app__subtitle {
    font-size: 16px;
  }

  .smt6x-timer-app__tool {
    grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.85fr);
  }

  .smt6x-timer-app__primary {
    padding: 52px 54px;
  }

  .smt6x-timer-app__secondary {
    padding: 32px;
    border-top: 0;
    border-left: 1px solid var(--smt6x-border);
  }

  .smt6x-timer-app__display {
    font-size: clamp(92px, 9vw, 128px);
  }

  .smt6x-timer-app__transport {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 12px;
  }

  .smt6x-timer-app__utilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smt6x-timer-app__presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .smt6x-timer-app__progress-fill,
  .smt6x-timer-app__control,
  .smt6x-timer-app__preset,
  .smt6x-timer-app__option,
  .smt6x-timer-app__utility,
  .smt6x-timer-app__toggle,
  .smt6x-timer-app__toggle span {
    transition: none;
  }

  .smt6x-timer-app__tool.smt6x-timer-app__tool--complete {
    animation: none;
  }
}