.kbyte-seo-workbench-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.kbyte-seo-workbench-wrap h1 {
    margin-bottom: 18px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.kbyte-seo-workbench-wrap .button,
.kbyte-seo-workbench-wrap button,
.kbyte-seo-workbench-wrap input[type="button"],
.kbyte-seo-workbench-wrap input[type="submit"],
.kbyte-seo-workbench-wrap input[type="reset"],
.kbyte-seo-workbench-wrap .nav-tab,
.kbyte-seo-workbench-wrap .seo-workbench__tab,
.kbyte-seo-workbench-wrap .seo-search-layout__toggle-btn,
.kbyte-seo-workbench-root .button,
.kbyte-seo-workbench-root button,
.kbyte-seo-workbench-root input[type="button"],
.kbyte-seo-workbench-root input[type="submit"],
.kbyte-seo-workbench-root input[type="reset"],
.kbyte-seo-workbench-root .nav-tab,
.kbyte-seo-workbench-root .seo-workbench__tab,
.kbyte-seo-workbench-root .seo-search-layout__toggle-btn,
#kbyte-seo-workbench-elementor-tab,
#kbyte-seo-workbench-elementor-toggle,
#kbyte-seo-workbench-elementor-wrapper .button {
    appearance: none;
    border: 1px solid #cfd8e3;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    color: #0f172a;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 18px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}

.kbyte-seo-workbench-wrap .seo-button,
.kbyte-seo-workbench-wrap .seo-button.button,
#kbyte-seo-workbench-generate-ai,
#kbyte-seo-workbench-save-meta,
#kbyte-seo-workbench-elementor-tab,
#kbyte-seo-workbench-elementor-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

#kbyte-seo-workbench-elementor-tab {
    position: fixed;
    top: 130px;
    right: 20px;
    z-index: 2147483001;
    border: 1px solid #0f766e;
    border-radius: 7px;
    background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.24);
}

.kbyte-seo-workbench-wrap .seo-button--small,
#kbyte-seo-workbench-elementor-toggle.seo-button--small {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
}

#kbyte-seo-workbench-generate-ai,
#kbyte-seo-workbench-save-meta {
    border-color: #0f766e;
    background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.22);
}

#kbyte-seo-workbench-generate-ai:hover,
#kbyte-seo-workbench-save-meta:hover {
    border-color: #0d9488;
    box-shadow: 0 14px 24px rgba(15, 118, 110, 0.28);
}

.seo-elementor-actions .seo-button {
    min-width: 154px;
}

.seo-ai-generator__actions .seo-button {
    min-width: 182px;
}

.kbyte-seo-workbench-wrap .button:hover,
.kbyte-seo-workbench-wrap button:hover,
.kbyte-seo-workbench-wrap input[type="button"]:hover,
.kbyte-seo-workbench-wrap input[type="submit"]:hover,
.kbyte-seo-workbench-wrap input[type="reset"]:hover,
.kbyte-seo-workbench-wrap .nav-tab:hover,
.kbyte-seo-workbench-wrap .seo-workbench__tab:hover,
.kbyte-seo-workbench-wrap .seo-search-layout__toggle-btn:hover,
#kbyte-seo-workbench-elementor-tab:hover,
#kbyte-seo-workbench-elementor-toggle:hover,
#kbyte-seo-workbench-elementor-wrapper .button:hover {
    transform: translateY(-1px);
    border-color: #9fb1c7;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.04), 0 12px 22px rgba(15, 23, 42, 0.08);
}

.kbyte-seo-workbench-wrap .button:active,
.kbyte-seo-workbench-wrap button:active,
.kbyte-seo-workbench-wrap input[type="button"]:active,
.kbyte-seo-workbench-wrap input[type="submit"]:active,
.kbyte-seo-workbench-wrap input[type="reset"]:active,
.kbyte-seo-workbench-wrap .nav-tab:active,
.kbyte-seo-workbench-wrap .seo-workbench__tab:active,
.kbyte-seo-workbench-wrap .seo-search-layout__toggle-btn:active,
#kbyte-seo-workbench-elementor-tab:active,
#kbyte-seo-workbench-elementor-toggle:active,
#kbyte-seo-workbench-elementor-wrapper .button:active {
    transform: translateY(0);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.kbyte-seo-workbench-wrap .button:focus-visible,
.kbyte-seo-workbench-wrap button:focus-visible,
.kbyte-seo-workbench-wrap input[type="button"]:focus-visible,
.kbyte-seo-workbench-wrap input[type="submit"]:focus-visible,
.kbyte-seo-workbench-wrap input[type="reset"]:focus-visible,
.kbyte-seo-workbench-wrap .nav-tab:focus-visible,
.kbyte-seo-workbench-wrap .seo-workbench__tab:focus-visible,
.kbyte-seo-workbench-wrap .seo-search-layout__toggle-btn:focus-visible,
#kbyte-seo-workbench-elementor-tab:focus-visible,
#kbyte-seo-workbench-elementor-toggle:focus-visible,
#kbyte-seo-workbench-elementor-wrapper .button:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

