@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');

.ohtx7-timer-wrap {
  --ohtx7-accent: #2563eb;
  --ohtx7-accent-dark: #1d4ed8;
  --ohtx7-accent-soft: #eff6ff;
  --ohtx7-text: #0f172a;
  --ohtx7-muted: #475569;
  --ohtx7-border: #dbe3ee;
  --ohtx7-surface: #ffffff;
  --ohtx7-soft: #f8fafc;
  --ohtx7-danger: #b42318;
  --ohtx7-danger-soft: #fff1f0;
  --ohtx7-success: #18794e;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-x: clip;
  background: #ffffff;
  color: var(--ohtx7-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.ohtx7-timer-wrap *,
.ohtx7-timer-wrap *::before,
.ohtx7-timer-wrap *::after {
  box-sizing: border-box;
}

.ohtx7-timer-wrap .ohtx7-shell {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 30px 16px 36px;
}

.ohtx7-timer-wrap .ohtx7-hero {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.ohtx7-timer-wrap .ohtx7-title {
  margin: 0;
  color: var(--ohtx7-text);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.ohtx7-timer-wrap .ohtx7-subtitle {
  margin: 9px auto 0;
  color: var(--ohtx7-muted);
  font-size: 16px;
  line-height: 1.55;
}

.ohtx7-timer-wrap .ohtx7-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ohtx7-border);
  border-radius: 18px;
  background: var(--ohtx7-surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.ohtx7-timer-wrap .ohtx7-layout,
.ohtx7-timer-wrap .ohtx7-primary,
.ohtx7-timer-wrap .ohtx7-settings,
.ohtx7-timer-wrap .ohtx7-fieldset {
  min-width: 0;
}

.ohtx7-timer-wrap .ohtx7-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.ohtx7-timer-wrap .ohtx7-primary {
  padding: 20px 16px 22px;
}

.ohtx7-timer-wrap .ohtx7-settings {
  padding: 20px 16px 22px;
  border-top: 1px solid var(--ohtx7-border);
  background: var(--ohtx7-soft);
}

.ohtx7-timer-wrap .ohtx7-status-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.ohtx7-timer-wrap .ohtx7-state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: var(--ohtx7-accent-soft);
  color: #1e40af;
  font-size: 14px;
  font-weight: 700;
}

.ohtx7-timer-wrap .ohtx7-state-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ohtx7-accent);
}

.ohtx7-timer-wrap .ohtx7-state[data-state="paused"] {
  border-color: #fde68a;
  background: #fffbeb;
  color: #854d0e;
}

.ohtx7-timer-wrap .ohtx7-state[data-state="paused"] .ohtx7-state-dot {
  background: #ca8a04;
}

.ohtx7-timer-wrap .ohtx7-state[data-state="complete"] {
  border-color: #fecaca;
  background: var(--ohtx7-danger-soft);
  color: var(--ohtx7-danger);
}

.ohtx7-timer-wrap .ohtx7-state[data-state="complete"] .ohtx7-state-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--ohtx7-danger);
}

.ohtx7-timer-wrap .ohtx7-selected-duration {
  min-width: 0;
  color: var(--ohtx7-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ohtx7-timer-wrap .ohtx7-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  width: 100%;
  max-width: 680px;
  margin: 24px auto 20px;
  align-items: start;
  gap: 3px;
}

.ohtx7-timer-wrap .ohtx7-time-unit {
  min-width: 0;
  text-align: center;
}

.ohtx7-timer-wrap .ohtx7-digits,
.ohtx7-timer-wrap .ohtx7-separator {
  color: var(--ohtx7-text);
  font-size: clamp(35px, 12vw, 58px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.045em;
}

.ohtx7-timer-wrap .ohtx7-separator {
  padding-top: 0;
  color: #94a3b8;
  font-weight: 500;
}

.ohtx7-timer-wrap .ohtx7-unit-label {
  display: block;
  margin-top: 8px;
  color: var(--ohtx7-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ohtx7-timer-wrap .ohtx7-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--ohtx7-muted);
  font-size: 13px;
  font-weight: 700;
}

.ohtx7-timer-wrap .ohtx7-progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: #e2e8f0;
}

.ohtx7-timer-wrap .ohtx7-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--ohtx7-accent);
  transition: width 180ms linear;
}

