.pn-section { margin: 16px 0; }
.pn-section .thead { padding: 8px 12px; }
.pn-count { font-weight: normal; opacity: 0.85; }
.pn-form-wrap { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #e5e5e5; width: 100%; max-width: 100%; box-sizing: border-box; }
.pn-form-wrap .sceditor-container,
.pn-section .sceditor-container { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
.pn-form-wrap iframe { min-height: 160px; }
.pn-form-title { font-weight: bold; margin-bottom: 8px; }
.pn-textarea { width: 100% !important; max-width: 100%; box-sizing: border-box; min-height: 160px; }
.pn-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.pn-form-status { margin-top: 8px; font-size: 13px; }
.pn-notice { padding: 10px; background: #f7f7f7; border-radius: 6px; margin-bottom: 12px; }

.pn-note {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 6px;
}
.pn-note-private {
    background: #f3eef8;
    border: 1px solid #e0d4f0;
}
.pn-note-pinned {
    box-shadow: 0 0 0 2px #7e57c2 inset;
}
.pn-note-reply {
    margin-inline-start: 28px;
    background: #fafafa;
}
.pn-note-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.pn-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.pn-meta { flex: 1; min-width: 0; }
.pn-author { font-weight: bold; margin-right: 6px; }
.pn-date, .pn-edited { font-size: 12px; color: #888; margin-inline-start: 6px; }
.pn-badge-private {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-inline-start: 6px;
    background: #6a1b9a;
    color: #fff;
}
.pn-badge-pinned {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-inline-start: 6px;
    background: #5e35b1;
    color: #fff;
}

.pn-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-btn {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    cursor: pointer;
}
.pn-btn:hover { background: #f0f0f0; }
.pn-btn.pn-delete { color: #c00; border-color: #e0a0a0; }
.pn-btn.pn-report { color: #b36b00; }
.pn-btn.pn-reply { color: #1a73e8; border-color: #90caf9; }
.pn-btn.pn-pin, .pn-btn.pn-unpin { color: #6a1b9a; border-color: #ce93d8; }

.pn-message { line-height: 1.55; word-wrap: break-word; padding-inline-start: 50px; }
.pn-reply-to { font-size: 12px; color: #888; padding-inline-start: 50px; margin-bottom: 4px; }
.pn-edit-box, .pn-reply-box { margin: 8px 0 0 50px; }
.pn-edit-ta, .pn-reply-ta { width: 100%; box-sizing: border-box; }
.pn-edit-priv { display: block; margin: 8px 0; font-size: 13px; }
.pn-edit-actions { margin-top: 8px; }
.pn-empty { padding: 16px; color: #888; text-align: center; }
.pn-more-wrap { text-align: center; margin-top: 12px; }

@media (max-width: 640px) {
    .pn-message, .pn-edit-box, .pn-reply-box, .pn-reply-to { padding-inline-start: 0; margin-inline-start: 0; }
    .pn-note-reply { margin-inline-start: 12px; }
    .pn-note-head { flex-wrap: wrap; }
}

.pn-note-reply {
    margin-inline-start: 28px;
    background: #eef6ff;
    border: 1px solid #d0e3f7;
}
.pn-quote {
    margin: 0 0 8px 50px;
    padding: 8px 12px;
    background: #f5f5f7;
    border-inline-start: 3px solid #9e9e9e;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #555;
}
.pn-quote-head { font-weight: bold; margin-bottom: 4px; color: #333; }
.pn-quote-body { line-height: 1.4; opacity: 0.95; }

.pn-report-overlay{position:fixed;inset:0;z-index:2147483646;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;}
.pn-report-modal{position:relative;background:#fff;color:#111;width:100%;max-width:420px;max-height:90vh;overflow:auto;border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.35);padding:20px 16px 16px;direction:rtl;text-align:right;font-family:Tahoma,Arial,sans-serif;}
.pn-report-close{position:absolute;top:4px;left:8px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#333;}
.pn-report-body{min-height:60px;}

@media (max-width: 640px) {
    .pn-quote { margin-inline-start: 0; }
}

.pn-note-reported {
    background: #fff8c4 !important;
    border: 1px solid #f0d86e !important;
    box-shadow: 0 0 0 2px rgba(240, 200, 50, 0.35);
}
.pn-pagination { text-align: center; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pn-page-btn { min-width: 36px; }
.pn-page-active { background: #1a73e8 !important; color: #fff !important; border-color: #1a73e8 !important; }

/* نوار هشدار گزارش — هم‌عرض محتوای انجمن، نه تمام صفحه */
#pnReportAlert {
    width: 90%;
    margin: 10px auto !important;
    box-sizing: border-box;
}

.pn-unread-bar {
    width: 90%;
    margin: 10px auto;
    box-sizing: border-box;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px 14px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}
.pn-unread-bar a { color: #856404; text-decoration: none; }
.pn-unread-bar a:hover { text-decoration: underline; }