.kbyte-seo-workbench-wrap .button-primary,
.kbyte-seo-workbench-wrap .button.button-primary,
.kbyte-seo-workbench-wrap input.button-primary,
.kbyte-seo-workbench-wrap input[type="submit"].button-primary,
.kbyte-seo-workbench-wrap .nav-tab.nav-tab-active,
.kbyte-seo-workbench-wrap .seo-workbench__tab.is-active,
.kbyte-seo-workbench-wrap .seo-search-layout__toggle-btn.is-active,
#kbyte-seo-workbench-elementor-tab.is-active,
#kbyte-seo-workbench-elementor-toggle.is-active {
    border-color: #0f766e;
    background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.22);
}

.kbyte-seo-workbench-wrap .button-secondary,
.kbyte-seo-workbench-wrap .button.button-secondary,
.kbyte-seo-workbench-wrap input.button-secondary,
.kbyte-seo-workbench-wrap input[type="submit"].button-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    border-color: #bfd0e3;
}

.kbyte-seo-workbench-wrap .button-link,
.kbyte-seo-workbench-wrap .button-link-delete {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #0f766e;
    text-decoration: none;
}

.kbyte-seo-workbench-wrap .button-link:hover,
.kbyte-seo-workbench-wrap .button-link-delete:hover {
    border-color: transparent;
    box-shadow: none;
    color: #115e59;
    text-decoration: underline;
}

.kbyte-seo-workbench-wrap .button-link-delete {
    color: #b91c1c;
}

.kbyte-seo-workbench-wrap .button-link-delete:hover {
    color: #991b1b;
}

.kbyte-seo-workbench-wrap .button[disabled],
.kbyte-seo-workbench-wrap button[disabled],
.kbyte-seo-workbench-wrap input[disabled],
.kbyte-seo-workbench-wrap .button.disabled,
.kbyte-seo-workbench-wrap button.disabled,
#kbyte-seo-workbench-elementor-tab[disabled],
#kbyte-seo-workbench-elementor-toggle[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.seo-dashboard {
    margin: 20px 0;
}

.seo-dashboard-shell {
    display: grid;
    gap: 18px;
}

.seo-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid #d7e3ea;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.seo-dashboard-hero h1 {
    margin: 0 0 6px;
}

.seo-dashboard-hero p {
    margin: 0;
    color: #475569;
    max-width: 660px;
}

.seo-dashboard-hero__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.seo-dashboard-progress {
    flex: 1 0 100%;
    min-height: 18px;
    font-size: 12px;
    color: #0f766e;
}

.seo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.seo-stats--dashboard {
    margin-bottom: 0;
}

