.lh-maker {
  max-width: 760px;
  margin: 0 auto;
  color: #212529;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.lh-maker button,
.lh-maker input,
.lh-maker select,
.lh-maker textarea {
  font-family: inherit;
  font-size: 16px;
}

.lh-maker .page-header {
  padding: 0;
  margin: 0;
}

.lh-maker form {
  margin-top: 0;
}

.lh-maker h1 {
  margin: 0;
  padding: 8px 0 4px;
  font-size: 30px;
  line-height: 1.2;
  text-align: left;
  color: #212529;
}

.lh-maker .lh-intro {
  margin: 0 0 8px;
  color: #212529;
}

.lh-maker .lh-links {
  margin: 0 0 48px;
  color: #6c757d;
  font-size: 14px;
}

.lh-maker .lh-links a {
  color: #1875d0;
  text-decoration: none;
}

.lh-maker .lh-links a:hover {
  text-decoration: underline;
}

.lh-maker .lh-field {
  margin: 0 0 24px;
}

.lh-maker .create_formhead {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #212529;
}

.lh-maker input[type="text"],
.lh-maker select,
.lh-maker textarea,
.lh-maker .create_textinput,
.lh-maker .create_textarea,
.lh-maker .ai-generate-select {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  margin: 0 !important;
  color: #212529;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
}

.lh-maker input[type="text"],
.lh-maker select,
.lh-maker .ai-generate-select {
  height: 44px;
}

.lh-maker textarea,
.lh-maker .create_textarea {
  height: auto;
  min-height: 96px;
  resize: vertical;
}

.lh-maker input[type="text"]:focus,
.lh-maker select:focus,
.lh-maker textarea:focus {
  outline: none;
  border-color: #1875d0;
  box-shadow: 0 0 0 3px rgba(24, 117, 208, 0.25);
}

.lh-maker ::placeholder {
  color: #6c757d;
  opacity: 1;
}

.lh-maker .form-section {
  margin: 32px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
}

.lh-maker .form-section h2 {
  margin: 0 0 16px;
  color: #212529;
  font-size: 22px;
}

.lh-maker .lh-tabs {
  display: flex;
  margin: 0 0 20px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  overflow: hidden;
}

.lh-maker .lh-tabs .method-toggle {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 8px;
  border: none;
  border-right: 1px solid #ced4da;
  border-radius: 0;
  background: #fff;
  color: #212529;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.lh-maker .lh-tabs .method-toggle:last-child {
  border-right: none;
}

.lh-maker .lh-tabs .method-toggle.active,
.lh-maker .lh-tabs .method-toggle.active:hover {
  background: #1875d0;
  border-color: #ced4da;
  color: #fff;
  box-shadow: none;
  transform: none;
}

.lh-maker .lh-tabs .method-toggle:hover {
  background: #f4f8fc;
  color: #1875d0;
  box-shadow: none;
  transform: none;
}

.lh-maker .lh-tabs .method-toggle:focus {
  outline: 2px solid #1875d0;
  outline-offset: -2px;
  z-index: 1;
}

.lh-maker .lh-tab-short {
  display: none;
}

.lh-maker .ai-generate-fields {
  display: flex;
  gap: 16px;
  margin: 0;
}

.lh-maker .ai-generate-fields > div {
  flex: 1 1 0;
  min-width: 0;
}

.lh-maker .ai-generate-panel {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.lh-maker .lh-secondary,
.lh-maker .create_button.secondary,
.lh-maker #processBulk,
.lh-maker #aiReplaceYes,
.lh-maker #aiReplaceCancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #1875d0;
  border-radius: 8px;
  background: #fff;
  color: #1875d0;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

.lh-maker .lh-secondary:hover,
.lh-maker .create_button.secondary:hover,
.lh-maker #processBulk:hover,
.lh-maker #aiReplaceYes:hover,
.lh-maker #aiReplaceCancel:hover {
  background: #f4f8fc;
  border-color: #1875d0;
  color: #1875d0;
  box-shadow: none;
  transform: none;
}

.lh-maker #aiGenerateBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: #1875d0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

.lh-maker #aiGenerateBtn:hover {
  background: #135ba2;
  border: none;
  color: #fff;
  box-shadow: none;
  transform: none;
}

.lh-maker #aiGenerateBtn:disabled,
.lh-maker #aiReplaceYes:disabled {
  background: #e9ecef;
  border-color: #ced4da;
  color: #6c757d;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.lh-maker .lh-text-button,
