body {
    background: #f5f7fb;
}

.card {
    border: 0;
    border-radius: 18px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
}

.status-pill {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

.status-draft { background: #eef2ff; color: #3730a3; }
.status-in_review { background: #e0f2fe; color: #075985; }
.status-changes_requested { background: #fff7ed; color: #9a3412; }
.status-revision_submitted { background: #f5f3ff; color: #6d28d9; }
.status-approved { background: #ecfdf5; color: #166534; }
.status-published { background: #dcfce7; color: #166534; }

.editor {
    min-height: 420px;
    border: 1px solid #d9e0ee;
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    overflow: auto;
    line-height: 1.7;
}

.editor:focus {
    outline: 2px solid #c7d2fe;
    border-color: #a5b4fc;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-highlight {
    background: #fff3a3;
    border-radius: 4px;
    padding: 0 2px;
}

.review-comments {
    display: grid;
    gap: 0.85rem;
}

.review-comment {
    background: #fafbff;
    border: 1px solid #e4e8f3;
    border-radius: 14px;
    padding: 0.9rem;
}

.progress-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.progress-step {
    background: #eef2f7;
    border-radius: 999px;
    padding: 0.8rem 0.9rem;
    text-align: center;
    font-size: 0.9rem;
    color: #667085;
    font-weight: 600;
}

.progress-step.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.progress-step.done {
    background: #dcfce7;
    color: #166534;
}

.seo-score {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
}

.seo-score-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.content-view h2, .content-view h3 {
    margin-top: 1.25rem;
}

.brand-brief-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.brief-block {
    background: #fafcff;
    border: 1px solid #e5ebf7;
    border-radius: 14px;
    padding: 0.9rem;
}

.brief-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475467;
    margin-bottom: 0.45rem;
}

@media (max-width: 991px) {
    .progress-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.yoast-meta-meter {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.75rem;
}

.seo-progress {
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
}
.timeline-list{border-left:2px solid #e5e7eb;margin-left:.35rem;padding-left:.85rem}.timeline-item{position:relative;padding:.35rem 0 .7rem}.timeline-item:before{content:"";position:absolute;left:-1.15rem;top:.55rem;width:.6rem;height:.6rem;border-radius:50%;background:#0d6efd}.content-view img{max-width:100%;height:auto}.seo-progress{height:.55rem}.review-comment{border:1px solid #e5e7eb;border-radius:.75rem;padding:.75rem;margin-bottom:.75rem;background:#fff}.brief-block{border-left:3px solid #e5e7eb;padding-left:.75rem}.brief-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#6b7280;font-weight:700}.editor{min-height:360px;border:1px solid #dee2e6;border-radius:.75rem;padding:1rem;background:#fff}.review-highlight{background:#fff3cd;border-radius:.2rem}.stat-card{border:0;box-shadow:0 .25rem .75rem rgba(15,23,42,.08)}

.editor table,
.content-view table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
}

.editor th,
.editor td,
.content-view th,
.content-view td {
    border: 1px solid #d9e0ee;
    padding: 0.65rem 0.75rem;
    vertical-align: top;
}

.editor th,
.content-view th {
    font-weight: 700;
    background: #f8fafc;
}

.content-view .wp-block-table {
    margin: 1rem 0;
    overflow-x: auto;
}

.html-editor {
    min-height: 520px;
    border: 1px solid #d9e0ee;
    border-radius: 16px;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.55;
    background: #0f172a;
    color: #e5e7eb;
    tab-size: 2;
}

.editor h1,
.content-view h1 { font-size: 2rem; line-height: 1.25; margin: 1.25rem 0 .75rem; font-weight: 800; }
.editor h2,
.content-view h2 { font-size: 1.55rem; line-height: 1.3; margin: 1.15rem 0 .65rem; font-weight: 750; }
.editor h3,
.content-view h3 { font-size: 1.25rem; line-height: 1.35; margin: 1rem 0 .55rem; font-weight: 700; }
.editor h4,
.content-view h4 { font-size: 1.08rem; line-height: 1.4; margin: .9rem 0 .45rem; font-weight: 700; }
.editor p,
.content-view p { margin: 0 0 1rem; }
.editor ul,
.editor ol,
.content-view ul,
.content-view ol { padding-left: 1.35rem; margin: 0 0 1rem; }
.editor li,
.content-view li { margin-bottom: .35rem; }
.editor blockquote,
.content-view blockquote { border-left: 4px solid #c7d2fe; margin: 1rem 0; padding: .75rem 1rem; background: #f8fafc; color: #334155; border-radius: .5rem; }
.editor pre,
.content-view pre { background: #0f172a; color: #e5e7eb; border-radius: .75rem; padding: 1rem; overflow-x: auto; margin: 1rem 0; }
.editor code,
.content-view code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.editor hr,
.content-view hr { border: 0; border-top: 1px solid #d9e0ee; margin: 1.5rem 0; }
.editor img,
.content-view img { max-width: 100%; height: auto; border-radius: .5rem; }

.editor .wp-block-table,
.content-view .wp-block-table {
    margin: 1rem 0;
    overflow-x: auto;
}

.editor .wp-block-table table,
.content-view .wp-block-table table {
    min-width: 520px;
}


/* HTML editor v2 */
.html-editor {
    min-height: 520px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid #d9e0ee;
    border-radius: 16px;
    padding: 1rem;
    background: #0f172a;
    color: #e5e7eb;
}
.html-help-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: .75rem;
    color: #334155;
}
.editor table, .content-view table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.editor th, .editor td, .content-view th, .content-view td {
    border: 1px solid #d0d7de;
    padding: .65rem .75rem;
    vertical-align: top;
}
.editor th, .content-view th {
    font-weight: 700;
    background: #f8fafc;
}
.editor blockquote, .content-view blockquote {
    border-left: 4px solid #cbd5e1;
    margin: 1rem 0;
    padding: .75rem 1rem;
    background: #f8fafc;
}
.editor pre, .content-view pre {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    overflow:auto;
}

/* Right-side draggable draft widgets */
#rightSidebarWidgets .sidebar-widget {
    cursor: default;
}
#rightSidebarWidgets .sidebar-widget.dragging {
    opacity: .55;
    border: 1px dashed rgba(0,0,0,.25);
}
.drag-handle {
    cursor: grab;
    user-select: none;
    color: #6c757d;
    font-size: 18px;
    line-height: 1;
}
.drag-handle:active { cursor: grabbing; }
