.chat-page {
    display: flex;
    height: calc(100vh - var(--header-height) - 500px - 60px);
    min-height: 400px;
    overflow: hidden;
}
.chat-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-sidebar-section {
    padding: 12px 16px 8px;
}
.chat-sidebar-section h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-dim);
    margin: 0 0 8px 0;
}
.chat-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--fg-body);
    transition: background 0.15s;
}
.chat-channel:hover {
    background: var(--bg-hover);
}
.chat-channel.active {
    background: var(--accent);
    color: #fff;
}
.chat-channel i {
    font-size: 16px;
    opacity: 0.7;
}
.chat-online-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 12px;
}
.chat-online-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: var(--fg-body);
}
.chat-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}
/* Main chat area */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-page);
}
.chat-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
}
.chat-header-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fg-heading);
}
.chat-header-desc {
    font-size: 13px;
    color: var(--fg-dim);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-messages-loading {
    text-align: center;
    padding: 20px;
    color: var(--fg-dim);
    font-size: 13px;
}
.chat-msg {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    align-items: flex-start;
}
.chat-msg:hover {
    background: var(--bg-hover);
    margin: 0 -20px;
    padding: 6px 20px;
    border-radius: 4px;
}
.chat-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}
.chat-msg-body {
    flex: 1;
    min-width: 0;
}
.chat-msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}
.chat-msg-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--fg-heading);
}
.chat-msg-time {
    font-size: 11px;
    color: var(--fg-dim);
}
.chat-msg-content {
    font-size: 14px;
    color: var(--fg-body);
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.chat-msg-deleted {
    font-style: italic;
    color: var(--fg-dim);
}
/* Typing indicator */
.chat-typing {
    padding: 4px 20px 8px;
    font-size: 12px;
    color: var(--fg-dim);
    min-height: 20px;
    font-style: italic;
}
/* Input area */
.chat-input-area {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-page);
    color: var(--fg-body);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s;
}
.chat-input:focus {
    border-color: var(--accent);
}
.chat-input::placeholder {
    color: var(--fg-dim);
}
.chat-send-btn {
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.chat-send-btn:hover {
    opacity: 0.9;
}
.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Connection status bar */
.chat-status {
    padding: 6px 20px;
    font-size: 12px;
    text-align: center;
    background: #fef3c7;
    color: #92400e;
    display: none;
}
.chat-status.visible {
    display: block;
}
.chat-status.error {
    background: #fee2e2;
    color: #991b1b;
}
/* Empty state */
.chat-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--fg-dim);
}
.chat-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}
.chat-empty p {
    font-size: 14px;
    margin: 4px 0;
}
/* ============================================================
   CHAT — Phase 1: Multi-channel, presence, pins
   ============================================================ */