.stat-card {
    background: #fff;
    border: 1px solid #d7e3ea;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.stat-card h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

.score-badge {
    display: inline-block;
    padding: 5px 10px;
    background: #e0e0e0;
    border-radius: 3px;
    font-size: 12px;
}

.seo-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.wp-list-table {
    margin-top: 20px;
}

.wp-list-table th {
    background: #f9f9f9;
    font-weight: 600;
}

.kbyte-seo-workbench-settings-form {
    max-width: 980px;
    background: #fff;
    border: 1px solid #d7e3ea;
    border-radius: 12px;
    padding: 18px 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.kbyte-seo-workbench-settings-form h2 {
    margin-top: 24px;
    margin-bottom: 8px;
}

.kbyte-seo-workbench-settings-form .form-table th {
    width: 240px;
}

.kbyte-seo-workbench-settings-form input[type="number"] {
    width: 110px;
}

.kbyte-seo-workbench-settings-form .form-table td span {
    display: inline-block;
    margin: 0 8px;
    color: #334155;
}

.seo-settings-tabs {
    max-width: 1080px;
}

.seo-settings-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid #dbe5ec;
    overflow-x: auto;
    padding: 0 0 10px;
}

.seo-settings-tabs__nav .nav-tab {
    margin-left: 0;
    margin-bottom: 0;
    padding: 11px 16px;
    border-radius: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.seo-settings-tabs__nav .nav-tab:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    box-shadow: none;
}

.seo-settings-form {
    max-width: 1080px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: grid;
    gap: 18px;
}

.seo-settings-panel {
    display: none;
}

.seo-settings-panel.is-active {
    display: grid;
    gap: 18px;
    align-content: start;
}

.seo-settings-card {
    background: #fff;
    border: 1px solid #dbe5ec;
    border-radius: 16px;
    padding: 20px 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.seo-settings-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 18px;
}

.seo-settings-card .form-table {
    margin-top: 0;
}

.seo-settings-card .wp-list-table {
    margin-top: 12px;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table {
    table-layout: fixed;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table th,
.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td {
    vertical-align: middle;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table th,
.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td {
    min-width: 0;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table input[type="text"],
.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table input[type="url"] {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table th:nth-child(1),
.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td:nth-child(1) {
    width: 26%;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table th:nth-child(2),
.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td:nth-child(2) {
    width: 80px;
    text-align: center;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table th:nth-child(3),
.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td:nth-child(3) {
    width: 44%;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table th:nth-child(4),
.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td:nth-child(4) {
    width: 80px;
    white-space: nowrap;
    text-align: right;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table th:nth-child(5),
.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td:nth-child(5) {
    width: 170px;
    white-space: nowrap;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table th:nth-child(6),
.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td:nth-child(6) {
    width: 120px;
    white-space: nowrap;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] .wp-list-table td:nth-child(6) label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.seo-settings-panel[data-seo-settings-panel="redirects"] #kbyte-seo-workbench-redirects-delete-all {
    margin-left: 0;
}

.seo-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.seo-tools-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.seo-tools-header-row h2,
.seo-tools-header-row p {
    margin-top: 0;
}

.seo-tools-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.kbyte-seo-workbench-wrap input[type="text"],
.kbyte-seo-workbench-wrap input[type="url"],
.kbyte-seo-workbench-wrap input[type="email"],
.kbyte-seo-workbench-wrap input[type="number"],
.kbyte-seo-workbench-wrap input[type="password"],
.kbyte-seo-workbench-wrap select,
.kbyte-seo-workbench-wrap textarea {
    border-color: #cfd8e3;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.kbyte-seo-workbench-wrap input[type="text"]:focus,
.kbyte-seo-workbench-wrap input[type="url"]:focus,
.kbyte-seo-workbench-wrap input[type="email"]:focus,
.kbyte-seo-workbench-wrap input[type="number"]:focus,
.kbyte-seo-workbench-wrap input[type="password"]:focus,
.kbyte-seo-workbench-wrap select:focus,
.kbyte-seo-workbench-wrap textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.kbyte-seo-workbench-wrap .description {
    color: #475569;
}

.seo-rank-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.seo-rank-stat {
    padding: 14px;
    border: 1px solid #d7e3ea;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.seo-rank-stat__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.seo-rank-stat__value {
    font-size: 24px;
    line-height: 1.1;
    color: #0f172a;
}

.seo-rank-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.seo-rank-form-grid label {
    display: grid;
    gap: 6px;
}

.seo-rank-form-grid label span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.seo-rank-form-grid input[type="text"],
.seo-rank-form-grid input[type="url"],
.seo-rank-form-grid input[type="number"] {
    width: 100%;
}

.seo-rank-market-fields input {
    margin-right: 8px;
    margin-bottom: 6px;
}

.seo-media-picker {
    display: grid;
    gap: 8px;
}

.seo-media-picker__row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.seo-media-picker__row .seo-media-picker__input {
    flex: 1 1 320px;
}

.seo-media-picker__clear {
    color: #b42318;
}

.seo-media-picker__clear:hover,
.seo-media-picker__clear:focus {
    color: #8a1111;
}

.seo-settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    margin-bottom: 18px;
}

.seo-settings-tabs>.seo-settings-card {
    margin-top: 0;
}

.seo-dashboard-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid #d7e3ea;
    border-radius: 14px;
    background: #fff;
}

.seo-dashboard-filters label {
    display: grid;
    gap: 5px;
}

.seo-dashboard-filters label span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475569;
}

.seo-dashboard-filters input[type="search"],
.seo-dashboard-filters select {
    min-height: 38px;
    border-color: #cbd5e1;
    border-radius: 10px;
}

.seo-dashboard-filters__actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.seo-audit-table td,
.seo-audit-table th {
    vertical-align: middle;
}

.seo-audit-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
}

.seo-audit-table {
    min-width: 940px;
    margin-top: 0;
}

.block-editor-page #kbyte-seo-workbench-meta .inside {
    padding: 24px 20px 28px;
    background:
        radial-gradient(circle at top left, rgba(14, 116, 144, 0.08), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.block-editor-page #kbyte-seo-workbench-root {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
}

#kbyte-seo-workbench-elementor-wrapper {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2147483000;
    width: min(460px, calc(100vw - 40px));
    max-height: calc(100vh - 110px);
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
}

#kbyte-seo-workbench-elementor-wrapper.is-hidden {
    display: none;
}

.kbyte-seo-workbench-elementor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.kbyte-seo-workbench-elementor-header strong {
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#kbyte-seo-workbench-elementor-wrapper.is-collapsed {
    width: 180px;
}

.kbyte-seo-workbench-elementor-content {
    padding: 10px;
    max-height: calc(100vh - 160px);
    overflow: auto;
}

#kbyte-seo-workbench-elementor-wrapper #kbyte-seo-workbench-root {
    width: 100%;
    margin: 0;
}

#kbyte-seo-workbench-elementor-wrapper #kbyte-seo-workbench-meta-panel {
    gap: 7px;
}

.seo-elementor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.seo-elementor-save-message {
    font-size: 11px;
    line-height: 1.2;
    color: #64748b;
}

.seo-elementor-save-message.is-success {
    color: #166534;
}

.seo-elementor-save-message.is-error {
    color: #991b1b;
}

.block-editor-page #kbyte-seo-workbench-meta-panel {
    display: grid;
    gap: 10px;
    margin-top: 0;
    width: 80%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.block-editor-page #kbyte-seo-workbench-meta-panel.kbyte-seo-workbench-compact {
    gap: 8px;
}

.seo-score-box {
    display: grid;
    justify-items: center;
    padding: 14px;
    border: 1px solid #d7e3ea;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.kbyte-seo-workbench-compact .seo-score-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
}

.seo-score-box__label {
    text-align: center;
    margin: 0 0 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef6fb;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kbyte-seo-workbench-compact .seo-score-box__label {
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 19px;
    text-transform: none;
}

.seo-score-circle {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    width: 82px;
    height: 82px;
    line-height: 82px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.kbyte-seo-workbench-compact .seo-score-circle {
    width: auto;
    min-width: 86px;
    height: 34px;
    line-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 19px;
    box-shadow: none;
    flex: 0 0 auto;
}

.seo-score-circle[data-score-level="good"] {
    background: #1f9d55;
}

.seo-score-circle[data-score-level="medium"] {
    background: #f59e0b;
    color: #1f2937;
}

.seo-score-circle[data-score-level="bad"] {
    background: #dc2626;
}

.seo-analysis-details {
    border: 1px solid #d7e3ea !important;
    border-radius: 12px;
    background: #fff !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.seo-analysis-details h4 {
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #0f172a;
}

.seo-analysis-details--compact {
    padding: 0 0px 18px !important;
    margin-bottom: 0 !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
}

.seo-analysis-details__title {
    margin: 0 0 4px !important;
}

.seo-analysis-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.seo-analysis-header #kbyte-seo-workbench-readability-details {
    flex: 1 0 100%;
}

.seo-analysis-summary {
    margin: 0 !important;
    font-size: 11px;
    color: #475569;
}

.seo-analysis-summary[data-seo-summary-level="attention"] {
    color: #9a3412;
}

.seo-analysis-summary[data-seo-summary-level="good"] {
    color: #166534;
}

.seo-analysis-totals {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.seo-analysis-total {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.seo-analysis-total[data-seo-total-level="bad"] {
    background: #fff1f1;
    color: #991b1b;
}

.seo-analysis-total[data-seo-total-level="good"] {
    background: #edfdf3;
    color: #166534;
}

.seo-analysis-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 5px;
}

.seo-analysis-list--secondary {
    margin-top: 8px;
}

.seo-analysis-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 7px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 11px;
    line-height: 1.2;
}

.seo-analysis-item__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    flex: 0 0 16px;
    font-size: 9px;
    font-weight: 700;
}

.seo-analysis-item strong {
    margin-right: 4px;
}

.seo-analysis-item[data-seo-level="good"] {
    color: #14532d;
    background: #edfdf3;
    border-color: #b7ebc6;
}

.seo-analysis-item[data-seo-level="good"] .seo-analysis-item__badge {
    background: #1f9d55;
    color: #fff;
}

.seo-analysis-item[data-seo-level="medium"] {
    color: #9a5a00;
    background: #fff7e8;
    border-color: #f9d58b;
}

.seo-analysis-item[data-seo-level="medium"] .seo-analysis-item__badge {
    background: #f59e0b;
    color: #fff;
}

.seo-analysis-item[data-seo-level="bad"] {
    color: #991b1b;
    background: #fff1f1;
    border-color: #f4b3b3;
}

.seo-analysis-item[data-seo-level="bad"] .seo-analysis-item__badge {
    background: #dc2626;
    color: #fff;
}

.seo-readability-details {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #f9d58b;
    border-radius: 12px;
    background: #fff7e8;
}

.seo-readability-details__title {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #9a5a00;
}

.seo-readability-details__intro {
    margin: 10px 0 10px !important;
    font-size: 11px;
    color: #7c2d12;
}

.seo-readability-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.seo-readability-list__item {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    background: #fff;
}

.seo-readability-list__count {
    display: inline-flex;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 10px;
    font-weight: 700;
}

.seo-readability-list__text {
    color: #431407;
    line-height: 1.45;
    word-break: break-word;
}

.seo-analysis-more {
    margin-top: 10px;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

.seo-analysis-more summary {
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}

.block-editor-page #kbyte-seo-workbench-meta-panel p {
    margin: 0;
}

.block-editor-page #kbyte-seo-workbench-meta-panel label strong {
    display: inline-block;
    margin-bottom: 3px;
    color: #0f172a;
}

.seo-meta-card {
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: 18px 20px;
}

.seo-meta-card--collapsible>summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seo-meta-card--collapsible>summary::-webkit-details-marker {
    display: none;
}

.seo-meta-card__title--toggle {
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 700;
}

.seo-meta-card__title--toggle::after {
    content: "▾";
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    transition: transform 0.18s ease;
}

.seo-meta-card--collapsible[open] .seo-meta-card__title--toggle {
    margin-bottom: 6px;
}

.seo-meta-card--collapsible[open] .seo-meta-card__title--toggle::after {
    transform: rotate(180deg);
}

.seo-meta-card__title {
    margin: 14px 0 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #374151;
}

.seo-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 0;
}

