
.meta-generator-page .compact-wrap{
  width:100%;
  max-width:860px;
  margin:24px auto 56px;
  padding:0 16px;
  box-sizing:border-box;
}

.meta-generator-page .compact-panel{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:14px;
  margin-bottom:12px;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
}

.meta-generator-page .hero-panel h1,
.meta-generator-page h2{
  margin:0;
}

.meta-generator-page .hero-panel h1{
  font-size:32px;
  line-height:1.1;
  margin-top:4px;
  letter-spacing:-0.02em;
}

.meta-generator-page .hero-desc,
.meta-generator-page .compact-head p,
.meta-generator-page .upload-box,
.meta-generator-page .loader p{
  font-size:14px;
  line-height:1.5;
  color:#4b5563;
}

.meta-generator-page .hero-desc{
  margin:8px 0 0;
  max-width:680px;
}

.meta-generator-page .compact-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.meta-generator-page .compact-head h2{
  font-size:20px;
  line-height:1.2;
}

.meta-generator-page .compact-head p{
  margin:2px 0 0;
}

.mode-switch{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.mode-btn,
.btn-primary,
.btn-secondary,
.meta-generator-page select,
.meta-generator-page input,
.meta-generator-page textarea{
  font:inherit;
}

.mode-btn{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  padding:8px 13px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  transition:all .18s ease;
}

.mode-btn.active,
.mode-btn:hover{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.mode-btn:active,
.btn-primary:active,
.btn-secondary:active{
  transform:scale(.98);
}

.mode-panel{
  display:none;
}

.mode-panel.active{
  display:block;
}

.compact-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 12px;
}

.form-group{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.form-group.full{
  grid-column:1 / -1;
}

.form-group label{
  font-size:13px;
  font-weight:600;
  margin-bottom:5px;
  color:#111827;
}

.meta-generator-page input,
.meta-generator-page textarea,
.meta-generator-page select{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  background:#fff;
  color:#111827;
  box-sizing:border-box;
  transition:border-color .18s ease, box-shadow .18s ease;
}

.meta-generator-page input:focus,
.meta-generator-page textarea:focus,
.meta-generator-page select:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.meta-generator-page textarea{
  min-height:96px;
  resize:vertical;
}

.char-count{
  margin-top:4px;
  text-align:right;
  font-size:12px;
  color:#6b7280;
}

.compact-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn-compact{
  padding:10px 14px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  transition:all .18s ease;
}

.btn-primary{
  background:#2563eb;
  color:#fff;
}

.btn-primary:hover{
  background:#1d4ed8;
}

.btn-secondary{
  background:#eef2ff;
  color:#1e3a8a;
}

.btn-secondary:hover{
  background:#e0e7ff;
}

#metaOutput{
  width:100%;
  min-height:220px;
  background:#f8fafc;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-sizing:border-box;
}

.compact-upload{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.text-link{
  color:#2563eb;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
}

.text-link:hover{
  text-decoration:underline;
}

.loader{
  display:none;
  padding:10px 0 2px;
  text-align:center;
}

.loader.active{
  display:block;
}

.spinner{
  width:30px;
  height:30px;
  margin:0 auto 8px;
  border:3px solid #e5e7eb;
  border-top-color:#2563eb;
  border-radius:50%;
  animation:spin .8s linear infinite;
}

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

.bulk-results{
  display:grid;
  gap:10px;
}

.bulk-card{
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#f9fafb;
  padding:12px;
}

.bulk-card-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  flex-wrap:wrap;
}

.bulk-url{
  font-size:13px;
  color:#2563eb;
  word-break:break-word;
}

.bulk-title{
  font-size:15px;
  font-weight:700;
  color:#111827;
}

.bulk-code{
  margin-top:8px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px;
  white-space:pre-wrap;
  word-break:break-word;
  font-size:12px;
  line-height:1.55;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.empty-state{
  padding:14px;
  border:1px dashed #d1d5db;
  border-radius:12px;
  font-size:14px;
  color:#6b7280;
}

@media (max-width:768px){
  .meta-generator-page .compact-wrap{
    margin:16px auto 40px;
    padding:0 14px;
  }

  .meta-generator-page .compact-panel{
    padding:13px;
    margin-bottom:10px;
  }

  .meta-generator-page .hero-panel h1{
    font-size:26px;
  }

  .meta-generator-page .compact-head{
    flex-direction:column;
    margin-bottom:10px;
  }

  .compact-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  #metaOutput{
    min-height:200px;
  }

  .mode-switch,
  .compact-actions,
  .compact-upload{
    width:100%;
  }

  .mode-btn,
  .btn-compact{
    width:100%;
    justify-content:center;
  }
}
.field-note{
  margin-top:4px;
  font-size:12px;
  line-height:1.4;
  color:#6b7280;
}

.field-note.warning{
  color:#b45309;
}

.field-note.good{
  color:#15803d;
}