.srp-card { padding: 28px; }
.srp-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.srp-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }

.srp-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.srp-topline p { margin: 0; font-size: .9em; color: #6b7280; flex: 1 1 320px; }
.srp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.srp-btn { font: inherit; font-size: .85em; font-weight: 700; color: var(--site-dark); background: #fff; border: 1px dashed var(--site-dark); border-radius: 8px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .2s ease, color .2s ease; }
.srp-btn:hover { background: var(--site-dark); color: #fff; border-style: solid; }
.srp-btn-ghost { border-color: #d1d5db; color: #6b7280; }
.srp-btn-ghost:hover { background: #6b7280; border-color: #6b7280; }

.srp-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }

.srp-field { margin-bottom: 16px; }
.srp-field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.srp-field label { font-weight: 600; font-size: .92em; color: #23272f; }
.srp-field label i { color: var(--site-light); margin-right: 6px; width: 16px; text-align: center; }
.srp-field input[type="text"], .srp-field input[type="url"], .srp-field input[type="date"], .srp-field input[type="number"], .srp-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-family: inherit; font-size: .95em; color: #23272f; background: #fff; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.srp-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.srp-field input:focus, .srp-field textarea:focus { border-color: var(--site-light); box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.srp-field input.srp-bad, .srp-field textarea.srp-bad { border-color: #dc2626; background: #fef2f2; }
.srp-help { font-size: .8em; color: #6b7280; margin-top: 6px; line-height: 1.5; }
.srp-msg { font-size: .8em; color: #b91c1c; margin-top: 6px; line-height: 1.5; min-height: 0; }
.srp-msg:empty { display: none; }

.srp-count { font-size: .78em; color: #6b7280; font-weight: 500; }

.srp-copy-btn { background: none; border: 1px solid var(--site-light); border-radius: 20px; padding: 4px 12px; font-size: .78em; font-weight: 600; color: var(--site-dark); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-family: inherit; }
.srp-copy-btn:hover { background: #f0fdfa; }
.srp-copy-btn:disabled { opacity: .45; cursor: not-allowed; }
.srp-copy-btn.srp-copied { background: var(--site-success-bg); border-color: #86efac; color: var(--site-success); }

.srp-bar { height: 8px; background: #eee; border-radius: 6px; overflow: hidden; margin-top: 8px; }
.srp-bar-fill { height: 100%; width: 0; border-radius: 6px; transition: width .2s ease, background .2s ease; }
.srp-bar-fill.srp-ok { background: #16a34a; }
.srp-bar-fill.srp-warn { background: #d97706; }
.srp-bar-fill.srp-over { background: #dc2626; }
.srp-bar-label { font-size: .78em; color: #6b7280; margin-top: 4px; }

.srp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.srp-limits { background: #f7f8fa; border: 1px solid #eee; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.srp-limits-head { font-size: .85em; font-weight: 700; color: #374151; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.srp-limits-head i { color: var(--site-light); }
.srp-limits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.srp-limits-grid label { display: block; font-size: .74em; color: #6b7280; font-weight: 600; margin-bottom: 4px; }
.srp-limits-grid input { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 6px; padding: 6px 8px; font-size: .9em; font-family: inherit; }
.srp-limits-grid input.srp-bad { border-color: #dc2626; background: #fef2f2; }
.srp-limits .srp-help { margin-top: 8px; }

.srp-previews { display: flex; flex-direction: column; gap: 20px; }
.srp-preview-head { display: flex; align-items: center; gap: 8px; font-size: .85em; font-weight: 700; color: #374151; margin-bottom: 10px; }
.srp-preview-head i { color: var(--site-light); }
.srp-preview-head span { font-weight: 500; color: #6b7280; }
.srp-serp { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; font-family: Arial, Helvetica, sans-serif; color: #23272f; }
.srp-serp-desktop { max-width: 640px; }
.srp-serp-mobile { max-width: 380px; border-radius: 18px; padding: 16px; }
.srp-source { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-width: 0; }
.srp-fav { width: 26px; height: 26px; border-radius: 50%; background: #e5e7eb; color: #374151; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.srp-source-text { min-width: 0; }
.srp-site { font-size: 14px; color: #23272f; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srp-crumb { font-size: 12px; color: #6b7280; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srp-serp-title { font-size: 20px; line-height: 1.3; color: #1d4ed8; margin: 0 0 6px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.srp-serp-mobile .srp-serp-title { font-size: 16px; white-space: normal; line-height: 1.35; }
.srp-serp-desc { font-size: 14px; line-height: 1.5; color: #4b5563; margin: 0; word-break: break-word; }
.srp-serp-desc b { font-weight: 700; color: #23272f; }
.srp-serp-desc .srp-date { color: #6b7280; }
.srp-placeholder { opacity: .55; font-style: italic; }
.srp-status { font-size: .8em; color: #6b7280; margin-top: 12px; }
.srp-status:empty { display: none; }

@media (max-width: 900px) {
    .srp-layout { grid-template-columns: minmax(0, 1fr); }
    .srp-limits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .srp-card { padding: 18px; }
    .srp-title-bar { margin: -18px -18px 18px; }
    .srp-two { grid-template-columns: 1fr; }
    .srp-serp { padding: 14px; }
    .srp-serp-desktop .srp-serp-title { white-space: normal; }
    .srp-actions { width: 100%; }
    .srp-btn { flex: 1; justify-content: center; }
}