.seo-meta-grid--tight {
    margin-top: 0;
}

.seo-field {
    min-width: 0;
}

.seo-field input[type="text"],
.seo-field input[type="url"],
.seo-field input[type="email"],
.seo-field input[type="number"],
.seo-field input[type="password"],
.seo-field select,
.seo-field textarea {
    margin-top: 0;
    margin-bottom: 0;
}

.seo-search-layout__fields>.seo-field-count,
.seo-meta-grid>.seo-field-count {
    margin-top: 0 !important;
}

.seo-field--full {
    grid-column: 1 / -1;
}

.seo-field label {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.seo-field label strong {
    font-weight: 700;
    color: inherit;
}

.seo-inline-note {
    margin-top: 8px !important;
    font-size: 11px;
    line-height: 1.4;
    color: #475569;
}

.block-editor-page #kbyte-seo-workbench-meta-panel .seo-field-count,
.seo-field-count {
    display: block;
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.2;
    color: #64748b;
}

.seo-field-count--full {
    grid-column: 1 / -1;
}

.seo-field-count[data-seo-state="good"] {
    color: #166534 !important;
}

.seo-field-count[data-seo-state="warn"] {
    color: #9a5a00 !important;
}

.seo-field-count[data-seo-state="bad"] {
    color: #991b1b !important;
}

.seo-extra-keywords {
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f8fafc;
    padding: 6px 8px;
}

.seo-extra-keywords summary {
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
    user-select: none;
}

.seo-extra-keywords[open] summary {
    margin-bottom: 6px;
}

.block-editor-page #kbyte-seo-workbench-meta-panel input[type="text"],
.block-editor-page #kbyte-seo-workbench-meta-panel input[type="url"],
.block-editor-page #kbyte-seo-workbench-meta-panel input[type="email"],
.block-editor-page #kbyte-seo-workbench-meta-panel select,
.block-editor-page #kbyte-seo-workbench-meta-panel textarea {
    width: 100% !important;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 14px;
    line-height: 1.35;
    color: #0f172a;
    box-sizing: border-box;
    margin-bottom: 0;
}