/* Sidebar heading with create button */
.chat-sidebar-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-dim);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-create-channel-btn {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.chat-create-channel-btn:hover {
    color: var(--fg-primary);
    background: rgba(255,255,255,0.06);
}
/* Channel lock icon (role-restricted) */
.chat-channel-lock {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.4;
}
.chat-channel.active .chat-channel-lock {
    opacity: 0.7;
}
/* Online count badge */
.chat-online-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: rgba(255,255,255,0.06);
    font-size: 10px;
    font-weight: 600;
    color: var(--fg-dim);
}
/* User list items with presence dots */
.chat-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: var(--fg-body);
}
.chat-user-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.chat-user-dot--online { background: #22c55e; }
.chat-user-dot--idle { background: #eab308; }
.chat-user-dot--offline { background: #6b7280; }
.chat-user-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-user-role-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
    flex-shrink: 0;
}
.chat-user-role--senior_staff { background: rgba(249,115,22,0.15); color: #f97316; }
.chat-user-role--admin { background: rgba(239,68,68,0.15); color: #ef4444; }
/* Chat header with topic + actions */
.chat-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-card);
}
.chat-header-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.chat-header-topic {
    font-size: 13px;
    color: var(--fg-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-header-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.chat-header-btn {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    position: relative;
    transition: color 0.15s, background 0.15s;
}
.chat-header-btn:hover {
    color: var(--fg-primary);
    background: rgba(255,255,255,0.06);
}
.chat-pin-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
/* Pinned messages bar */
.chat-pinned-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    max-height: 200px;
    overflow-y: auto;
}
.chat-pinned-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}
.chat-pinned-header i { margin-right: 6px; }
.chat-pinned-close {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.chat-pinned-close:hover { color: var(--fg-primary); }
.chat-pinned-list { padding: 4px 0; }
.chat-pinned-empty {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--fg-dim);
    text-align: center;
}
.chat-pinned-item {
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    position: relative;
    cursor: pointer;
}
.chat-pinned-item:hover { background: var(--bg-hover); }
.chat-pinned-item:last-child { border-bottom: none; }
.chat-pinned-item-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-heading);
    margin-bottom: 2px;
}
.chat-pinned-item-text {
    font-size: 13px;
    color: var(--fg-body);
    line-height: 1.4;
}
.chat-pinned-item-time {
    font-size: 10px;
    color: var(--fg-dim);
    margin-top: 2px;
}
.chat-pinned-unpin {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.15s;
}
.chat-pinned-item:hover .chat-pinned-unpin { opacity: 1; }
.chat-pinned-unpin:hover { color: #ef4444; }
/* Message hover actions (pin button) */
.chat-msg-actions {
    display: none;
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px;
    gap: 2px;
}
.chat-msg {
    position: relative;
}
.chat-msg:hover .chat-msg-actions {
    display: flex;
}
.chat-msg-action-btn {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}
.chat-msg-action-btn:hover {
    color: var(--fg-primary);
    background: rgba(255,255,255,0.06);
}
/* Create channel modal */
.chat-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-modal {
    background: var(--bg-card);
    border-radius: 12px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.chat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    font-weight: 600;
    color: var(--fg-heading);
}
.chat-modal-close {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.chat-modal-close:hover { color: var(--fg-primary); }
.chat-modal-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-modal-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}
.chat-modal-input,
.chat-modal-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-page);
    color: var(--fg-body);
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.chat-modal-input:focus,
.chat-modal-select:focus {
    border-color: var(--accent);
}
.chat-modal-submit {
    margin-top: 8px;
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.chat-modal-submit:hover { opacity: 0.9; }
/* History loading */
.chat-history-loading {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: var(--fg-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
/* System message */
.chat-system-msg {
    text-align: center;
    font-size: 12px;
    color: var(--fg-dim);
    padding: 4px 0;
    font-style: italic;
}
/* Status message (in mini-chat message area) */
.mc-status {
    text-align: center;
    font-size: 13px;
    color: var(--fg-dim);
    padding: 20px;
    display: block;
}
/* Chat message text */
.chat-msg-text {
    font-size: 14px;
    color: var(--fg-body);
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .header-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .header-left,
    .header-right {
        gap: 8px;
    }
    .banner-grid {
        grid-template-columns: 1fr;
        padding-top: calc(var(--header-height) + 30px);
    }
    .banner-cell--message {
        justify-content: flex-start;
    }
    .banner-message {
        max-width: 100%;
    }
    .banner-cell--stats {
        flex-wrap: wrap;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .writer-grid {
        grid-template-columns: 1fr;
    }
    .writer-title-input {
        font-size: 22px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    .welcome-card {
        flex-direction: column;
        text-align: center;
    }
    /* Chat responsive */
    .chat-page {
        height: calc(100vh - var(--header-height) - 60px);
    }
    .chat-sidebar {
        display: none;
    }
    .chat-messages {
        padding: 12px 14px;
    }
    .chat-msg:hover {
        margin: 0 -14px;
        padding: 6px 14px;
    }
    .chat-input-area {
        padding: 10px 14px;
    }
    .chat-msg-avatar {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}
/* ============================================================
   Articles Page
   ============================================================ */
.articles-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px;
}
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.articles-counts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.count-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}
.count-publish { background: var(--green-dim); color: var(--green); }
.count-draft   { background: var(--yellow-dim); color: var(--yellow); }
.count-pending { background: var(--accent-dim); color: var(--accent); }
/* Filters */
.articles-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.articles-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.articles-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fg-dim);
    font-size: 13px;
    pointer-events: none;
}
.articles-search {
    padding-left: 36px !important;
    width: 100%;
}
.articles-select {
    min-width: 140px;
}
/* Article list */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.articles-loading,
.articles-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--fg-dim);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
/* Article card */
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}
.article-card:hover {
    background: var(--bg-card-hover);
}
.article-card.expanded {
    box-shadow: var(--shadow-hover);
}
.article-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 12px;
}
.article-card-info {
    flex: 1;
    min-width: 0;
}
.article-card-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--fg-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.article-card-meta {
    font-size: 12px;
    color: var(--fg-dim);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Status badges */
.article-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: capitalize;
    white-space: nowrap;
    flex-shrink: 0;
}
.article-status-publish { background: var(--green-dim); color: var(--green); }
.article-status-draft   { background: var(--yellow-dim); color: var(--yellow); }
.article-status-pending { background: var(--accent-dim); color: var(--accent); }
/* Expanded detail */
.article-detail {
    padding: 0 18px 16px;
    border-top: 1px solid var(--border);
    margin-top: 0;
}
.article-detail-info {
    padding: 14px 0 12px;
}
.article-detail-row {
    font-size: 13px;
    color: var(--fg);
    margin-bottom: 4px;
}
.article-detail-label {
    font-weight: 600;
    color: var(--fg-dim);
    display: inline-block;
    min-width: 90px;
}
/* Action buttons */
.article-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.btn-sm {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
}
.article-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    cursor: pointer;
}
.article-delete-btn {
    color: var(--red);
    border-color: var(--red);
}
.article-delete-btn:hover {
    background: var(--red-dim);
}
/* Load more */
.articles-load-more-wrap {
    text-align: center;
    padding: 20px 0;
}
.articles-load-more {
    margin-bottom: 8px;
}
.articles-showing {
    font-size: 12px;
    color: var(--fg-dim);
}
/* ---- Bulk Actions ---- */
.article-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 8px;
    cursor: pointer;
    flex-shrink: 0;
    margin: -8px 0 -8px -8px;
}
.article-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}
.article-card.selected {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--accent);
}
.articles-bulk-bar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: sticky;
    top: 60px;
    z-index: 10;
    margin-bottom: 8px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.articles-bulk-bar.visible {
    display: flex;
}
.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}
.bulk-select-all input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}
.bulk-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-dim);
    white-space: nowrap;
}
.bulk-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}
.bulk-btn {
    padding: 5px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s, color 0.15s;
}
.bulk-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}
.bulk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.bulk-btn-danger {
    color: var(--red);
    border-color: var(--red);
}
.bulk-btn-danger:hover {
    background: var(--red);
    color: white;
}
.bulk-cat-select {
    font-size: 13px;
    padding: 5px 8px;
    max-width: 250px;
}
/* Dark mode bulk bar */
.dark-mode .article-card.selected {
    background: rgba(59, 130, 246, 0.12);
}
.dark-mode .articles-bulk-bar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* ============================================================
   Phase 2: Editorial Workflow Styles
   ============================================================ */