.lh-maker .lh-text-button:hover,
.lh-maker input[type="button"].lh-text-button {
  display: inline;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1875d0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

.lh-maker .lh-text-button:hover {
  text-decoration: underline;
}

.lh-maker .create_container {
  margin: 0;
}

.lh-maker .create_container p {
  margin: 2px 0 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.4;
}

.lh-maker .bulk-help {
  margin: 8px 0 16px;
  color: #6c757d;
  font-size: 14px;
  font-style: normal;
}

.lh-maker .ai-generate-note {
  margin: 0 0 16px;
}

.lh-maker .ai-replace {
  margin-top: 16px;
  padding: 12px;
  background: #fff8e8;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
}

.lh-maker .ai-replace p {
  margin: 0 0 10px;
}

.lh-maker .ai-replace-actions {
  display: flex;
  gap: 10px;
}

.lh-maker .lh-options {
  margin: 0 0 32px;
  padding: 0;
  background: transparent;
  border: none;
}

.lh-maker .lh-options summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #212529;
}

.lh-maker .lh-options summary:focus {
  outline: 2px solid #1875d0;
  outline-offset: 3px;
}

.lh-maker .lh-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}

.lh-maker .lh-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.lh-maker .lh-check label {
  display: inline;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #212529;
}

.lh-maker .lh-submit {
  margin: 0 0 24px;
}

.lh-maker #submitButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: #1875d0;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

.lh-maker #submitButton:hover {
  background: #135ba2;
  border: none;
  box-shadow: none;
  transform: none;
}

.lh-maker #submitButton:disabled {
  background: #6c757d;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.lh-maker .lh-status {
  margin: 10px 0 0;
  color: #6c757d;
  font-size: 14px;
}

.lh-maker .exercise-creator > .success-message {
  margin: 0 0 24px;
  padding: 12px 14px;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
}

.lh-maker .exercise-creator > .success-message,
.lh-maker #urlSection.success-message h2 {
  color: #212529;
}

.lh-maker #urlSection.success-message {
  height: auto;
  margin: 8px 0 32px;
  padding: 32px 24px;
  overflow: visible;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  text-align: center;
}

.lh-maker #urlSection.success-message h2 {
  margin: 0 0 15px;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

.lh-maker #urlSection.success-message p {
  margin: 0 0 20px;
  color: #666;
  font-size: 16px;
  text-align: center;
}

.lh-maker #urlSection .url-display {
  display: block;
  max-width: 100%;
  margin: 20px 0;
  padding: 15px;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #28a745;
  border-radius: 6px;
}

.lh-maker #urlSection .activity-url {
  color: #007bff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.lh-maker #urlSection .activity-url:hover {
  color: #0056b3;
  text-decoration: underline;
}

.lh-maker #urlSection .action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.lh-maker #urlSection .lh-success-ad {
  margin-top: 24px;
  text-align: center;
}

.lh-maker #urlSection .lh-success-ad .adsbygoogle {
  position: static !important;
  display: inline-block !important;
  width: 336px !important;
  height: 280px !important;
}

.lh-maker .action-buttons .create_button,
.lh-maker .action-buttons button.create_button,
.lh-maker .action-buttons a.create_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  border: 1px solid #1875d0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #1875d0 !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}

.lh-maker .error,
.lh-maker .form-success {
  margin: 0 0 16px;
}

@media (max-width: 359px) {
  .lh-maker #urlSection .lh-success-ad .adsbygoogle {
    width: 300px !important;
    height: 250px !important;
  }

  .lh-maker #urlSection.success-message {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 360px) and (max-width: 430px) {
  .lh-maker #urlSection.success-message {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 768px) {
  .lh-maker #urlSection.success-message h2 {
    font-size: 24px;
  }

  .lh-maker #urlSection .activity-url {
    font-size: 16px;
  }

  .lh-maker #urlSection .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .lh-maker #urlSection .action-buttons .create_button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  #mainDiv {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lh-maker .lh-tab-long {
    display: none;
  }

  .lh-maker .lh-tab-short {
    display: inline;
  }

  .lh-maker .lh-tabs .method-toggle {
    font-size: 14px;
    padding: 0 4px;
  }

  .lh-maker .ai-generate-fields {
    display: block;
  }

  .lh-maker .form-section {
    padding: 16px;
  }

  .lh-maker #submitButton,
  .lh-maker #aiGenerateBtn {
    width: 100%;
  }
}

.lh-maker .lh-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.lh-maker .lh-card-row .create_textinput {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.lh-maker .lh-card-row .lh-text-button {
  flex: 0 0 auto;
}

.lh-maker .lh-add-card {
  margin: 4px 0 0;
}

.lh-maker .lh-text-button:disabled,
.lh-maker .lh-text-button:disabled:hover {
  color: #6c757d;
  cursor: not-allowed;
  text-decoration: none;
}

.lh-maker .lh-card-count {
  margin: 14px 0 0;
  color: #6c757d;
  font-size: 14px;
}

.lh-maker .lh-card-count + .lh-card-count {
  margin-top: 4px;
}

.lh-maker #submitButton {
  width: auto;
  min-width: 200px;
}

@media (max-width: 480px) {
  .lh-maker #submitButton {
    width: 100%;
  }
}