.block-editor-page #kbyte-seo-workbench-meta-panel input[type="text"]:focus,
.block-editor-page #kbyte-seo-workbench-meta-panel input[type="url"]:focus,
.block-editor-page #kbyte-seo-workbench-meta-panel input[type="email"]:focus,
.block-editor-page #kbyte-seo-workbench-meta-panel select:focus,
.block-editor-page #kbyte-seo-workbench-meta-panel textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
    outline: 0;
}

.block-editor-page #kbyte-seo-workbench-meta-panel input[type="text"],
.block-editor-page #kbyte-seo-workbench-meta-panel input[type="url"],
.block-editor-page #kbyte-seo-workbench-meta-panel input[type="email"],
.block-editor-page #kbyte-seo-workbench-meta-panel select {
    min-height: 42px;
}

.block-editor-page #kbyte-seo-workbench-summary {
    padding: 5px 7px;
    border-radius: 8px;
    background: #fff8e8;
    font-size: 11px;
    line-height: 1.2;
}

.seo-robots-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
}

.seo-robots-options+.seo-robots-options {
    margin-top: 12px;
}

.seo-robots-options--stacked {
    grid-template-columns: minmax(0, 1fr);
}

.seo-robots-options__title {
    grid-column: 1 / -1;
    margin: 0 0 2px !important;
    font-size: 12px;
}

.seo-robots-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 3px 8px;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
}

.seo-robots-option input[type="checkbox"] {
    margin: 0;
}

.seo-robots-options--stacked .seo-robots-option {
    justify-self: start;
}

.seo-ai-generator {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.seo-ai-generator__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.seo-ai-generator__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.seo-ai-generator__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    margin: 8px 10px 0 10px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

#kbyte-seo-workbench-meta-panel .seo-ai-generator__topbar :is(.seo-button, .button) {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.1;
}

