.tk-app-shell,
.tk-app-shell * {
  box-sizing: border-box;
}

.tk-app-shell {
  display: block;
  max-width: 896px;
  margin: 0.4rem auto;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tk-app-shell .tk-input-container {
  margin-bottom: 8px;
}

.tk-app-shell .tk-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tk-app-shell .tk-input-wrapper {
  position: relative;
  flex: 1;
}

.tk-app-shell .tk-input {
  color: #000;
  width: 100%;
  height: 56px;
  padding: 0 72px 0 16px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.tk-app-shell .tk-input:focus-visible,
.tk-app-shell .tk-paste-btn:focus-visible,
.tk-app-shell .tk-download-btn:focus-visible,
.tk-app-shell .tk-download-another-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.tk-app-shell .tk-paste-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 48px;
  padding: 0 16px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
}

.tk-app-shell .tk-paste-btn:hover {
  opacity: 0.9;
}

.tk-app-shell .tk-paste-icon {
  width: 24px;
  height: 24px;
}

.tk-app-shell .tk-paste-text {
  display: none;
}

.tk-app-shell .tk-download-btn {
  display: block;
  height: 56px;
  padding: 0 32px;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
}

.tk-app-shell .tk-download-btn:hover {
  background: #1d4ed8;
}

.tk-app-shell .tk-download-btn:disabled {
  opacity: 1;
}

.tk-app-shell .tk-result {
  margin-top: 20px;
  border-radius: 8px;
}

.tk-app-shell .tk-error {
  padding: 16px;
  border-radius: 8px;
  margin-top: 10px;
  color: #dc2626;
  background: #fee2e2;
}

.tk-app-shell .tk-loading {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.tk-app-shell .tk-spinner {
  width: 96px;
  height: 96px;
  border: 8px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: tk-spin 1s linear infinite;
}

.tk-app-shell .tk-download-another-container {
  display: none;
  margin-top: 8px;
}

.tk-app-shell .tk-download-another-container.show {
  display: block;
}

.tk-app-shell .tk-download-another-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.tk-app-shell .tk-download-another-btn:hover {
  background: #1f2937;
}

.tk-app-shell .tk-recaptcha-notice {
  display: none;
}

.tk-app-shell .tk-captcha-mount {
  display: none;
  justify-content: center;
  min-height: 0;
}

@keyframes tk-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 640px) {
  .tk-app-shell .tk-paste-icon {
    width: 20px;
    height: 20px;
  }

  .tk-app-shell .tk-paste-text {
    display: inline;
  }
}

@media (min-width: 768px) {
  .tk-app-shell .tk-input-row {
    flex-direction: row;
  }

  .tk-app-shell .tk-input {
    padding-right: 112px;
  }
}