/* --- Submit for Review button --- */
.btn-submit-review {
    background: var(--accent-blue, #3b82f6);
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.btn-submit-review:hover {
    background: #2563eb;
}
.btn-submit-review:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-submit-review.btn-awaiting {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    cursor: default;
}
/* --- Awaiting Review badge --- */
.awaiting-badge {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #f97316 !important;
}
/* --- Returned badge --- */
.returned-badge {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #f97316 !important;
}
/* --- Feedback banner (writer) --- */
.feedback-banner {
    margin-bottom: 8px;
}
.feedback-banner.hidden {
    display: none;
}
.feedback-banner-content {
    position: relative;
    padding: 10px 32px 10px 14px;
    border-left: 3px solid #f97316;
    background: rgba(249, 115, 22, 0.08);
    border-radius: 0 6px 6px 0;
    font-size: 13px;
}
.feedback-banner-header {
    font-weight: 600;
    color: #f97316;
    margin-bottom: 4px;
    font-size: 12px;
}
.feedback-banner-header i {
    margin-right: 4px;
}
.feedback-banner-text {
    color: var(--fg-secondary);
    line-height: 1.4;
}
.feedback-banner-dismiss {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    color: var(--fg-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
}
.feedback-banner-dismiss:hover {
    color: var(--fg-primary);
}
/* --- Draft feedback inline (home page) --- */
.draft-feedback-inline {
    font-size: 11px;
    color: #f97316;
    margin-top: 4px;
    padding: 4px 8px;
    border-left: 2px solid #f97316;
    background: rgba(249, 115, 22, 0.06);
    border-radius: 0 3px 3px 0;
}
.draft-feedback-inline i {
    margin-right: 3px;
    font-size: 10px;
}
/* --- Share toggle (writer sidebar) --- */
.share-card {
    padding: 10px 14px !important;
}
.share-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}
.share-toggle input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--accent-blue, #3b82f6);
}
.share-toggle-label {
    color: var(--fg-primary);
    font-weight: 500;
}
.share-hint {
    font-size: 11px;
    color: var(--fg-dim);
    margin-top: 4px;
}
/* --- Review Queue card (dashboard) --- */
.review-queue-card {
    border-left: 3px solid #f97316;
}
.review-queue-heading {
    color: #f97316 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.review-queue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    font-size: 11px;
    font-weight: 600;
}
.review-queue-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.review-queue-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.review-queue-item:last-child {
    border-bottom: none;
}
.review-queue-item-title a {
    color: var(--fg-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.review-queue-item-title a:hover {
    color: var(--accent);
}
.review-queue-item-meta {
    font-size: 11px;
    color: var(--fg-dim);
    margin-top: 2px;
}
/* --- Shared Drafts card (dashboard sidebar) --- */
.shared-drafts-card {
    border-left: 3px solid var(--accent-blue, #3b82f6);
}
.shared-drafts-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.shared-draft-item {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.shared-draft-item:last-child {
    border-bottom: none;
}
.shared-draft-title a {
    color: var(--fg-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.shared-draft-title a:hover {
    color: var(--accent);
}
.shared-draft-meta {
    font-size: 11px;
    color: var(--fg-dim);
    margin-top: 2px;
}
/* --- Preview Modal --- */
.preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}
.preview-modal {
    background: var(--bg-card, #1e1e2e);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.preview-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fg-primary);
}
.preview-modal-close {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.preview-modal-close:hover {
    color: var(--fg-primary);
}
.preview-modal-meta {
    padding: 8px 20px;
    font-size: 12px;
    color: var(--fg-dim);
    border-bottom: 1px solid var(--border);
}
.preview-modal-image {
    padding: 0;
}
.preview-modal-image img {
    width: 100%;
    display: block;
}
.preview-modal-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--fg-secondary);
}
.preview-modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
/* --- Return to Author button --- */
.btn-return {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-return:hover {
    background: rgba(249, 115, 22, 0.2);
}
.btn-return:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* --- Return feedback form (articles) --- */
.return-feedback-form textarea {
    width: 100%;
    resize: vertical;
}
/* --- Category selected summary (collapsed state) --- */
.cat-selected-summary {
    display: none;
    font-size: 12px;
    color: var(--fg-secondary);
    padding: 6px 0 2px;
    line-height: 1.3;
}
/* --- Writer In-App Preview --- */
.writer-preview-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    overflow-y: auto;
    padding: 40px 20px;
    animation: fadeIn 0.15s ease;
}
.writer-preview-modal {
    background: var(--bg-card, #1e1e2e);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.writer-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}
.writer-preview-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.writer-preview-close {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}
.writer-preview-close:hover { color: var(--fg-primary); }
.writer-preview-hero {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.writer-preview-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.writer-preview-video iframe {
    width: 100%;
    height: 100%;
    display: block;
}
.writer-preview-hero--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-page, #161622);
    color: var(--fg-dim);
    font-size: 14px;
    gap: 8px;
}
.writer-preview-body {
    padding: 28px 32px 40px;
}
.writer-preview-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.writer-preview-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent, #f5a623);
    background: rgba(245,166,35,0.12);
    padding: 3px 10px;
    border-radius: 4px;
}
.writer-preview-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--fg-primary);
    margin: 0 0 12px;
}
.writer-preview-meta {
    font-size: 13px;
    color: var(--fg-dim);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.writer-preview-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--fg-secondary);
}
.writer-preview-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}
.writer-preview-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--fg-primary);
    margin: 28px 0 12px;
}
.writer-preview-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--fg-primary);
    margin: 24px 0 10px;
}
.writer-preview-content p {
    margin: 0 0 16px;
}
.writer-preview-content blockquote {
    border-left: 3px solid var(--accent, #f5a623);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--fg-dim);
    font-style: italic;
}
/* --- Banner Stats (medium pills, same style as nav buttons) --- */
.banner-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    background: rgba(0, 17, 35, 0.35);
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.banner-stat i {
    font-size: 12px;
    opacity: 0.7;
}
/* --- Mini-Chat Card (dashboard sidebar) --- */
.chat-card {
    border-top: 3px solid var(--accent, #f5a623);
    display: flex;
    flex-direction: column;
}
.mini-chat-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mini-chat-expand {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.mini-chat-expand:hover {
    color: var(--fg-primary);
    background: rgba(255,255,255,0.06);
}
.mini-chat-messages {
    height: 260px;
    overflow-y: auto;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mini-chat-typing {
    font-size: 11px;
    color: var(--fg-dim);
    padding: 0 2px;
    min-height: 16px;
    font-style: italic;
}
.mini-chat-input-area {
    display: flex;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.mini-chat-input {
    flex: 1;
    background: var(--bg-page, #161622);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: var(--fg-primary);
    outline: none;
}
.mini-chat-input:focus {
    border-color: var(--accent);
}
.mini-chat-send {
    background: var(--accent, #f5a623);
    border: none;
    border-radius: 6px;
    padding: 0 10px;
    color: #000;
    cursor: pointer;
    font-size: 13px;
}
.mini-chat-send:disabled {
    opacity: 0.3;
    cursor: default;
}
/* Mini-chat messages */
.mc-msg {
    display: flex;
    gap: 8px;
    padding: 4px 2px;
}
.mc-msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-dim, rgba(245,166,35,0.15));
    color: var(--accent, #f5a623);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.mc-msg-body {
    min-width: 0;
    flex: 1;
}
.mc-msg-header {
    display: flex;
    gap: 6px;
    align-items: baseline;
    margin-bottom: 1px;
}
.mc-msg-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-primary);
}
.mc-msg-time {
    font-size: 10px;
    color: var(--fg-dim);
}
.mc-msg-text {
    font-size: 13px;
    color: var(--fg-secondary);
    line-height: 1.4;
    word-break: break-word;
}
.mc-system {
    text-align: center;
    font-size: 11px;
    color: var(--fg-dim);
    padding: 4px 0;
    font-style: italic;
}
/* --- Mini-chat card layout (sidebar + main) --- */
.mc-card-layout {
    display: flex;
    gap: 0;
    min-height: 320px;
    margin: 0 -24px -24px;   /* bleed into card padding */
    border-top: 1px solid var(--border);
}
.mc-card-left {
    width: 160px;
    min-width: 160px;
    background: rgba(0,0,0,0.12);
    border-right: 1px solid var(--border);
    padding: 8px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mc-card-right {
    width: 150px;
    min-width: 150px;
    background: rgba(0,0,0,0.08);
    border-left: 1px solid var(--border);
    padding: 8px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mc-card-sidebar-heading {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-dim);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mc-card-online-heading {
    margin-top: 10px;
}
.mc-card-create-btn {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 10px;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 3px;
    transition: color 0.15s;
}
.mc-card-create-btn:hover { color: var(--fg-primary); }
.mc-card-channel {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: var(--fg-body);
    transition: background 0.12s;
}
.mc-card-channel:hover { background: rgba(255,255,255,0.06); }
.mc-card-channel.active { background: var(--accent); color: #fff; }
.mc-card-channel-hash { opacity: 0.5; font-size: 11px; margin-right: 1px; }
.mc-card-channel-lock { margin-left: auto; font-size: 8px; opacity: 0.35; }
.mc-card-channel.active .mc-card-channel-lock { opacity: 0.6; }
.mc-card-user {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
    font-size: 11px;
    color: var(--fg-dim);
}
.mc-card-user-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mc-card-user-dot--online { background: #22c55e; }
.mc-card-user-dot--idle { background: #eab308; }
.mc-card-user-dot--offline { background: #6b7280; }
.mc-card-user--clickable { cursor: pointer; border-radius: 3px; padding: 2px 4px; margin: 0 -4px; }
.mc-card-user--clickable:hover { background: rgba(255,255,255,0.06); }
.mc-card-dm-empty {
    font-size: 10px;
    color: var(--fg-dim);
    opacity: 0.6;
    padding: 2px 0;
}
/* Unread badges */
.mc-badge {
    margin-left: auto;
    flex-shrink: 0;
}
.mc-badge--unread {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fg-dim);
    display: inline-block;
}
.mc-badge--mention {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}
.mc-has-unread { color: var(--fg-primary) !important; font-weight: 600; }
/* @mention highlighting */
.mc-mention {
    color: var(--accent);
    font-weight: 600;
    background: rgba(245,166,35,0.1);
    border-radius: 3px;
    padding: 0 2px;
}
.mc-mention--me {
    background: rgba(245,166,35,0.25);
}
/* @mention autocomplete dropdown */
.mc-mention-dropdown {
    position: fixed;
    z-index: 9100;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
}
.mc-mention-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.1s;
}
.mc-mention-item:hover,
.mc-mention-item.active {
    background: rgba(255,255,255,0.06);
}
.mc-mention-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-primary);
}
.mc-mention-username {
    font-size: 11px;
    color: var(--fg-dim);
    margin-left: 8px;
}
.mc-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mc-card-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border);
}
.mc-card-header-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--fg-heading);
}
.mc-card-header-topic {
    font-size: 11px;
    color: var(--fg-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Adjust messages and input inside card main */
.mc-card-main .mini-chat-messages {
    padding: 6px 10px;
}
.mc-card-main .mini-chat-input-area {
    padding: 6px 10px 8px;
}
.mc-card-main .mini-chat-typing {
    padding: 0 10px;
}
/* --- Floating expanded chat window --- */
.mc-float-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9000;
    pointer-events: none;
}
.mc-float-window {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 720px;
    height: 520px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    animation: mcSlideUp 0.15s ease;
}
@keyframes mcSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.mc-float-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-heading);
    cursor: grab;
    user-select: none;
}
.mc-float-titlebar:active { cursor: grabbing; }
.mc-float-close {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.mc-float-close:hover {
    color: var(--fg-primary);
    background: rgba(255,255,255,0.06);
}
.mc-float-body {
    flex: 1;
    display: flex;
    min-height: 0;
}
/* Floating sidebar */
.mc-float-sidebar {
    width: 180px;
    min-width: 180px;
    background: var(--bg-page);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mc-float-sidebar-section {
    padding: 10px 12px 6px;
}
.mc-float-sidebar-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-dim);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mc-float-online-count {
    font-size: 9px;
    background: rgba(255,255,255,0.06);
    padding: 1px 5px;
    border-radius: 6px;
}
.mc-float-channel {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--fg-body);
    transition: background 0.12s;
}
.mc-float-channel:hover { background: rgba(255,255,255,0.06); }
.mc-float-channel.active { background: var(--accent); color: #fff; }
.mc-float-channel-hash { opacity: 0.5; font-size: 12px; }
.mc-float-channel-lock { margin-left: auto; font-size: 9px; opacity: 0.4; }
.mc-float-channel.active .mc-float-channel-lock { opacity: 0.7; }
.mc-float-user-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    font-size: 12px;
    color: var(--fg-body);
}
.mc-float-user-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mc-float-user-dot--online { background: #22c55e; }
.mc-float-user-dot--idle { background: #eab308; }
.mc-float-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Floating main area */
.mc-float-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mc-float-header {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.mc-float-header-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--fg-heading);
}
.mc-float-header-topic {
    font-size: 12px;
    color: var(--fg-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-float-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mc-float-typing {
    font-size: 11px;
    color: var(--fg-dim);
    padding: 0 14px;
    min-height: 16px;
    font-style: italic;
}
.mc-float-input-area {
    display: flex;
    gap: 6px;
    padding: 8px 14px 10px;
    border-top: 1px solid var(--border);
}
.mc-float-input {
    flex: 1;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--fg-primary);
    outline: none;
    font-family: inherit;
}
.mc-float-input:focus { border-color: var(--accent); }
.mc-float-send {
    background: var(--accent);
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    color: #000;
    cursor: pointer;
    font-size: 13px;
    transition: opacity 0.15s;
}
.mc-float-send:hover { opacity: 0.9; }
/* ============================================================
   SIDEBAR COLLAPSIBLE CARDS
   ============================================================ */
.sidebar-card .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.sidebar-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}
.sidebar-card .collapse-chevron {
    font-size: 11px;
    opacity: 0.4;
    transition: transform 0.2s;
}
.sidebar-card.collapsed .collapse-chevron {
    transform: rotate(-90deg);
}
.sidebar-card.collapsed .sidebar-card-content {
    display: none;
}
/* Per-card badge colours */
#my-drafts-badge {
    background: var(--fg);
    color: var(--bg-card);
}
#review-queue-badge {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}
/* My Drafts accent border */
#my-drafts-card {
    border-left: 3px solid var(--fg);
}
/* NMM colour states */
.nmm-backlog-card {
    border-left: 3px solid var(--red);
}
.nmm-backlog-card.nmm-yellow {
    border-left-color: #eab308;
}
.nmm-backlog-card.nmm-green {
    border-left-color: #22c55e;
}
.nmm-backlog-card.nmm-warning {
    border: 1px solid var(--red);
    border-left: 3px solid var(--red);
}
.nmm-backlog-card.nmm-yellow .nmm-count-badge {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}
.nmm-backlog-card.nmm-green .nmm-count-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}
/* Clickable draft cards */
.draft-item--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.draft-item--link:hover {
    background: var(--accent-dim);
}
.draft-item--link .draft-item-title {
    color: var(--fg-heading);
}
/* Right panel: first heading needs no extra top margin */
.mc-card-right .mc-card-sidebar-heading:first-child {
    margin-top: 0;
}
