body {
  background: #f6f8fb;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 780px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.brand-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.logo-container h2 {
  font-weight: 700;
  font-size: 34px;
  margin-top: 25px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  color: #111;
}

.logo-container p.subtitle {
  color: #555;
  font-size: 17px;
  margin: 0;
  max-width: 550px;
  line-height: 1.5;
}

.multistep-container {
  background: #ffffff;
  padding: 45px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  color: #111;
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  scroll-margin-top: 20px;
}

@media (max-width: 750px) {
  .page-wrapper {
    margin: 20px auto;
    padding: 0 15px;
    gap: 25px;
  }
}

@media (max-width: 750px) {
  .multistep-container {
    padding: 24px;
  }
}

@media (max-width: 750px) {
  .logo-container h2 {
    font-size: 26px;
  }
}

@media (max-width: 750px) {
  .logo-container p.subtitle {
    font-size: 15px;
  }
}

.progress-tracker {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.progress-tracker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
  transform: translateY(-50%);
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9ecef;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-dot.active {
  background: #111;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(17, 17, 17, 0.1);
}

.step-dot.completed {
  background: #111;
  color: #fff;
}

.required-asterisk {
  color: #d93025;
  margin-left: 4px;
}

.required-note {
  font-size: 13px;
  color: #777;
  margin-bottom: 20px;
  text-align: right;
}

.error-message {
  color: #d93025;
  font-size: 13px;
  margin-top: -16px;
  margin-bottom: 24px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  animation: slideUp 0.3s ease;
  line-height: 1.4;
}

.error-message::before {
  content: '⚠';
  margin-top: 1px;
}

input.error-state, select.error-state, textarea.error-state {
  border-color: #d93025 !important;
  background-color: #fdf2f2 !important;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1) !important;
}

.radio-group.error-state, .checkbox-group.error-state, .spectrum-container.error-state, .color-picker-wrapper.error-state, .generator-actions.error-state {
  border: 1.5px solid #d93025 !important;
  border-radius: 12px;
  background-color: #fdf2f2;
  margin-bottom: 8px;
  padding: 12px;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.step-tab {
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-tab h3 {
  font-size: 20px;
  margin-bottom: 25px;
  font-weight: 600;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.multistep-container label.primary-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.input-hint {
  font-size: 13px;
  color: #666;
  margin-top: -4px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.multistep-container input[type="text"], .multistep-container input[type="email"], .multistep-container input[type="url"], .multistep-container select, .multistep-container textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 24px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.multistep-container input:focus, .multistep-container select:focus, .multistep-container textarea:focus {
  border-color: #111;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.multistep-container input:disabled, .multistep-container textarea:disabled, .multistep-container select:disabled {
  background-color: #e9ecef !important;
  color: #999 !important;
  border-color: #dee2e6 !important;
  cursor: not-allowed;
}

.label-with-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.label-with-help .primary-label {
  margin-bottom: 0 !important;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #e9ecef;
  color: #333;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.help-icon:hover {
  background: #111;
  color: #fff;
}

.help-box {
  display: none;
  background: #f8f9fa;
  border: 1px solid #c7d2fe;
  border-left: 4px solid #4f46e5;
  padding: 14px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #333;
  margin-top: -14px;
  margin-bottom: 20px;
  line-height: 1.5;
  animation: slideUp 0.3s ease;
}

.help-box p {
  margin: 0 0 8px 0;
}

.help-box p:last-child {
  margin-bottom: 0;
}

.help-box ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.policy-notice-box {
  display: none;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-left: 4px solid #d97706;
  padding: 14px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #92400e;
  margin-bottom: 20px;
  line-height: 1.5;
  animation: slideUp 0.3s ease;
}

.radio-group, .checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.radio-group label, .checkbox-group label {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: border 0.2s ease, background 0.2s ease;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.radio-group input, .checkbox-group input {
  margin-right: 12px;
  margin-top: 2px;
  accent-color: #111;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.comp-row, .avoid-row, .link-input-row, .author-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .comp-row, .avoid-row, .link-input-row, .author-row {
    grid-template-columns: 1fr;
  }
}

.spectrum-container {
  background: #fdfdfd;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 24px;
}

.spectrum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  margin-bottom: 10px;
}

.spectrum-row:last-child {
  margin-bottom: 0;
}

.spectrum-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  flex: 1;
  color: #334155;
}

.spectrum-row label:last-child {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.spectrum-row input {
  accent-color: #2563eb;
  width: 18px;
  height: 18px;
  margin: 0;
}

.spectrum-divider {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0 15px;
}

@media (max-width: 500px) {
  .spectrum-row {
    padding: 10px 8px;
  }
}

@media (max-width: 500px) {
  .spectrum-row label {
    font-size: 12.5px;
    gap: 6px;
  }
}

@media (max-width: 500px) {
  .spectrum-divider {
    padding: 0 6px;
  }
}

.generator-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  .generator-actions {
    flex-direction: row;
  }
}

.generate-btn {
  flex: 1;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.reset-gen-btn {
  display: none;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.reset-gen-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.color-picker-wrapper {
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: none;
  animation: slideUp 0.4s ease;
}

.color-preview-bar {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

@media (min-width: 600px) {
  .color-preview-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.selection-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.slot-swatch-group {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 6px;
}

.slot-chip {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
}

.clear-selection-btn {
  background: #fee2e2;
  border: none;
  color: #991b1b;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

.top-match-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-match-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #166534;
  letter-spacing: 0.5px;
}

.top-match-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.top-match-name {
  font-size: 16px;
  font-weight: 700;
  color: #14532d;
}

.apply-match-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.apply-match-btn:hover {
  background: #15803d;
}

.add-core-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
  display: inline-block;
}

.add-core-btn:hover {
  background: #15803d;
}

.picker-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-tab-btn {
  flex: 1;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.mode-tab-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.top20-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-height: 500px;
  overflow-y: auto;
  padding: 6px;
}

@media (max-width: 500px) {
  .top20-grid {
    grid-template-columns: 1fr;
  }
}

.palette-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.palette-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.palette-card.selected-primary {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.palette-card.selected-secondary {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.palette-card.clashing-disabled {
  opacity: 0.4;
  filter: grayscale(100%);
  pointer-events: none;
  border-color: #e2e8f0;
}

.card-swatches {
  display: flex;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

.swatch-segment {
  flex: 1;
  height: 100%;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.card-note {
  font-size: 12px;
  color: #64748b;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
}

.badge-primary {
  background: #2563eb;
}

.badge-secondary {
  background: #0d9488;
}

.badge-clash {
  background: #94a3b8;
}

.custom-builder-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

.quick-preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}

.quick-preset-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  width: 100%;
  margin-bottom: 2px;
}

.quick-preset-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.quick-preset-pill:hover {
  background: #e2e8f0;
}

.preset-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
}

.custom-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.custom-color-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  padding: 6px 10px;
  border-radius: 8px;
}

.color-preview-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}

.visible-color-picker {
  -webkit-appearance: none;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  padding: 2px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.visible-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.visible-color-picker::-webkit-color-swatch {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
}

.custom-hex-input {
  font-family: monospace;
  font-size: 12px;
  width: 65px;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-transform: uppercase;
  background: #fff;
}

.remove-slot-btn {
  background: #fee2e2;
  border: none;
  color: #991b1b;
  font-weight: 700;
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 8px;
}

.branch-container {
  background: #fdfdfd;
  border: 1px solid #e9ecef;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 24px;
  animation: slideUp 0.3s ease;
}

.legal-boundary-box {
  background: #fff5f5;
  border: 1px solid #ffe3e3;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.legal-boundary-box label {
  border: none;
  background: transparent;
  padding: 5px 0;
  margin: 0 0 10px 0;
}

.legal-boundary-box label:last-child {
  margin-bottom: 0;
}

.button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  gap: 12px;
}

.multistep-container button {
  -webkit-appearance: none;
  appearance: none;
  background-color: #111;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.multistep-container button.secondary {
  background-color: #fff;
  color: #111;
  border: 1px solid #e9ecef;
}

.spinner-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s ease-in-out infinite;
  margin-right: 10px;
}

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

.success-box {
  background: #e6f4ea;
  border: 1px solid #ceead6;
  color: #137333;
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon {
  width: 55px;
  height: 55px;
  background: #137333;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px auto;
}

#printSummary {
  display: none;
}

div {
}

