/* Decision Card Styles */

.decision-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    max-width: 800px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-in;
}

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

.decision-card.removing {
    animation: fadeOut 0.3s ease-out forwards;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.card-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 4px;
}

.time-elapsed {
    font-size: 12px;
    color: #95a5a6;
    text-align: right;
}

.sov-section {
    margin: 24px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.sov-score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.sov-score.positive { color: #27ae60; }
.sov-score.negative { color: #e74c3c; }
.sov-score.neutral { color: #34495e; }

.sov-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.sov-change.positive { color: #27ae60; }
.sov-change.negative { color: #e74c3c; }
.sov-change.neutral { color: #95a5a6; }

.keywords-section {
    margin: 24px 0;
}

.keywords-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keywords-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.keywords-table th {
    background: #ecf0f1;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border: none;
}

.keywords-table td {
    padding: 8px 12px;
    border: none;
}

.keywords-table tbody tr:nth-child(odd) {
    background: #f8f9fa;
}

.keywords-table tbody tr:hover {
    background: #ecf0f1;
}

.competitors-section {
    margin: 24px 0;
}

.competitors-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.competitor-item {
    margin-bottom: 16px;
}

.competitor-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.competitor-bar {
    background: #ecf0f1;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.competitor-bar-fill {
    background: linear-gradient(90deg, #3498db, #2980b9);
    height: 100%;
    transition: width 0.2s ease;
}

.competitor-sov {
    font-size: 12px;
    color: #7f8c8d;
    text-align: right;
}

.decision-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    border-top: 1px solid #ecf0f1;
    padding-top: 24px;
}

.decision-btn {
    padding: 12px 16px;
    min-height: 44px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.decision-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-approve { background: #27ae60; color: white; }
.btn-approve:hover { background: #229954; }

.btn-approve-note { background: #3498db; color: white; }
.btn-approve-note:hover { background: #2980b9; }

.btn-adjust { background: #f39c12; color: white; }
.btn-adjust:hover { background: #d68910; }

.btn-escalate { background: #e74c3c; color: white; }
.btn-escalate:hover { background: #c0392b; }

.input-group {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.input-group textarea,
.input-group input {
    padding: 10px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.input-group button {
    padding: 10px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.input-group button:hover {
    background: #2980b9;
}

@media (max-width: 768px) {
    .decision-card { padding: 16px; margin-bottom: 16px; }
    .sov-score { font-size: 36px; }
    .decision-actions { grid-template-columns: 1fr; }
}

/* Navigation Styles */
.decision-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #3498db;
    font-weight: 600;
    font-size: 14px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

.nav-link.active {
    color: #2c3e50;
    border-bottom-color: #3498db;
}
/* Blog Card Styles */
.decision-card.blog-card {
    border-left: 4px solid #3498db;
}

.card-header.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.blog-title-section {
    flex: 1;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2c3e50;
    max-width: 600px;
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    border-radius: 2px;
}

.blog-metadata {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #7f8c8d;
}

.meta-item {
    padding: 4px 8px;
    background: #ecf0f1;
    border-radius: 3px;
}

.meta-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.btn-reject {
    background: #e74c3c;
    color: white;
}

.btn-reject:hover {
    background: #c0392b;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 640px) {
    body { font-size: 15px; }
    .decision-card { padding: 14px; margin-bottom: 14px; border-radius: 6px; }
    .card-title { font-size: 16px; }
    .card-header { flex-wrap: wrap; gap: 8px; }
    .sov-score { font-size: 42px; }
    .sov-section { padding: 16px; }
    .decision-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
    .decision-btn { padding: 10px 8px; font-size: 13px; min-height: 44px; }
    .keywords-table th, .keywords-table td { padding: 6px 8px; font-size: 13px; }
    .blog-image { height: 160px; }
    .blog-metadata { gap: 8px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px 12px; }
    .stat-value { font-size: 28px; }
    nav.main-nav { flex-wrap: wrap; gap: 8px; }
    .container { padding: 0 12px; }
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
}

@media (max-width: 380px) {
    .decision-actions { grid-template-columns: 1fr; }
    .sov-score { font-size: 36px; }
}

/* ===== Full Content Modal ===== */
#content-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-box {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 { margin: 0; font-size: 16px; color: #2c3e50; }

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    line-height: 1;
    padding: 0;
}

.modal-close:hover { color: #2c3e50; }

#modal-body {
    padding: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: #34495e;
    max-height: 70vh;
    overflow-y: auto;
}

#modal-body h1, #modal-body h2, #modal-body h3 { color: #2c3e50; margin-top: 1.5em; }
#modal-body p { margin-bottom: 1em; }
#modal-body img { max-width: 100%; height: auto; border-radius: 4px; }

.btn-read-full {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #ecf0f1;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-read-full:hover { background: #dde4e6; }

/* ===== Stats grid mobile ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-value { font-size: 36px; font-weight: 700; color: #2c3e50; }
.stat-label { font-size: 13px; color: #7f8c8d; margin-top: 4px; }

@media (max-width: 768px) {
    .stats { grid-template-columns: 1fr 1fr; }
}

/* ===== User management table ===== */
.user-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.user-table th { background: #ecf0f1; padding: 10px 12px; text-align: left; font-weight: 600; color: #2c3e50; }
.user-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.user-table tr:hover td { background: #fafafa; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; }
.badge-admin { background: #3498db; color: white; }
.badge-active { background: #27ae60; color: white; }
.badge-inactive { background: #e74c3c; color: white; }
.btn-sm { padding: 5px 10px; font-size: 12px; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.btn-sm-danger { background: #e74c3c; color: white; }
.btn-sm-primary { background: #3498db; color: white; }

/* ===== Inline Blog Editor ===== */
.blog-editor-panel {
    margin-top: 16px;
    border: 2px solid #3498db;
    border-radius: 6px;
    overflow: hidden;
    grid-column: 1 / -1;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #ebf5fb;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #d6eaf8;
}

.editor-wc {
    font-weight: 400;
    color: #7f8c8d;
    font-size: 12px;
}

.editor-textarea {
    width: 100%;
    min-height: 320px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    font-family: inherit;
    border: none;
    border-bottom: 1px solid #d6eaf8;
    resize: vertical;
    box-sizing: border-box;
    color: #2c3e50;
}

.editor-textarea:focus {
    outline: none;
    background: #fdfefe;
}

.editor-summary-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-family: inherit;
    border: none;
    border-bottom: 1px solid #d6eaf8;
    box-sizing: border-box;
    color: #555;
    background: #fafafa;
}

.editor-summary-input:focus {
    outline: none;
    background: white;
}

.editor-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
}

.btn-edit-approve {
    background: #8e44ad;
    color: white;
}

.btn-edit-approve:hover {
    background: #7d3c98;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

@media (max-width: 640px) {
    .editor-textarea { min-height: 240px; font-size: 15px; }
    .editor-actions { flex-direction: column; }
}

/* Skip / Archive button */
.btn-skip {
    background: #bdc3c7;
    color: #2c3e50;
    font-size: 12px;
    grid-column: 1 / -1;
    opacity: 0.7;
}
.btn-skip:hover {
    background: #95a5a6;
    opacity: 1;
}

/* ===== Social Post Card ===== */
.decision-card.social-card {
    border-left: 4px solid #1877f2;
}

.social-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 10px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e8eef8;
}

.social-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.social-platform-badge {
    background: #1877f2;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.social-holiday-badge {
    background: #ff7043;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.social-campaign-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 8px;
}

.social-campaign {
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
}

.social-date {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.social-caption {
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
    border-bottom: 1px solid #f0f0f0;
}

.social-hashtags {
    padding: 8px 20px;
    font-size: 13px;
    color: #1877f2;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.social-image-note {
    padding: 8px 20px 12px;
    font-size: 12px;
    color: #7f8c8d;
}

@media (max-width: 640px) {
    .social-caption { font-size: 14px; padding: 14px; }
    .social-campaign-strip { flex-direction: column; align-items: flex-start; }
}

/* ===== Social Inline Editor ===== */
.social-editor-panel {
    margin-top: 12px;
    border: 2px solid #1877f2;
    border-radius: 6px;
    overflow: hidden;
    grid-column: 1 / -1;
}

/* Tab count badges */
.tab-count {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: 400;
    margin-left: 2px;
}

/* Social post image */
.social-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #f0f0f0;
    border-bottom: 1px solid #eee;
}
.social-image-container img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}
.social-image-prompt {
    padding: 10px 20px;
    background: #f8f4ff;
    border-bottom: 1px solid #ede8f5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.image-prompt-label {
    font-size: 11px;
    font-weight: 700;
    color: #8e44ad;
    text-transform: uppercase;
    white-space: nowrap;
    padding-top: 2px;
}
.image-prompt-text {
    font-size: 13px;
    color: #555;
    font-style: italic;
    line-height: 1.5;
}
.social-caption {
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
    border-bottom: 1px solid #f0f0f0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== Compact Social Cards ===== */
.decision-card.social-card {
    padding: 0;
    margin-bottom: 12px;
}
.social-header {
    padding: 10px 14px 8px;
}
.social-campaign-strip {
    padding: 7px 14px;
}
.social-caption {
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
}
.social-hashtags {
    padding: 6px 14px;
    font-size: 12px;
}
.social-image-prompt {
    padding: 6px 14px;
}
.decision-card.social-card .decision-actions {
    padding-top: 12px;
    gap: 8px;
}
.decision-card.social-card .decision-btn {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 36px;
}

/* ===== Two-column layout for decision cards ===== */
#decisions-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

/* Blog cards stay full width — they have a lot of content */
#decisions-container .decision-card:not(.social-card) {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    #decisions-container {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Dashboard UI refresh 2026-06-12 ===== */
:root {
    --anb-bg: #f4f7fb;
    --anb-surface: #ffffff;
    --anb-surface-soft: #f8fafc;
    --anb-ink: #102033;
    --anb-muted: #667085;
    --anb-line: #e5eaf1;
    --anb-blue: #2563eb;
    --anb-blue-soft: #eff6ff;
    --anb-green: #16a34a;
    --anb-amber: #f59e0b;
    --anb-red: #ef4444;
    --anb-purple: #7c3aed;
    --anb-shadow: 0 18px 45px rgba(16, 32, 51, 0.10);
    --anb-shadow-soft: 0 10px 26px rgba(16, 32, 51, 0.08);
}

body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32rem),
        linear-gradient(180deg, #f8fbff 0%, var(--anb-bg) 42%, #f4f7fb 100%) !important;
    color: var(--anb-ink) !important;
}

header {
    background: rgba(15, 31, 50, 0.94) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 35px rgba(15, 31, 50, 0.18) !important;
}

.logo { letter-spacing: -0.03em; }
.main-nav .nav-link-item {
    color: rgba(255,255,255,0.84);
    font-weight: 600;
    font-size: 14px;
}
.main-nav .nav-link-item:hover { color: #fff; opacity: 1; }

main { padding: 2.25rem 0 3rem !important; }
.container { max-width: 1180px; }

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 22px;
}
.dashboard-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.03;
    letter-spacing: -0.055em;
    margin: 4px 0 10px;
    color: var(--anb-ink);
}
.dashboard-hero p {
    max-width: 660px;
    color: var(--anb-muted);
    font-size: 15px;
    line-height: 1.7;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--anb-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-history-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--anb-line);
    background: rgba(255,255,255,0.74);
    color: var(--anb-ink);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(16,32,51,0.06);
}
.hero-history-link:hover { border-color: #bfdbfe; color: var(--anb-blue); }

.stats.stats-modern {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}
.stats-modern .stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 18px;
    border: 1px solid rgba(229,234,241,0.92);
    border-radius: 18px;
    background: rgba(255,255,255,0.88);
    box-shadow: var(--anb-shadow-soft);
    overflow: hidden;
    position: relative;
}
.stats-modern .stat-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--accent, var(--anb-blue));
    opacity: 0.9;
}
.stat-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft, var(--anb-blue-soft));
    color: var(--accent, var(--anb-blue));
    font-weight: 900;
    font-size: 19px;
    flex: 0 0 auto;
}
.stats-modern .stat-value {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--anb-ink);
}
.stats-modern .stat-label {
    margin-top: 7px;
    color: var(--anb-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
}
.stat-pending { --accent: var(--anb-amber); --accent-soft: #fffbeb; }
.stat-approved { --accent: var(--anb-green); --accent-soft: #ecfdf3; }
.stat-rejected { --accent: var(--anb-red); --accent-soft: #fef2f2; }
.stat-total { --accent: var(--anb-blue); --accent-soft: var(--anb-blue-soft); }

.queue-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 12px;
}
.queue-heading-row h2 {
    font-size: 25px;
    letter-spacing: -0.035em;
    margin: 3px 0 0;
    color: var(--anb-ink);
}
.decision-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    margin-bottom: 22px;
    border: 1px solid var(--anb-line) !important;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 8px 24px rgba(16,32,51,0.06);
}
.decision-tabs .nav-link {
    border: 0 !important;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--anb-muted);
    font-weight: 800;
}
.decision-tabs .nav-link:hover {
    color: var(--anb-blue);
    background: var(--anb-blue-soft);
}
.decision-tabs .nav-link.active {
    color: #fff;
    background: var(--anb-blue);
    box-shadow: 0 8px 20px rgba(37,99,235,0.24);
}
.decision-tabs .nav-link.active .tab-count { color: rgba(255,255,255,0.78); }
.tab-count { font-weight: 700; color: #98a2b3; }

#decisions-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}
#decisions-container .decision-card:not(.social-card) { grid-column: 1 / -1 !important; }
.decision-card {
    max-width: none !important;
    border: 1px solid rgba(229,234,241,0.95);
    border-radius: 20px !important;
    background: rgba(255,255,255,0.94) !important;
    box-shadow: var(--anb-shadow) !important;
    overflow: hidden;
}
.decision-card.blog-card,
.decision-card.social-card {
    border-left: 0 !important;
    padding: 0 !important;
}
.card-header.blog-header,
.social-header {
    padding: 20px 22px 16px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
    border-bottom: 1px solid var(--anb-line) !important;
}
.card-kicker { margin-bottom: 10px; }
.content-type-badge,
.social-platform-badge,
.social-holiday-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.content-type-badge.blog-type { background: #ecfdf3; color: #087443; }
.content-type-badge.social-type { background: #eff6ff; color: #175cd3; }
.social-platform-badge { background: #1877f2 !important; color: white !important; }
.blog-title {
    font-size: clamp(20px, 2.5vw, 28px) !important;
    line-height: 1.16;
    letter-spacing: -0.04em;
    color: var(--anb-ink) !important;
}
.card-subtitle {
    color: var(--anb-muted) !important;
    font-weight: 650;
}
.time-elapsed {
    color: #98a2b3 !important;
    font-weight: 700;
    white-space: nowrap;
}
.card-submit-author {
    padding: 13px 22px;
    border-bottom: 1px solid var(--anb-line);
    background: var(--anb-surface-soft);
    color: var(--anb-muted);
    font-size: 13px;
}
.card-submit-author strong { color: var(--anb-ink); }
.blog-content { padding: 22px !important; }
.blog-excerpt {
    margin: 0 0 16px !important;
    padding: 16px 17px !important;
    background: #f8fafc !important;
    border: 1px solid #eef2f7;
    border-left: 4px solid var(--anb-blue) !important;
    border-radius: 14px;
    color: #344054 !important;
    min-height: 54px;
}
.muted-empty { color: #98a2b3; font-style: italic; }
.blog-metadata { gap: 8px !important; }
.meta-item {
    padding: 7px 10px !important;
    background: #f2f4f7 !important;
    border: 1px solid #eaecf0;
    border-radius: 999px !important;
    color: var(--anb-muted);
}
.btn-read-full {
    border-radius: 999px !important;
    background: #eef4ff !important;
    color: #175cd3 !important;
    padding: 10px 14px !important;
}
.decision-actions {
    padding: 18px 22px 22px !important;
    margin-top: 0 !important;
    border-top: 1px solid var(--anb-line) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    gap: 10px !important;
}
.decision-btn {
    border-radius: 12px !important;
    min-height: 46px !important;
    font-weight: 850 !important;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 16px rgba(16,32,51,0.08);
}
.decision-btn:hover { transform: translateY(-1px) !important; }
.btn-approve { background: var(--anb-green) !important; }
.btn-edit-approve { background: var(--anb-purple) !important; }
.btn-approve-note { background: #0284c7 !important; }
.btn-reject { background: var(--anb-red) !important; }
.btn-skip {
    background: transparent !important;
    color: var(--anb-muted) !important;
    box-shadow: none !important;
    border: 1px dashed #cbd5e1 !important;
}
.input-group,
.blog-editor-panel,
.social-editor-panel {
    margin: 0 22px 22px !important;
    border-radius: 14px !important;
}
.input-group textarea,
.input-group input,
.editor-textarea,
.editor-summary-input {
    border-radius: 12px !important;
    border: 1px solid #d0d5dd !important;
}
.empty-state-card {
    display: none;
    text-align: center;
    padding: 54px 24px;
    border: 1px solid var(--anb-line);
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    box-shadow: var(--anb-shadow-soft);
}
.empty-state-card .empty-emoji { font-size: 38px; margin-bottom: 8px; }
.empty-state-card h3 { font-size: 24px; margin-bottom: 4px; color: var(--anb-ink); }
.empty-state-card p { color: var(--anb-muted); }

.social-campaign-strip {
    padding: 12px 22px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--anb-line) !important;
}
.social-caption { padding: 18px 22px !important; color: var(--anb-ink) !important; }
.social-hashtags { padding: 10px 22px !important; }
.social-image-prompt { padding: 12px 22px !important; }
/* Rendering-only queue polish: keep cards readable at equal widths. */
.decision-card.social-card .decision-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.decision-card.social-card .btn-skip { grid-column: 1 / -1; }
.social-campaign-strip { gap: 10px !important; }
.social-date { white-space: nowrap; }

@media (max-width: 980px) {
    #decisions-container { grid-template-columns: 1fr !important; }
    .stats.stats-modern { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    main { padding-top: 1rem !important; }
    .dashboard-hero { flex-direction: column; gap: 12px; }
    .hero-history-link { width: 100%; }
    .stats.stats-modern { grid-template-columns: 1fr; }
    .stats-modern .stat-card { padding: 15px; }
    .decision-tabs { width: 100%; overflow-x: auto; border-radius: 16px; justify-content: flex-start; }
    .decision-tabs .nav-link { white-space: nowrap; }
    .decision-actions { grid-template-columns: 1fr !important; }
    .card-header.blog-header, .social-header { flex-direction: column; gap: 8px; }
    .time-elapsed { align-self: flex-start; }
}


/* Anoubiz hardening: queue search/pagination and dead-letter visibility */
.queue-tools { display:flex; gap:12px; align-items:center; margin: 14px 0 18px; flex-wrap:wrap; }
.queue-search-input { flex: 1 1 320px; border:1px solid #d1d5db; border-radius:12px; padding:11px 14px; font-size:14px; background:#fff; }
.queue-pagination-meta { color:#6b7280; font-size:13px; white-space:nowrap; }
.queue-load-more-row { display:flex; justify-content:center; margin:18px 0 28px; }
.dead-callbacks-panel { border:1px solid #fca5a5; background:#fff1f2; color:#7f1d1d; border-radius:14px; padding:12px 14px; margin:0 0 18px; font-size:13px; }
.dead-callback-row { display:grid; grid-template-columns: minmax(160px, 1.1fr) minmax(180px, 1.6fr) 80px 90px; gap:10px; padding-top:7px; overflow-wrap:anywhere; }
@media (max-width: 720px) { .dead-callback-row { grid-template-columns: 1fr; } .queue-pagination-meta { width:100%; } }