.ohtx7-timer-wrap .ohtx7-actions {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.ohtx7-timer-wrap .ohtx7-actions-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.ohtx7-timer-wrap .ohtx7-actions-primary .ohtx7-button-primary {
  grid-column: 1 / -1;
}

.ohtx7-timer-wrap .ohtx7-actions-utility {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.ohtx7-timer-wrap .ohtx7-button,
.ohtx7-timer-wrap .ohtx7-preset {
  appearance: none;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}

.ohtx7-timer-wrap .ohtx7-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  white-space: normal;
}

.ohtx7-timer-wrap .ohtx7-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.ohtx7-timer-wrap .ohtx7-button-primary {
  border-color: var(--ohtx7-accent);
  background: var(--ohtx7-accent);
  color: #ffffff;
}

.ohtx7-timer-wrap .ohtx7-button-primary:hover {
  border-color: var(--ohtx7-accent-dark);
  background: var(--ohtx7-accent-dark);
}

.ohtx7-timer-wrap .ohtx7-button-secondary {
  border-color: #cbd5e1;
  background: #ffffff;
  color: var(--ohtx7-text);
}

.ohtx7-timer-wrap .ohtx7-button-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.ohtx7-timer-wrap .ohtx7-button-quiet {
  border-color: #dbe3ee;
  background: #f8fafc;
  color: #334155;
}

.ohtx7-timer-wrap .ohtx7-button-quiet:hover {
  border-color: #bfdbfe;
  background: var(--ohtx7-accent-soft);
  color: #1d4ed8;
}

.ohtx7-timer-wrap .ohtx7-button-danger {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.ohtx7-timer-wrap .ohtx7-button-danger:hover {
  border-color: #912018;
  background: #912018;
}

.ohtx7-timer-wrap .ohtx7-button:active:not(:disabled),
.ohtx7-timer-wrap .ohtx7-preset:active:not(:disabled) {
  transform: translateY(1px);
}

.ohtx7-timer-wrap .ohtx7-button:disabled,
.ohtx7-timer-wrap .ohtx7-preset:disabled {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.ohtx7-timer-wrap .ohtx7-button:focus-visible,
.ohtx7-timer-wrap .ohtx7-preset:focus-visible,
.ohtx7-timer-wrap .ohtx7-input-group input:focus-visible,
.ohtx7-timer-wrap .ohtx7-range:focus-visible,
.ohtx7-timer-wrap .ohtx7-switch input:focus-visible + .ohtx7-switch-track {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.ohtx7-timer-wrap .ohtx7-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.ohtx7-timer-wrap .ohtx7-legend {
  width: 100%;
  margin: 0 0 13px;
  padding: 0;
  color: var(--ohtx7-text);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
}

.ohtx7-timer-wrap .ohtx7-subheading {
  margin: 0 0 11px;
  color: var(--ohtx7-text);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}

.ohtx7-timer-wrap .ohtx7-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ohtx7-timer-wrap .ohtx7-preset {
  padding: 9px 8px;
  border-color: #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.ohtx7-timer-wrap .ohtx7-preset:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.ohtx7-timer-wrap .ohtx7-preset[aria-pressed="true"] {
  border-color: var(--ohtx7-accent);
  background: var(--ohtx7-accent-soft);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px var(--ohtx7-accent);
}

.ohtx7-timer-wrap .ohtx7-divider,
.ohtx7-timer-wrap .ohtx7-settings-divider {
  height: 1px;
  background: var(--ohtx7-border);
}

.ohtx7-timer-wrap .ohtx7-divider {
  margin: 18px 0;
}

.ohtx7-timer-wrap .ohtx7-settings-divider {
  margin: 22px 0;
}

.ohtx7-timer-wrap .ohtx7-time-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ohtx7-timer-wrap .ohtx7-input-group {
  display: block;
  min-width: 0;
  color: var(--ohtx7-muted);
  font-size: 12px;
  font-weight: 700;
}

.ohtx7-timer-wrap .ohtx7-input-group span {
  display: block;
  margin-bottom: 5px;
}

.ohtx7-timer-wrap .ohtx7-input-group input {
  appearance: textfield;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 8px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ohtx7-text);
  font: 700 16px/1 Arial, Helvetica, sans-serif;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ohtx7-timer-wrap .ohtx7-input-group input::-webkit-inner-spin-button,
.ohtx7-timer-wrap .ohtx7-input-group input::-webkit-outer-spin-button {
  margin: 0;
}

.ohtx7-timer-wrap .ohtx7-input-group input[aria-invalid="true"] {
  border-color: var(--ohtx7-danger);
  box-shadow: 0 0 0 1px var(--ohtx7-danger);
}

.ohtx7-timer-wrap .ohtx7-error {
  margin: 9px 0 0;
  color: var(--ohtx7-danger);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ohtx7-timer-wrap .ohtx7-apply {
  width: 100%;
  margin-top: 12px;
}

.ohtx7-timer-wrap .ohtx7-setting-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ohtx7-timer-wrap .ohtx7-setting-name,
.ohtx7-timer-wrap .ohtx7-setting-help {
  display: block;
}

.ohtx7-timer-wrap .ohtx7-setting-name {
  color: var(--ohtx7-text);
  font-size: 15px;
  font-weight: 700;
}

.ohtx7-timer-wrap .ohtx7-setting-help {
  margin-top: 2px;
  color: var(--ohtx7-muted);
  font-size: 12px;
}

.ohtx7-timer-wrap .ohtx7-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.ohtx7-timer-wrap .ohtx7-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ohtx7-timer-wrap .ohtx7-switch-track {
  display: flex;
  width: 48px;
  height: 28px;
  align-items: center;
  padding: 3px;
  border: 1px solid #94a3b8;
  border-radius: 14px;
  background: #cbd5e1;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.ohtx7-timer-wrap .ohtx7-switch-track span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 150ms ease;
}

.ohtx7-timer-wrap .ohtx7-switch input:checked + .ohtx7-switch-track {
  border-color: var(--ohtx7-accent);
  background: var(--ohtx7-accent);
}

.ohtx7-timer-wrap .ohtx7-switch input:checked + .ohtx7-switch-track span {
  transform: translateX(20px);
}

.ohtx7-timer-wrap .ohtx7-volume-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--ohtx7-text);
  font-size: 14px;
  font-weight: 700;
}

.ohtx7-timer-wrap .ohtx7-volume-label output {
  color: var(--ohtx7-muted);
  font-variant-numeric: tabular-nums;
}

.ohtx7-timer-wrap .ohtx7-range {
  width: 100%;
  max-width: 100%;
  height: 28px;
  margin: 5px 0 0;
  accent-color: var(--ohtx7-accent);
  cursor: pointer;
}

.ohtx7-timer-wrap .ohtx7-range:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ohtx7-timer-wrap .ohtx7-alarm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 11px;
}

.ohtx7-timer-wrap .ohtx7-live {
  min-height: 0;
  overflow-wrap: anywhere;
}

.ohtx7-timer-wrap [hidden] {
  display: none !important;
}

.ohtx7-timer-wrap .ohtx7-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 320px) and (max-width: 374px) {
  .ohtx7-timer-wrap .ohtx7-shell {
    padding: 24px 10px 28px;
  }

  .ohtx7-timer-wrap .ohtx7-hero {
    margin-bottom: 17px;
  }

  .ohtx7-timer-wrap .ohtx7-title {
    font-size: 23px;
  }

  .ohtx7-timer-wrap .ohtx7-subtitle {
    font-size: 15px;
  }

  .ohtx7-timer-wrap .ohtx7-card {
    border-radius: 14px;
  }

  .ohtx7-timer-wrap .ohtx7-primary,
  .ohtx7-timer-wrap .ohtx7-settings {
    padding: 17px 12px 19px;
  }

  .ohtx7-timer-wrap .ohtx7-display {
    margin: 22px auto 18px;
  }

  .ohtx7-timer-wrap .ohtx7-digits,
  .ohtx7-timer-wrap .ohtx7-separator {
    font-size: clamp(34px, 11.4vw, 40px);
  }

  .ohtx7-timer-wrap .ohtx7-unit-label {
    font-size: 10px;
  }

  .ohtx7-timer-wrap .ohtx7-actions {
    gap: 8px;
  }

  .ohtx7-timer-wrap .ohtx7-button {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }

  .ohtx7-timer-wrap .ohtx7-actions-utility {
    grid-template-columns: minmax(0, 1fr);
  }

  .ohtx7-timer-wrap .ohtx7-presets {
    gap: 7px;
  }

  .ohtx7-timer-wrap .ohtx7-time-inputs {
    gap: 5px;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .ohtx7-timer-wrap .ohtx7-shell {
    padding: 27px 14px 32px;
  }

  .ohtx7-timer-wrap .ohtx7-primary,
  .ohtx7-timer-wrap .ohtx7-settings {
    padding: 20px 16px 22px;
  }

  .ohtx7-timer-wrap .ohtx7-digits,
  .ohtx7-timer-wrap .ohtx7-separator {
    font-size: clamp(40px, 11.5vw, 49px);
  }

  .ohtx7-timer-wrap .ohtx7-actions-utility {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .ohtx7-timer-wrap .ohtx7-shell {
    padding: 32px 18px 38px;
  }

  .ohtx7-timer-wrap .ohtx7-title {
    font-size: 28px;
  }

  .ohtx7-timer-wrap .ohtx7-primary,
  .ohtx7-timer-wrap .ohtx7-settings {
    padding: 24px;
  }

  .ohtx7-timer-wrap .ohtx7-digits,
  .ohtx7-timer-wrap .ohtx7-separator {
    font-size: clamp(48px, 12vw, 66px);
  }

  .ohtx7-timer-wrap .ohtx7-actions-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ohtx7-timer-wrap .ohtx7-actions-primary .ohtx7-button-primary {
    grid-column: auto;
  }

  .ohtx7-timer-wrap .ohtx7-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ohtx7-timer-wrap .ohtx7-alarm-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ohtx7-timer-wrap .ohtx7-shell {
    padding: 38px 28px 44px;
  }

  .ohtx7-timer-wrap .ohtx7-hero {
    margin-bottom: 25px;
  }

  .ohtx7-timer-wrap .ohtx7-title {
    font-size: 34px;
  }

  .ohtx7-timer-wrap .ohtx7-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  }

  .ohtx7-timer-wrap .ohtx7-primary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 28px;
  }

  .ohtx7-timer-wrap .ohtx7-settings {
    padding: 27px 24px;
    border-top: 0;
    border-left: 1px solid var(--ohtx7-border);
  }

  .ohtx7-timer-wrap .ohtx7-digits,
  .ohtx7-timer-wrap .ohtx7-separator {
    font-size: clamp(45px, 6.5vw, 62px);
  }

  .ohtx7-timer-wrap .ohtx7-actions-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ohtx7-timer-wrap .ohtx7-actions-primary .ohtx7-button-primary {
    grid-column: auto;
  }

  .ohtx7-timer-wrap .ohtx7-actions-utility {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ohtx7-timer-wrap .ohtx7-shell {
    padding: 42px 32px 48px;
  }

  .ohtx7-timer-wrap .ohtx7-hero {
    margin-bottom: 28px;
  }

  .ohtx7-timer-wrap .ohtx7-title {
    font-size: 38px;
  }

  .ohtx7-timer-wrap .ohtx7-subtitle {
    font-size: 17px;
  }

  .ohtx7-timer-wrap .ohtx7-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(350px, 0.85fr);
  }

  .ohtx7-timer-wrap .ohtx7-primary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 40px 36px;
  }

  .ohtx7-timer-wrap .ohtx7-settings {
    padding: 29px 28px;
    border-top: 0;
    border-left: 1px solid var(--ohtx7-border);
  }

  .ohtx7-timer-wrap .ohtx7-display {
    margin-top: 28px;
    margin-bottom: 24px;
  }

  .ohtx7-timer-wrap .ohtx7-digits,
  .ohtx7-timer-wrap .ohtx7-separator {
    font-size: clamp(62px, 6vw, 78px);
  }

  .ohtx7-timer-wrap .ohtx7-actions-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ohtx7-timer-wrap .ohtx7-actions-primary .ohtx7-button-primary {
    grid-column: auto;
  }

  .ohtx7-timer-wrap .ohtx7-button {
    min-height: 46px;
  }

  .ohtx7-timer-wrap .ohtx7-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ohtx7-timer-wrap .ohtx7-alarm-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ohtx7-timer-wrap .ohtx7-progress-fill,
  .ohtx7-timer-wrap .ohtx7-button,
  .ohtx7-timer-wrap .ohtx7-preset,
  .ohtx7-timer-wrap .ohtx7-switch-track,
  .ohtx7-timer-wrap .ohtx7-switch-track span {
    transition: none;
  }
}