@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

.wp-com-settings {
    --wp-com-surface: #ffffff;
    --wp-com-surface-alt: #f8fafc;
    --wp-com-border: #d1d5db;
    --wp-com-text: #0b0b0b;
    --wp-com-muted: #4b5563;
    --wp-com-accent: #111827;
    --wp-com-accent-strong: #0b0b0b;
    --wp-com-success: #111827;
    --wp-com-warning: #111827;
    --wp-com-danger: #111827;
    --wp-com-radius: 16px;
    --wp-com-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --wp-com-shadow-soft: 0 6px 16px rgba(15, 23, 42, 0.06);
    max-width: 1000px;
    font-family: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--wp-com-text);
    background: transparent;
    padding: 0;
    position: relative;
}

.wp-com-settings a {
    color: var(--wp-com-text);
    text-decoration: underline;
}

.wp-com-settings a:hover,
.wp-com-settings a:focus {
    color: #000000;
}

.wp-com-settings-header {
    margin: 10px 0 20px;
    padding: 20px 22px;
    border-radius: var(--wp-com-radius);
    background: #ffffff;
    border: 1px solid var(--wp-com-border);
    box-shadow: var(--wp-com-shadow-soft);
    position: relative;
    overflow: hidden;
    animation: wpComRiseIn 0.5s ease both;
}

.wp-com-settings-header::after {
    content: none;
}

.wp-com-settings-header > * {
    position: relative;
    z-index: 1;
}

.wp-com-settings-header h1 {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.3px;
}

.wp-com-settings-subtitle {
    margin: 0;
    color: var(--wp-com-muted);
    font-size: 13px;
}

.wp-com-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.wp-com-grid + .wp-com-settings-card {
    margin-top: 20px;
}

.wp-com-side-card {
    position: sticky;
    top: 64px;
}

.wp-com-help-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--wp-com-muted);
    line-height: 1.6;
    font-size: 13px;
}

.wp-com-help-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

.wp-com-help-list li:last-child {
    margin-bottom: 0;
}

.wp-com-help-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--wp-com-accent);
    font-weight: 700;
}

.wp-com-settings-card {
    background: var(--wp-com-surface);
    border: 1px solid var(--wp-com-border);
    border-radius: var(--wp-com-radius);
    padding: 22px;
    box-shadow: var(--wp-com-shadow-soft);
    position: relative;
    overflow: hidden;
    animation: wpComRiseIn 0.55s ease both;
}

.wp-com-settings-card::after {
    content: none;
}

.wp-com-settings-card > * {
    position: relative;
    z-index: 1;
}

.wp-com-settings-card:nth-of-type(2) {
    animation-delay: 0.06s;
}

.wp-com-settings-card:nth-of-type(3) {
    animation-delay: 0.12s;
}

.wp-com-settings-card + .wp-com-settings-card {
    margin-top: 20px;
}

.wp-com-card-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--wp-com-text);
}

.wp-com-settings-table {
    width: 100%;
    border-collapse: collapse;
}

.wp-com-settings-table th {
    width: 190px;
    padding: 14px 16px;
    color: var(--wp-com-text);
    font-weight: 600;
    vertical-align: top;
}

.wp-com-settings-table td {
    padding: 14px 16px;
}

.wp-com-settings-table tr + tr {
    border-top: 1px solid var(--wp-com-border);
}

.wp-com-settings-table .regular-text,
.wp-com-settings-table textarea {
    max-width: 520px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d5dde6;
    padding: 8px 12px;
    font-size: 14px;
    background: var(--wp-com-surface-alt);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wp-com-settings-table textarea {
    line-height: 1.5;
    resize: vertical;
    font-size: 13px;
}

.wp-com-settings-table .regular-text:focus,
.wp-com-settings-table textarea:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.18);
    outline: none;
    background: #ffffff;
}

.wp-com-settings-table code {
    background: #0b0b0b;
    color: #e2e8f0;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
}

.wp-com-settings-table .description {
    margin-top: 6px;
    color: var(--wp-com-muted);
}

.wp-com-settings-actions {
    margin-top: 12px;
}

.wp-com-settings .button-primary {
    background: #0b0b0b;
    border-color: #0b0b0b;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.wp-com-settings .button-primary:hover,
.wp-com-settings .button-primary:focus {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}

.wp-com-settings .button-secondary {
    border-color: var(--wp-com-border);
    background: #ffffff;
    color: var(--wp-com-text);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.wp-com-log-table td,
.wp-com-log-table th {
    vertical-align: top;
}

.wp-com-log-table {
    border: 1px solid var(--wp-com-border);
    border-radius: var(--wp-com-radius);
    overflow: hidden;
    background: var(--wp-com-surface);
    box-shadow: var(--wp-com-shadow-soft);
}

.wp-com-log-table thead th {
    background: #eef2f6;
    color: var(--wp-com-text);
    font-weight: 600;
    border-bottom: 1px solid var(--wp-com-border);
}

.wp-com-log-table td,
.wp-com-log-table th {
    padding: 10px 12px;
}

.wp-com-log-table tbody tr:nth-child(even) {
    background: var(--wp-com-surface-alt);
}

.wp-com-log-table tbody tr:hover {
    background: #f1f5f9;
}

.wp-com-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: #e5e7eb;
    color: #111827;
}

.wp-com-status--success {
    background: #f3f4f6;
    color: #111827;
}

.wp-com-status--blocked {
    background: #e5e7eb;
    color: #111827;
}

.wp-com-status--error {
    background: #f1f5f9;
    color: #111827;
}

.wp-com-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--wp-com-text);
}

.wp-com-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.wp-com-slider {
    width: 46px;
    height: 24px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.wp-com-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.wp-com-switch input:checked + .wp-com-slider {
    background: #0b0b0b;
}

.wp-com-switch input:focus + .wp-com-slider {
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.2);
}

.wp-com-switch input:checked + .wp-com-slider::after {
    transform: translateX(22px);
}

.wp-com-switch-label {
    line-height: 1.4;
    color: var(--wp-com-muted);
}

.wp-com-settings-footer {
    margin-top: 24px;
    color: var(--wp-com-muted);
    background: #ffffff;
    border-radius: var(--wp-com-radius);
    border: 1px solid var(--wp-com-border);
    padding: 16px 18px;
    box-shadow: var(--wp-com-shadow-soft);
}

.wp-com-settings-footer .description {
    font-size: 12px;
}

.wp-com-toast.notice {
    position: fixed;
    top: 48px;
    right: 24px;
    z-index: 10000;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    border-left-width: 4px;
    animation: wpComToastIn 0.35s ease-out;
    max-width: 360px;
}

@keyframes wpComToastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wpComRiseIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .wp-com-settings-card,
    .wp-com-settings-header,
    .wp-com-toast.notice {
        animation: none;
    }
}

@media screen and (max-width: 960px) {
    .wp-com-settings {
        padding: 18px;
    }

    .wp-com-grid {
        grid-template-columns: 1fr;
    }

    .wp-com-side-card {
        position: static;
    }
}
