.skyseo-editor-settings,
.skyseo-editor-panel {
    --skyseo-panel-border: #d8e1ec;
    --skyseo-panel-bg: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    --skyseo-panel-blue: #0f5ea8;
    --skyseo-panel-muted: #64748b;
}

.skyseo-editor-grid,
.skyseo-editor-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.skyseo-editor-card {
    background: var(--skyseo-panel-bg);
    border: 1px solid var(--skyseo-panel-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.skyseo-editor-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.skyseo-editor-check,
.skyseo-editor-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.skyseo-editor-panel {
    border: 1px solid var(--skyseo-panel-border);
    border-radius: 22px;
    background: var(--skyseo-panel-bg);
    padding: 18px;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
}

.skyseo-editor-tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px;
    border-radius: 999px;
    background: #f0f6fd;
}

.skyseo-editor-tab {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
}

.skyseo-editor-tab.is-active {
    background: #fff;
    color: var(--skyseo-panel-blue);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.skyseo-editor-panel-body {
    display: none;
}

.skyseo-editor-panel-body.is-active {
    display: block;
}

.skyseo-serp-preview {
    background: #fff;
    border: 1px solid var(--skyseo-panel-border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
}

.skyseo-serp-kicker {
    color: #15803d;
    font-size: 12px;
    margin-bottom: 6px;
}

.skyseo-serp-title {
    color: #1a0dab;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 5px;
}

.skyseo-serp-url {
    color: #0f766e;
    font-size: 13px;
    margin-bottom: 8px;
}

.skyseo-serp-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.skyseo-editor-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skyseo-editor-fields label {
    display: block;
    margin-bottom: 6px;
}

.skyseo-editor-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.skyseo-editor-hints {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--skyseo-panel-muted);
    font-size: 12px;
}

.skyseo-editor-column small {
    display: block;
    margin-top: 4px;
    color: var(--skyseo-panel-muted);
    line-height: 1.5;
}

.skyseo-link-review {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skyseo-link-review-head,
.skyseo-link-review-history-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.skyseo-link-review-head h4,
.skyseo-link-review-history-head h4 {
    margin: 0 0 6px;
}

.skyseo-link-review-head p,
.skyseo-link-review-history-head span {
    margin: 0;
    color: var(--skyseo-panel-muted);
}

.skyseo-link-review-message {
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    border: 1px solid #dbe3ee;
}

.skyseo-link-review-message.is-info {
    display: block;
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.skyseo-link-review-message.is-success {
    display: block;
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.skyseo-link-review-message.is-error {
    display: block;
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.skyseo-link-review-suggestions,
.skyseo-link-review-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skyseo-link-review-empty {
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fbff;
    color: var(--skyseo-panel-muted);
}

.skyseo-link-suggestion-card,
.skyseo-link-history-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--skyseo-panel-border);
    background: #fff;
}

.skyseo-link-suggestion-main,
.skyseo-link-history-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skyseo-link-suggestion-head,
.skyseo-link-history-headline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: #0f172a;
}

.skyseo-link-suggestion-head a,
.skyseo-link-history-headline a {
    color: var(--skyseo-panel-blue);
    text-decoration: none;
    font-weight: 700;
}

.skyseo-link-history-arrow {
    color: var(--skyseo-panel-muted);
}

.skyseo-gutenberg-score-button.components-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 116px;
    height: 36px;
    margin-right: 8px;
    padding: 0 10px 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.skyseo-gutenberg-score-button.components-button:hover,
.skyseo-gutenberg-score-button.components-button:focus {
    color: #0f172a;
    border-color: #0f5ea8;
    background: #f8fbff;
    box-shadow: 0 0 0 1px #0f5ea8;
}

.skyseo-gutenberg-score-button .skyseo-score-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 22px;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(135deg, #0f5ea8, #14919b);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.skyseo-gutenberg-score-button .skyseo-score-copy {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.skyseo-gutenberg-score-button .skyseo-score-copy strong {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.skyseo-gutenberg-score-button .skyseo-score-copy small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.skyseo-gutenberg-score-button.components-button.is-ok {
    border-color: #d7a21f;
    background: #fffdf2;
}

.skyseo-gutenberg-score-button.components-button.is-ok .skyseo-score-mark {
    background: linear-gradient(135deg, #b7791f, #d69e2e);
}

.skyseo-gutenberg-score-button.components-button.is-ok:hover,
.skyseo-gutenberg-score-button.components-button.is-ok:focus {
    border-color: #b7791f;
    background: #fff8db;
    box-shadow: 0 0 0 1px #b7791f;
}

.skyseo-gutenberg-score-button.components-button.is-good {
    border-color: #38a169;
    background: #f4fff8;
}

.skyseo-gutenberg-score-button.components-button.is-good .skyseo-score-mark {
    background: linear-gradient(135deg, #15803d, #0f766e);
}

.skyseo-gutenberg-score-button.components-button.is-good:hover,
.skyseo-gutenberg-score-button.components-button.is-good:focus {
    border-color: #15803d;
    background: #ecfdf3;
    box-shadow: 0 0 0 1px #15803d;
}

.skyseo-gutenberg-score-button.components-button.is-bad {
    border-color: #d96b62;
    background: #fffafa;
}

.skyseo-gutenberg-score-button.components-button.is-bad .skyseo-score-mark {
    background: linear-gradient(135deg, #b42318, #d96b62);
}

.skyseo-gutenberg-plugin-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #0f5ea8;
}

.skyseo-gutenberg-sidebar .components-panel {
    border: 0;
}

.skyseo-gutenberg-sidebar .components-panel__body {
    padding: 0;
}

.skyseo-gutenberg-panel.skyseo-editor-panel {
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: #fff;
}

.skyseo-gutenberg-tabs.skyseo-editor-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d8e1ec;
    border-radius: 0;
    background: #f8fafc;
}

.skyseo-gutenberg-tab.skyseo-editor-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 58px;
    padding: 8px 4px;
    border-radius: 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.2;
}

.skyseo-gutenberg-tab.skyseo-editor-tab .dashicons {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    font-size: 20px;
}

.skyseo-gutenberg-tab.skyseo-editor-tab.is-active {
    color: #0f5ea8;
    background: #fff;
    box-shadow: inset 0 -3px 0 #0f5ea8;
}

.skyseo-gutenberg-panel .skyseo-editor-panel-body {
    padding: 16px;
}

.skyseo-gutenberg-panel h3 {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.3;
}

.skyseo-gutenberg-panel .skyseo-serp-preview {
    border-radius: 8px;
    padding: 14px;
}

.skyseo-gutenberg-panel .skyseo-serp-title {
    font-size: 18px;
}

.skyseo-gutenberg-panel .seo-field-container {
    position: relative;
}

.skyseo-gutenberg-panel .seo-field-container input[type="text"],
.skyseo-gutenberg-panel .seo-field-container textarea {
    width: 100%;
}

.skyseo-gutenberg-panel .seo-score {
    position: absolute;
    right: 0;
    top: 2px;
}

.skyseo-gutenberg-panel .character-count {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    text-align: right;
}

.skyseo-gutenberg-panel .skyseo-editor-footer,
.skyseo-gutenberg-panel .skyseo-link-review-head,
.skyseo-gutenberg-panel .skyseo-link-review-history-head,
.skyseo-gutenberg-panel .skyseo-link-suggestion-card,
.skyseo-gutenberg-panel .skyseo-link-history-item {
    flex-direction: column;
    align-items: stretch;
}

.skyseo-gutenberg-panel .skyseo-editor-hints {
    flex-direction: column;
    gap: 6px;
}

.skyseo-gutenberg-panel .skyseo-editor-columns,
.skyseo-gutenberg-panel .skyseo-gutenberg-advanced {
    grid-template-columns: 1fr;
}

.skyseo-gutenberg-panel .skyseo-media-flex {
    display: flex;
    gap: 8px;
}

.skyseo-gutenberg-panel .skyseo-media-flex input {
    min-width: 0;
}

.skyseo-gutenberg-panel .skyseo-social-preview-wrap {
    border-radius: 8px;
}

.skyseo-score-accordion {
    margin-top: 16px;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.skyseo-score-accordion-toggle {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px;
    border: 0;
    background: #f8fafc;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.skyseo-score-accordion-toggle:hover,
.skyseo-score-accordion-toggle:focus {
    background: #f1f7fd;
    outline: none;
}

.skyseo-score-ring {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 4px solid #d96b62;
    border-radius: 50%;
    background: #fff;
}

.skyseo-score-accordion.is-ok .skyseo-score-ring {
    border-color: #d7a21f;
}

.skyseo-score-accordion.is-good .skyseo-score-ring {
    border-color: #38a169;
}

.skyseo-score-ring strong {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.skyseo-score-ring small {
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.skyseo-score-heading {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.skyseo-score-heading strong {
    font-size: 14px;
    line-height: 1.3;
}

.skyseo-score-heading small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
}

.skyseo-score-accordion-toggle > .dashicons {
    color: #64748b;
}

.skyseo-score-accordion-body {
    padding: 12px;
}

.skyseo-score-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.skyseo-score-metrics span {
    padding: 7px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.skyseo-score-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.skyseo-score-checks li {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    padding: 9px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

.skyseo-score-checks li.is-pass {
    border-color: #bbf7d0;
    background: #f7fef9;
}

.skyseo-score-checks li.is-fail {
    border-color: #fee2e2;
    background: #fffafa;
}

.skyseo-score-check-icon {
    width: 20px;
    height: 20px;
    font-size: 18px;
}

.skyseo-score-checks li.is-pass .skyseo-score-check-icon {
    color: #15803d;
}

.skyseo-score-checks li.is-fail .skyseo-score-check-icon {
    color: #b42318;
}

.skyseo-score-check-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.skyseo-score-check-copy strong {
    font-size: 12px;
    line-height: 1.3;
}

.skyseo-score-check-copy small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.skyseo-score-check-points {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.skyseo-link-suggestion-meta,
.skyseo-link-history-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--skyseo-panel-muted);
    font-size: 12px;
}

.skyseo-link-suggestion-note {
    color: #b45309;
}

.skyseo-link-suggestion-snippet,
.skyseo-link-history-snippet {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #d7e6f7;
}

.skyseo-link-suggestion-snippet-label,
.skyseo-link-history-snippet-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f5ea8;
}

.skyseo-link-suggestion-snippet p,
.skyseo-link-history-snippet p {
    margin: 0;
    color: #334155;
    line-height: 1.55;
}

.skyseo-link-suggestion-snippet mark,
.skyseo-link-history-snippet mark {
    background: #fde68a;
    color: #854d0e;
    padding: 0 2px;
    border-radius: 4px;
}

.skyseo-link-history-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.skyseo-link-history-badge-inline {
    background: #dbeafe;
    color: #1d4ed8;
}

.skyseo-link-history-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.skyseo-il-delete-applied {
    padding: 0 4px !important;
    min-height: 26px !important;
    line-height: 24px !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
    background: transparent !important;
}

.skyseo-il-delete-applied:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
}

.skyseo-il-delete-applied.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 960px) {

    .skyseo-editor-grid,
    .skyseo-editor-columns {
        grid-template-columns: 1fr;
    }

    .skyseo-link-suggestion-card,
    .skyseo-link-history-item {
        flex-direction: column;
    }
}

.skyseo-term-full-width td {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.skyseo-social-nav {
    display: flex;
    border-bottom: 1px solid #c3c4c7;
    margin-bottom: 15px;
}

.skyseo-social-tab {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #50575e;
}

.skyseo-social-tab.is-active {
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
}

.skyseo-social-panel {
    display: none;
}

.skyseo-social-panel.is-active {
    display: block;
}

.skyseo-social-preview-wrap {
    max-width: 500px;
    border: 1px solid #dadde1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
}

.facebook-preview .skyseo-social-content {
    padding: 10px 12px;
    background: #f2f3f5;
    border-top: 1px solid #dadde1;
}

.twitter-preview .skyseo-social-content {
    padding: 10px 12px;
    border-top: 1px solid #dadde1;
}

.skyseo-social-domain {
    font-size: 12px;
    color: #606770;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.skyseo-social-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 4px;
    line-height: 1.2;
}

.skyseo-social-desc {
    font-size: 14px;
    color: #606770;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skyseo-social-image-placeholder {
    height: 261px;
    background: #e9ebee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #90949c;
    overflow: hidden;
}

.skyseo-social-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skyseo-media-flex {
    display: flex;
    gap: 10px;
}

/* ---- Taxonomy Featured Image ---- */
.skyseo-term-featured-image-field {
    margin-bottom: 16px;
}

.skyseo-term-image-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skyseo-term-image-preview {
    min-height: 40px;
}

.skyseo-term-image-preview img {
    display: block;
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.skyseo-term-upload-image,
.skyseo-term-remove-image {
    margin-right: 6px !important;
}
