.serp-preview-page .compact-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

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

.serp-preview-page .hero-panel h1,
.serp-preview-page h2{margin:0;}
.serp-preview-page .hero-panel h1{font-size:32px; line-height:1.15; margin-top:4px;}
.serp-preview-page .hero-desc,
.serp-preview-page .compact-head p,
.serp-preview-page .upload-box,
.serp-preview-page .loader p{font-size:14px; line-height:1.5; color:#4b5563;}
.serp-preview-page .hero-desc{margin:10px 0 0; max-width:720px;}

.serp-preview-page .compact-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}
.serp-preview-page .compact-head h2{font-size:21px; line-height:1.2;}
.serp-preview-page .compact-head p{margin:2px 0 0;}

.mode-switch{display:flex; gap:8px; flex-wrap:wrap;}
.mode-btn,
.btn-primary,
.btn-secondary,
.serp-preview-page select,
.serp-preview-page input,
.serp-preview-page textarea{font:inherit;}

.mode-btn{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  padding:9px 14px;
  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:12px;}
.form-group{display:flex; flex-direction:column;}
.form-group.full{grid-column:1/-1;}
.form-group label{font-size:14px; font-weight:600; margin-bottom:6px; color:#111827;}

.serp-preview-page input,
.serp-preview-page textarea{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  background:#fff;
  color:#111827;
}
.serp-preview-page textarea{min-height:110px; resize:vertical;}
.char-count{margin-top:5px; text-align:right; font-size:12px; color:#6b7280;}

.compact-actions{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px;}
.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;}

.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;}

.serp-card{
  max-width:700px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  padding:14px;
}
.serp-breadcrumb{
  color:#188038;
  font-size:14px;
  line-height:1.45;
  word-break:break-word;
  margin-bottom:4px;
}
.serp-title{
  color:#1a0dab;
  font-size:22px;
  line-height:1.25;
  margin-bottom:6px;
  font-weight:500;
}
.serp-desc{
  color:#4d5156;
  font-size:14px;
  line-height:1.5;
}

.loader{display:none; padding:12px 0 4px; text-align:center;}
.loader.active{display:block;}
.spinner{
  width:32px; height:32px; 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;}
.empty-state{padding:14px; border:1px dashed #d1d5db; border-radius:12px; font-size:14px; color:#6b7280;}

@media (max-width:768px){
  .serp-preview-page .compact-wrap{padding:12px;}
  .serp-preview-page .compact-panel{padding:14px; margin-bottom:12px;}
  .serp-preview-page .hero-panel h1{font-size:26px;}
  .serp-preview-page .compact-head{flex-direction:column; margin-bottom:10px;}
  .compact-grid{grid-template-columns:1fr; gap:10px;}
  .serp-title{font-size:20px;}
}