.seo-ai-generator__actions--top {
    margin: 0;
}

.seo-ai-generator__message {
    margin-top: 10px;
    min-height: 20px;
    font-size: 13px;
    font-weight: 600;
}

.seo-ai-generator__message--top {
    margin: 0;
    min-height: 0;
    font-weight: 600;
    flex: 1;
    text-align: left;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-editor-page #kbyte-seo-workbench-meta-panel .seo-ai-generator__message--top,
#kbyte-seo-workbench-elementor-wrapper #kbyte-seo-workbench-meta-panel .seo-ai-generator__message--top {
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.seo-ai-generator__message.is-success {
    color: #166534;
}

.seo-ai-generator__message.is-error {
    color: #b42318;
}

.seo-ai-generator__results {
    margin-top: 12px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    position: relative;
}

.seo-ai-generator__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.seo-ai-generator__close:hover {
    border-color: #9fb1c7;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 10px 18px rgba(15, 23, 42, 0.08);
}

.seo-ai-generator__close:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.seo-ai-generator__results--top {
    margin-top: 10px;
}

.button.seo-is-busy,
.seo-button.seo-is-busy {
    position: relative;
    padding-right: 34px;
}

.button.seo-is-busy::after,
.seo-button.seo-is-busy::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: seo-spinner 0.7s linear infinite;
    pointer-events: none;
}

.button.button-secondary.seo-is-busy::after {
    border-color: rgba(15, 23, 42, 0.22);
    border-top-color: rgba(15, 23, 42, 0.65);
}

@keyframes seo-spinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.seo-ai-generator__block+.seo-ai-generator__block {
    margin-top: 12px;
}

.seo-ai-generator__block strong {
    display: block;
    margin-bottom: 6px;
}

.seo-ai-generator__block ul {
    margin: 0;
    padding-left: 18px;
}

.seo-workbench {
    margin-top: 14px;
}

.seo-workbench__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #d5d9df;
    background: linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
}

.seo-workbench__tab {
    border: 1px solid #d5d9df;
    border-bottom: 0;
    background: #f8fafc;
    color: #0f766e;
    border-radius: 7px 7px 0 0 !important;
    padding: 11px 16px;
    margin: 0 0 -1px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.seo-workbench__tab.is-active {
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #fff;
    position: relative;
}

.seo-workbench__pane {
    display: none;
    border: 1px solid #d5d9df;
    border-top: 0;
    background: #fff;
}

.seo-workbench__pane.is-active {
    display: block;
}

.seo-panel-heading {
    margin: 14px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.seo-panel-accordion {
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.seo-panel-accordion:last-child {
    border-bottom: 0;
}

.seo-panel-accordion__summary {
    list-style: none;
    cursor: pointer;
    padding: 0;
    margin: 14px 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 120ms ease;
}

.seo-panel-accordion__summary:hover,
.seo-panel-accordion__summary:focus-visible {
    color: #0f172a;
}

.seo-panel-accordion__summary:focus-visible {
    outline: 2px solid #cbd5e1;
    outline-offset: 2px;
}

.seo-panel-accordion__summary::-webkit-details-marker {
    display: none;
}

.seo-panel-accordion__summary::after {
    content: "▾";
    font-size: 12px;
    color: #64748b;
    transition: transform 120ms ease, color 120ms ease;
}

.seo-panel-accordion[open] .seo-panel-accordion__summary::after {
    transform: rotate(180deg);
}

.seo-panel-accordion__title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-transform: none;
}

.seo-panel-accordion__title--large {
    font-size: 14px;
}

.seo-panel-accordion__body {
    padding: 8px 2px 8px;
}

.seo-panel-accordion--analysis {
    border-bottom: 0;
}

.seo-panel-accordion--keywords {
    margin-top: 5px;
    margin-bottom: 5px;
}

.seo-search-layout__section>.seo-panel-heading:first-child,
.seo-search-layout__section>.seo-meta-card__title:first-child,
.seo-search-layout__section>.seo-panel-accordion:first-child .seo-panel-accordion__summary,
.seo-meta-card>.seo-meta-card__title:first-child,
.seo-meta-card>.seo-meta-card__title--toggle:first-child {
    margin-top: 0;
}

.seo-keyword-analysis {
    padding: 16px 0 0;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 16px;
}

.seo-keyword-analysis:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.seo-keyword-analysis__header {
    display: block;
    margin-bottom: 12px;
}

.seo-keyword-analysis__title {
    margin: 0 0 4px;
    font-size: 14px;
    color: #374151;
}

.seo-keyword-analysis__phrase {
    margin: 0 !important;
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

.seo-keyword-analysis__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 3px;
}

.seo-keyword-analysis__item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    line-height: 1.28;
    color: #374151;
}

.seo-keyword-analysis__dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 999px;
    flex: 0 0 8px;
    background: #f59e0b;
}

