    .sync-status-stack {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        min-width: 0;
        white-space: nowrap;
    }
    .sync-status-inline {
        padding: 4px 8px;
        border: 1px solid #dbe6de;
        border-radius: 999px;
        background: rgba(255,255,255,.66);
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.35;
        max-width: 88px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sync-status-inline.is-error {
        border-color: #efc6ba;
        background: #fff7f4;
        color: #b7432c;
    }
    .sidebar-bottom {
        margin-top: 10px;
        padding-top: 0;
        border-top: none;
        flex: 0 0 auto;
    }
    .sidebar-bottom summary {
        display: none;
        cursor: pointer;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        list-style: none;
    }
    .sidebar-bottom summary::-webkit-details-marker { display: none; }
    .sidebar-button-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
    }
    .sidebar-button-row .btn {
        width: 100%;
    }
    .sidebar-button-row-compact .btn {
        min-height: 34px;
        padding-inline: 10px;
    }
    .sync-status {
        font-size: 12px;
        color: var(--faint);
        line-height: 1.55;
        margin-top: 8px;
        min-height: 34px;
        max-height: 76px;
        overflow-y: auto;
        overflow-wrap: anywhere;
    }
    .sync-status.is-error { color: #c24c34; }
    .local-save-warning {
        display: none;
        gap: 8px;
        margin-top: 10px;
        padding: 10px;
        border: 1px solid #e7b9ad;
        border-radius: 12px;
        background: #fff5f1;
        color: #9c3826;
        font-size: 12px;
        line-height: 1.5;
    }
    .local-save-warning.active { display: grid; }
    .local-save-warning-actions { display: flex; gap: 6px; flex-wrap: wrap; }
    .local-save-warning-actions .btn { min-height: 30px; padding: 4px 8px; font-size: 12px; }
    .sync-modal-status {
        margin: 12px 0 14px;
        padding: 11px 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #f6faf7;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.6;
        min-height: 42px;
        white-space: pre-line;
    }
    .sync-modal-status.is-error {
        border-color: #efc6ba;
        background: #fff7f4;
        color: #b7432c;
    }

    .content-sync-note {
        display: none;
        margin: -2px 0 8px;
        padding: 9px 11px;
        border-radius: var(--radius);
        background: #f4faf5;
        border: 1px solid #d5e5d9;
        color: #51715a;
        font-size: 12px;
        line-height: 1.6;
    }
    .content-sync-note.active { display: block; }
