.igw-checklist-generator {
  max-width: 1180px;
  margin: 32px auto;
  padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2937;
}

.igw-cg-header {
  text-align: center;
  margin-bottom: 24px;
}

.igw-cg-header h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
  color: #111827;
}

.igw-cg-header p {
  margin: 0 auto;
  max-width: 720px;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
}

.igw-cg-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(320px, 0.58fr);
  gap: 22px;
  align-items: start;
}

.igw-cg-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.igw-cg-controls {
  padding: 22px;
}

.igw-cg-field {
  margin-bottom: 18px;
}

.igw-cg-field > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #111827;
}

.igw-cg-field input[type="text"],
.igw-cg-field textarea,
.igw-cg-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.igw-cg-field textarea {
  resize: vertical;
  min-height: 150px;
}

.igw-cg-field input[type="text"]:focus,
.igw-cg-field textarea:focus,
.igw-cg-field select:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.igw-cg-field small {
  display: block;
  margin-top: 7px;
  color: #6b7280;
  font-size: 13px;
}

.igw-cg-style-buttons,
.igw-cg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.igw-cg-style,
.igw-cg-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}

.igw-cg-style:hover,
.igw-cg-btn:hover {
  transform: translateY(-1px);
}

.igw-cg-style.active,
.igw-cg-generate {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.igw-cg-download {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.igw-cg-clear {
  background: #f9fafb;
}

.igw-cg-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.igw-cg-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 8px 0 !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

.igw-cg-check input {
  width: 16px;
  height: 16px;
}

.igw-cg-message {
  min-height: 22px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
}

.igw-cg-message.show.success {
  color: #047857;
}

.igw-cg-message.show.error {
  color: #b91c1c;
}

.igw-cg-preview-wrap {
  padding: 18px;
  background: #f9fafb;
}

.igw-cg-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.igw-cg-preview-top h3 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.igw-cg-preview {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 34px;
  min-height: 520px;
  color: #111827;
}

.igw-cg-paper-inner {
  max-width: 720px;
  margin: 0 auto;
}

.igw-cg-type-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.igw-cg-preview h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.2;
  color: #111827;
}

.igw-cg-date {
  margin: 0 0 22px;
  color: #374151;
  font-weight: 600;
}

.igw-cg-date span {
  display: inline-block;
  width: 170px;
  border-bottom: 1px solid #9ca3af;
  transform: translateY(-3px);
}

.igw-cg-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.igw-cg-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 30px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 17px;
  line-height: 1.45;
}

.igw-cg-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #111827;
  border-radius: 4px;
  margin-top: 3px;
}

.igw-cg-num {
  min-width: 26px;
  font-weight: 800;
  color: #374151;
}

.igw-cg-item-text {
  word-break: break-word;
}

.igw-cg-notes {
  margin-top: 34px;
  color: #111827;
}

.igw-cg-notes strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.igw-cg-notes div {
  height: 26px;
  border-bottom: 1px solid #d1d5db;
}

.igw-cg-preview.minimal {
  border: none;
  box-shadow: none;
}

.igw-cg-preview.minimal .igw-cg-type-label {
  background: transparent;
  padding-left: 0;
}

.igw-cg-preview.minimal .igw-cg-list li {
  border-bottom-color: #ffffff;
}

.igw-cg-preview.printable {
  border: 2px solid #111827;
  border-radius: 4px;
}

.igw-cg-preview.printable .igw-cg-type-label {
  border: 1px solid #111827;
  background: #ffffff;
  color: #111827;
}

.igw-cg-preview.printable .igw-cg-list li {
  border-bottom: 1px dashed #9ca3af;
}

@media (max-width: 860px) {
  .igw-cg-layout {
    grid-template-columns: 1fr;
  }

  .igw-cg-header h2 {
    font-size: 28px;
  }

  .igw-cg-preview {
    padding: 24px;
    min-height: 420px;
  }
}

@media (max-width: 520px) {
  .igw-checklist-generator {
    padding: 0 12px;
  }

  .igw-cg-controls,
  .igw-cg-preview-wrap {
    padding: 16px;
  }

  .igw-cg-preview {
    padding: 20px;
  }

  .igw-cg-actions .igw-cg-btn,
  .igw-cg-style-buttons .igw-cg-style {
    flex: 1 1 100%;
  }
}