.seo-keyword-analysis__item[data-seo-level="good"] .seo-keyword-analysis__dot {
    background: #84cc16;
}

.seo-keyword-analysis__item[data-seo-level="warning"] .seo-keyword-analysis__dot {
    background: #f59e0b;
}

.seo-keyword-analysis__item[data-seo-level="bad"] .seo-keyword-analysis__dot {
    background: #dc2626;
}

.seo-keyword-analysis__content strong {
    color: #1d4ed8;
    font-weight: 500;
}

.seo-related-keyword-analysis {
    margin: -2px 0 8px;
}

.seo-related-keyword-analysis__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.seo-related-keyword-analysis__item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    line-height: 1.22;
    color: #374151;
}

.seo-related-keyword-analysis__dot {
    width: 8px;
    height: 8px;
    margin-top: 4px;
    border-radius: 999px;
    flex: 0 0 8px;
    background: #f59e0b;
}

.seo-related-keyword-analysis__item[data-seo-level="good"] .seo-related-keyword-analysis__dot {
    background: #84cc16;
}

.seo-related-keyword-analysis__item[data-seo-level="warning"] .seo-related-keyword-analysis__dot {
    background: #f59e0b;
}

.seo-related-keyword-analysis__content strong {
    color: #1d4ed8;
    font-weight: 500;
}

.seo-primary-analysis {
    margin-top: 18px;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.seo-primary-analysis__summary {
    list-style: none;
    cursor: pointer;
    padding: 0;
}

.seo-primary-analysis__summary::-webkit-details-marker {
    display: none;
}

.seo-primary-analysis__headline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4b5563;
    font-size: 15px;
}

.seo-primary-analysis__headline strong {
    display: block;
    font-size: 17px;
    font-weight: 500;
    color: #4b5563;
}

.seo-primary-analysis__phrase {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
}

.seo-primary-analysis__bullet {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #22c55e;
    flex: 0 0 22px;
    position: relative;
    margin-top: 2px;
}

.seo-primary-analysis__bullet::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.seo-primary-analysis__body {
    padding-top: 16px;
}

.seo-primary-analysis__field {
    margin-bottom: 20px;
}

.seo-primary-analysis__field label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.seo-primary-analysis__results-title {
    margin: 0 0 14px;
    font-size: 14px;
    color: #374151;
}

.seo-primary-analysis__group {
    margin: 0 0 8px;
}

.seo-primary-analysis__group:last-child {
    margin-bottom: 0;
}

.seo-primary-analysis__group-summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    padding: 0;
    margin-bottom: 8px;
}

.seo-primary-analysis__group-summary::-webkit-details-marker {
    display: none;
}

.seo-keyword-analysis__list--grouped {
    gap: 3px;
    margin-left: 2px;
}

.seo-social-preview-stage {
    margin-bottom: 18px;
}

.seo-social-preview {
    display: none;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
    border: 1px solid #d7e3ea;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

.seo-social-preview.is-active {
    display: grid;
}

.seo-meta-card--search-layout {
    padding: 0;
    overflow: hidden;
}

.seo-search-layout__section {
    padding: 18px 20px;
}

.seo-search-layout__section+.seo-search-layout__section {
    border-top: 1px solid #e5e7eb;
}

.seo-search-layout__section--appearance {
    background: #fff;
}

.seo-search-layout__label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.seo-search-layout__input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.35;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
}

.seo-search-layout__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.seo-search-layout__title {
    margin: 0 0 8px !important;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: #374151;
}

.seo-search-layout__description {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}

.seo-search-layout__preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.seo-search-layout__preview-label {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.seo-search-layout__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    border-radius: 999px;
    background: #f3f4f6;
}

.seo-search-layout__toggle-btn {
    color: #6b7280;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.seo-search-layout__toggle-btn.is-active {
    border-color: #db2777;
    background: linear-gradient(135deg, #a21caf, #db2777);
    color: #fff;
    box-shadow: 0 3px 10px rgba(162, 28, 175, 0.24);
}

.seo-search-preview-stage {
    margin-bottom: 18px;
}

.seo-search-preview {
    display: none;
    width: 100%;
    max-width: calc(100% - 40px);
    padding: 20px 20px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    font-family: Arial, sans-serif;
    margin: 0 auto;
}

.seo-search-preview.is-active {
    display: block;
}

.seo-search-preview--mobile {
    max-width: 430px;
}

.seo-search-preview__device {
    margin-bottom: 10px !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.seo-search-preview__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 18px;
    align-items: end;
}

.seo-search-preview--mobile .seo-search-preview__layout {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 14px;
    align-items: start;
}

.seo-search-preview__main {
    min-width: 0;
}

.seo-search-preview__source {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.seo-search-preview__favicon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    flex: 0 0 26px;
    background:
        linear-gradient(180deg, #f5f5f5 0%, #ececec 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 1px solid #e5e7eb;
}

.seo-search-preview__source-meta {
    display: grid;
    min-width: 0;
}

.seo-search-preview__site-name {
    font-size: 14px;
    line-height: 1.15;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.seo-search-preview__title {
    display: block;
    color: #1a0dab;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 400;
    text-decoration: none;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seo-search-preview--mobile .seo-search-preview__title {
    font-size: 17px;
    line-height: 1.28;
    -webkit-line-clamp: 2;
}

.seo-search-preview__url {
    margin-top: 3px !important;
    font-size: 12px;
    line-height: 1.3;
    color: #4d5156;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seo-search-preview__description {
    margin-top: 6px !important;
    font-size: 14px;
    line-height: 1.45;
    color: #4d5156;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seo-search-preview--mobile .seo-search-preview__description {
    font-size: 13px;
    -webkit-line-clamp: 4;
}

.seo-search-preview__thumb {
    min-height: 132px;
    border-radius: 12px;
    border: 1px solid #eceff3;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.seo-search-preview__thumb.has-image {
    background-color: transparent;
}

.seo-search-preview--mobile .seo-search-preview__thumb {
    min-height: 94px;
    border-radius: 10px;
}

.seo-search-layout__fields {
    display: grid;
    column-gap: 6px;
    row-gap: 0;
}


.seo-search-layout__fields .seo-field label strong {
    display: inline-block;
    margin-bottom: 0;
}

.seo-search-layout__fields .seo-field textarea {
    min-height: 92px;
}

.seo-social-preview--mobile {
    max-width: 390px;
}

.seo-social-preview__media {
    min-height: 120px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(14, 165, 233, 0.1)),
        linear-gradient(180deg, #e2e8f0 0%, #f8fafc 100%);
    background-size: cover;
    background-position: center;
}

.seo-social-preview__media.has-image {
    background-color: #dbeafe;
}

.seo-social-preview__body {
    min-width: 0;
}

.seo-social-preview__network {
    margin-bottom: 4px !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.seo-social-preview__title {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    color: #0f172a;
}

.seo-social-preview__description {
    margin-top: 5px !important;
    font-size: 11px;
    line-height: 1.45;
    color: #475569;
}

.seo-social-preview__url {
    margin-top: 6px !important;
    font-size: 10px;
    color: #0f766e;
    word-break: break-all;
}

.seo-suggestion-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.seo-suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid #d7e3ea;
    border-radius: 9px;
    background: #f8fafc;
}

.seo-suggestion-item a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.seo-suggestion-item span {
    flex: 0 0 auto;
    font-size: 10px;
    line-height: 1;
    padding: 5px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    text-transform: uppercase;
}

.seo-schema-product-only {
    display: none;
}

@media (max-width: 782px) {
    .seo-rank-form-grid {
        grid-template-columns: 1fr;
    }

    .seo-media-picker__row {
        align-items: stretch;
    }

    .seo-media-picker__row .button,
    .seo-media-picker__row .button-link,
    .seo-media-picker__row .seo-media-picker__input {
        width: 100%;
    }

    .seo-dashboard-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .seo-dashboard-hero__actions {
        justify-content: flex-start;
    }

    .seo-dashboard-hero__actions .button {
        width: 100%;
    }

    .seo-dashboard-filters {
        grid-template-columns: 1fr;
    }

    .block-editor-page #kbyte-seo-workbench-meta .inside {
        padding: 16px 12px 20px;
    }

    .block-editor-page #kbyte-seo-workbench-root {
        width: 100%;
    }

    .seo-score-box,
    .seo-analysis-details {
        border-radius: 14px;
    }

    .seo-meta-grid,
    .seo-robots-options {
        grid-template-columns: 1fr;
    }

    .seo-workbench__tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .seo-workbench__tab {
        white-space: nowrap;
        padding: 10px 14px;
    }

    .seo-panel-accordion__summary,
    .seo-meta-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .seo-panel-accordion__body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .seo-social-preview-stack,
    .seo-social-preview {
        grid-template-columns: 1fr;
    }

    .seo-search-preview,
    .seo-search-preview--mobile,
    .seo-social-preview--mobile {
        max-width: none;
    }

    .block-editor-page #kbyte-seo-workbench-meta-panel {
        width: 100%;
        max-width: none;
    }

    .seo-search-layout__section {
        padding: 16px 14px;
    }

    .seo-search-layout__preview-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .seo-search-preview__layout {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 12px;
        align-items: start;
    }

    .seo-search-preview__thumb {
        min-height: 82px;
    }

    #kbyte-seo-workbench-elementor-wrapper {
        top: auto;
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    #kbyte-seo-workbench-elementor-tab {
        top: auto;
        right: 10px;
        bottom: 12px;
    }
}
