/* ═══════════════════════════════════════════════
   Wiki Moderation Dashboard  (wiki-mod.css)
   ═══════════════════════════════════════════════ */

/* ── Wrap ─────────────────────────────────────── */
.mod-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    font-family: "Lexend Deca", sans-serif;
    color: #d8d8d8;
}

/* ── Gate (not a mod) ─────────────────────────── */
.mod-gate {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}
.mod-gate h2 { font-size: 1.6rem; color: #e0c97f; margin-bottom: 12px; }
.mod-gate p  { margin-bottom: 20px; }

/* ── Header ───────────────────────────────────── */
.mod-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.mod-header h1 {
    font-size: 1.8rem;
    color: #e0c97f;
    margin: 0 0 4px;
}
.mod-subtitle { color: #888; font-size: 0.88rem; margin: 0; }

.mod-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
}
.mod-chip-name { font-weight: 600; color: #eee; }
.mod-chip-rep  { color: #888; font-size: 0.78rem; }

/* ── Tabs ─────────────────────────────────────── */
.mod-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #222;
    margin-bottom: 24px;
}
.mod-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 10px 18px;
    color: #888;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 7px;
}
.mod-tab:hover { color: #ccc; }
.mod-tab.active { color: #e0c97f; border-bottom-color: #e0c97f; }

.mod-badge {
    background: #e0c97f;
    color: #111;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 7px;
}

/* ── Request cards ────────────────────────────── */
.mod-request-list { display: flex; flex-direction: column; gap: 12px; }

.mod-request-card {
    background: #141414;
    border: 1px solid #252525;
    border-radius: 10px;
    padding: 16px 18px;
    position: relative;
    transition: border-color 0.15s;
}
.mod-request-card:hover { border-color: #3a3a3a; }

.mod-card-approved { border-left: 3px solid #4c4; }
.mod-card-disapproved { border-left: 3px solid #f66; }

.mod-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.mod-card-page { font-weight: 600; color: #e0c97f; font-size: 0.95rem; }
.mod-card-time { font-size: 0.78rem; color: #555; }

.mod-card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.84rem;
    color: #aaa;
}
.mod-card-summary {
    color: #666;
    font-style: italic;
    font-size: 0.82rem;
}
.mod-card-verdict {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.mod-verdict-approved   { color: #4c4; }
.mod-verdict-disapproved { color: #f66; }

.mod-review-btn { font-size: 0.82rem; padding: 5px 14px; }

/* ── Avatars ──────────────────────────────────── */
.mod-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #222;
}

/* ── Empty state ──────────────────────────────── */
.mod-empty {
    color: #555;
    font-size: 0.88rem;
    text-align: center;
    padding: 32px 0;
}

/* ── Modal overlay ────────────────────────────── */
.mod-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    padding: 40px 16px;
    overflow-y: auto;
}
.mod-modal {
    background: #161616;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    width: 100%;
    max-width: 920px;
    padding: 24px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    font-family: "Lexend Deca", sans-serif;
}

.mod-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}
.mod-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e0c97f;
}
.mod-modal-meta { font-size: 0.82rem; color: #888; margin-top: 4px; }
.mod-modal-close {
    background: none;
    border: 1px solid #333;
    border-radius: 6px;
    color: #888;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px 10px;
    flex-shrink: 0;
}
.mod-modal-close:hover { color: #eee; border-color: #555; }

/* ── Diff view ────────────────────────────────── */
.mod-diff-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.mod-diff-col { min-width: 0; }
.mod-diff-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 6px 6px 0 0;
}
.mod-diff-label-old { background: #2b1515; color: #f88; }
.mod-diff-label-new { background: #152b15; color: #8f8; }

.mod-diff-pre {
    margin: 0;
    padding: 12px 14px;
    background: #0e0e0e;
    border: 1px solid #222;
    border-top: none;
    border-radius: 0 0 6px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 340px;
    overflow-y: auto;
    color: #ccc;
}

/* Highlighted lines */
.diff-removed { background: rgba(255,80,80,0.12); display: block; border-left: 3px solid #f55; padding-left: 6px; }
.diff-added   { background: rgba(80,200,80,0.12);  display: block; border-left: 3px solid #4c4; padding-left: 6px; }

/* ── Summary & reason ─────────────────────────── */
.mod-modal-summary {
    font-size: 0.84rem;
    color: #999;
    font-style: italic;
    margin-bottom: 14px;
}
.mod-modal-summary-label { font-style: normal; font-weight: 600; color: #888; }

.mod-modal-reason label {
    display: block;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 6px;
}
.mod-reason-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 7px;
    color: #ddd;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.85rem;
    padding: 10px 12px;
    resize: vertical;
    min-height: 70px;
    margin-bottom: 16px;
}
.mod-reason-textarea:focus { outline: none; border-color: #444; }

.mod-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.mod-btn-approve    { background: #1a3a1a; border-color: #2d6b2d; color: #7de87d; }
.mod-btn-approve:hover { background: #1f4a1f; }
.mod-btn-disapprove { background: #3a1a1a; border-color: #6b2d2d; color: #e87d7d; }
.mod-btn-disapprove:hover { background: #4a1f1f; }

/* ── Moderator management ─────────────────────── */
.mod-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e0c97f;
    margin-bottom: 14px;
}
.mod-add-mod-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.mod-input {
    flex: 1;
    min-width: 240px;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 7px;
    color: #ddd;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.85rem;
    padding: 9px 13px;
}
.mod-input:focus { outline: none; border-color: #444; }

.mod-mod-list { display: flex; flex-direction: column; gap: 8px; }
.mod-mod-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #252525;
    border-radius: 9px;
    padding: 12px 16px;
}
.mod-mod-info { flex: 1; min-width: 0; }
.mod-mod-name { font-weight: 600; color: #ddd; font-size: 0.9rem; }
.mod-mod-id   { font-size: 0.78rem; color: #666; margin-top: 2px; }
.mod-btn-remove {
    background: #2a1515;
    border-color: #4a2020;
    color: #e88;
    font-size: 0.8rem;
    padding: 4px 12px;
}
.mod-btn-remove:hover { background: #3a1515; }

/* ── Page history (used in article.html) ─────── */
.wiki-history {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #1e1e1e;
    font-family: "Lexend Deca", sans-serif;
}
.wiki-history-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 14px;
}
.wiki-history-list { display: flex; flex-direction: column; gap: 6px; }
.wiki-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #777;
    padding: 8px 10px;
    border-radius: 7px;
    background: #111;
    border: 1px solid #1e1e1e;
}
.wiki-history-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #222;
}
.wiki-history-editor   { color: #bbb; font-weight: 600; }
.wiki-history-time     { color: #555; margin-left: auto; white-space: nowrap; }
.wiki-history-approved { color: #5a5; font-size: 0.75rem; }
.wiki-history-summary  { color: #666; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }

/* ── Contributors block (wiki articles + guides) ─ */
.wiki-contributors {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #1e1e1e;
    font-family: "Lexend Deca", sans-serif;
}
.wiki-contributors-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 12px;
}
.wiki-contributors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.wiki-contributor-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #141414;
    border: 1px solid #232323;
    border-radius: 20px;
    padding: 5px 12px 5px 5px;
    font-size: 0.8rem;
    color: #bbb;
}
.wiki-contributor-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #222;
}
.wiki-contributor-rep {
    font-size: 0.72rem;
    color: #666;
    margin-left: 2px;
}

/* ── Reputation badge (in editor / article meta) ─ */
.wiki-rep-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-family: "Lexend Deca", sans-serif;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}
.wiki-rep-low      { background: #2a1f00; color: #c8961e; border: 1px solid #4a3800; }
.wiki-rep-mid      { background: #0f2a0f; color: #6ecc6e; border: 1px solid #1e4a1e; }
.wiki-rep-high     { background: #0f1f2a; color: #6ebfcc; border: 1px solid #1e3a4a; }
.wiki-rep-elite    { background: #1e0f2a; color: #b88fe8; border: 1px solid #3a1e4a; }

/* ── Pending notice (editor) ──────────────────── */
.wiki-edit-notice {
    background: #1a160a;
    border: 1px solid #4a380a;
    border-radius: 8px;
    padding: 11px 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-family: "Lexend Deca", sans-serif;
    color: #c8a83a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wiki-edit-notice.info { background: #0d1a1a; border-color: #0a3a3a; color: #3ab8b8; }
.wiki-edit-notice.error { background: #1a0d0d; border-color: #3a0a0a; color: #c84040; }

/* ── Mobile ───────────────────────────────────── */
@media (max-width: 700px) {
    .mod-diff-wrap { grid-template-columns: 1fr; }
    .mod-add-mod-row { flex-direction: column; }
    .mod-header { flex-direction: column; }
}

/* ── Item Seeder ──────────────────────────────── */
.mod-seed-bar-bg {
    width: 100%;
    height: 14px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 99px;
    overflow: hidden;
}
.mod-seed-bar {
    height: 100%;
    background: linear-gradient(90deg, #2a7a2a, #3aaa3a);
    border-radius: 99px;
    transition: width 0.4s ease;
}
.mod-seed-log {
    margin-top: 14px;
    max-height: 220px;
    overflow-y: auto;
    background: #0c0c0c;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: #aaa;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mod-seed-log .log-done  { color: #5c5; }
.mod-seed-log .log-error { color: #e55; }
.mod-seed-log .log-info  { color: #8af; }

/* ────────────────────────────────────────────────────────────
   Wiki User Profile Page  (/wiki/user/:discord_id)
   ──────────────────────────────────────────────────────────── */

.wup-card {
    display: flex;
    align-items: center;
    gap: 22px;
    background: #111;
    border: 1px solid #232323;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 28px;
    font-family: "Lexend Deca", sans-serif;
    flex-wrap: wrap;
}

.wup-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.wup-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a1a;
    display: block;
    position: relative;
    z-index: 1;
}

.wup-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #3a3a3a;
    z-index: 0;
}

.wup-info {
    flex: 1;
    min-width: 0;
}

.wup-username-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.wup-username {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: -0.01em;
}

.wup-mod-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #1e2a1e;
    border: 1px solid #2a5a2a;
    color: #6ecc6e;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 12px;
}

.wup-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wup-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.wup-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
}

.wup-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
}

.wup-stat-divider {
    width: 1px;
    height: 32px;
    background: #222;
    flex-shrink: 0;
}

/* ── Edit history section ──────────────────────────────────── */
.wup-history-wrap {
    font-family: "Lexend Deca", sans-serif;
}

.wup-history-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 10px;
}

.wup-history-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.wup-history-count {
    font-size: 0.75rem;
    color: #555;
}

.wup-history-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wup-edit-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    background: #0d0d0d;
    font-size: 0.82rem;
    flex-wrap: wrap;
    transition: background 0.12s;
}

.wup-edit-row:hover {
    background: #141414;
}

.wup-edit-page {
    color: #5ba3f5;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
}

.wup-edit-page:hover {
    text-decoration: underline;
}

.wup-edit-summary {
    color: #666;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
    flex: 1;
    min-width: 0;
}

.wup-edit-time {
    color: #444;
    white-space: nowrap;
    margin-left: auto;
    font-size: 0.78rem;
}

.wup-edit-status {
    font-size: 0.74rem;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.wup-auto     { background: #0f1f0f; color: #6ecc6e; border: 1px solid #1e3a1e; }
.wup-approved { background: #0f1f0f; color: #6ecc6e; border: 1px solid #1e3a1e; }
.wup-pending  { background: #1f1a0f; color: #c8a83a; border: 1px solid #3a300f; }

.wup-loading {
    color: #555;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.85rem;
    padding: 20px 0;
}

.wup-empty {
    color: #555;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.85rem;
    padding: 20px 0;
}

/* ── Link styles for contributor chips + history ────────────── */
a.wiki-contributor-chip {
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

a.wiki-contributor-chip:hover {
    background: #1c1c1c;
    border-color: #3a3a3a;
    transform: translateY(-1px);
}

.wiki-history-user-link {
    color: #bbb;
    font-weight: 600;
    text-decoration: none;
}

.wiki-history-user-link:hover {
    color: #5ba3f5;
    text-decoration: underline;
}

.wiki-history-avatar-link {
    display: inline-flex;
    line-height: 0;
}

/* ── Collapsible history (details/summary) ──────────────────── */
.wiki-history-details > summary.wiki-history-title {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.wiki-history-details > summary.wiki-history-title::-webkit-details-marker { display: none; }
.wiki-history-details > summary.wiki-history-title::after {
    content: '▸';
    font-size: 0.75rem;
    color: #555;
    margin-left: 2px;
    transition: transform 0.18s;
}
.wiki-history-details[open] > summary.wiki-history-title::after {
    transform: rotate(90deg);
}
.wiki-history-details > .wiki-history-list {
    margin-top: 10px;
}
.wiki-history-count {
    color: #555;
    font-weight: 400;
}

/* ── Status badge on article pages ─────────────────────────── */
.wiki-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-family: "Lexend Deca", sans-serif;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 12px;
    cursor: default;
    white-space: nowrap;
}
.wiki-status-good { background: #0f2a0f; color: #6ecc6e; border: 1px solid #1e4a1e; }
.wiki-status-warn { background: #2a1f00; color: #c8961e; border: 1px solid #4a3800; }
.wiki-status-bad  { background: #2a0f0f; color: #cc6e6e; border: 1px solid #4a1e1e; }

/* ── Report button in article actions ──────────────────────── */
.wiki-btn-report {
    background: transparent;
    border: 1px solid #3a1a1a;
    color: #c84040;
    cursor: pointer;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1;
}
.wiki-btn-report:hover {
    background: #2a0f0f;
    border-color: #5a2020;
}

/* ── Report modal overlay ───────────────────────────────────── */
.wiki-report-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}
.wiki-report-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.wiki-report-modal {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    width: 480px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    font-family: "Lexend Deca", sans-serif;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.wiki-report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #1e1e1e;
    font-size: 1rem;
    font-weight: 700;
    color: #e0e0e0;
}
.wiki-report-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.12s;
}
.wiki-report-close:hover { color: #aaa; }
.wiki-report-modal-body {
    padding: 20px 22px 22px;
}
.wiki-report-desc {
    color: #888;
    font-size: 0.83rem;
    margin: 0 0 16px;
}
.wiki-report-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.wiki-report-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1px solid #1e1e1e;
    background: #0d0d0d;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.wiki-report-option:hover {
    background: #141414;
    border-color: #2a2a2a;
}
.wiki-report-option input[type="radio"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #5ba3f5;
}
.wiki-report-option input[type="radio"]:checked ~ .wiki-report-option-text strong {
    color: #5ba3f5;
}
.wiki-report-option-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.wiki-report-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wiki-report-option-text strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc;
    transition: color 0.12s;
}
.wiki-report-option-text small {
    font-size: 0.76rem;
    color: #555;
}
.wiki-report-details {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    color: #ccc;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.83rem;
    padding: 10px 12px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.12s;
    outline: none;
}
.wiki-report-details:focus { border-color: #3a3a3a; }
.wiki-report-status {
    margin-top: 10px;
    font-size: 0.82rem;
    padding: 8px 12px;
    border-radius: 7px;
}
.wiki-report-status-ok      { background: #0f2a0f; color: #6ecc6e; border: 1px solid #1e3a1e; }
.wiki-report-status-error   { background: #2a0f0f; color: #cc6e6e; border: 1px solid #3a1e1e; }
.wiki-report-status-loading { background: #1a1a1a; color: #888;    border: 1px solid #2a2a2a; }
.wiki-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

/* ── Report details required label ─────────────────────────── */
.wiki-report-details-label {
    display: block;
    font-size: 0.82rem;
    font-family: "Lexend Deca", sans-serif;
    color: #aaa;
    margin-bottom: 6px;
    margin-top: 14px;
}
.wiki-report-required {
    color: #e55;
}

/* ── Moderation: Reports tab ────────────────────────────────── */
.mod-badge-red {
    background: #4a1a1a;
    color: #e87070;
}
.mod-badge-orange {
    background: #3d2200;
    color: #ffaa55;
}
.mod-reports-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.mod-reports-filter-label {
    font-size: 0.78rem;
    color: #666;
    font-family: "Lexend Deca", sans-serif;
}
.mod-reports-filter {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #888;
    font-family: "Lexend Deca", sans-serif;
    font-size: 0.78rem;
    padding: 4px 13px;
    border-radius: 99px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.mod-reports-filter.active,
.mod-reports-filter:hover {
    background: #1e2a3a;
    border-color: #2a4a6a;
    color: #8bbfe0;
}
.mod-report-card {
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    font-family: "Lexend Deca", sans-serif;
    transition: border-color 0.12s;
}
.mod-report-card:hover { border-color: #2a2a2a; }
.mod-report-resolved { opacity: 0.6; }
.mod-report-reason {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 6px;
    flex-wrap: wrap;
}
.mod-report-reason-badge {
    background: #1a1f2a;
    border: 1px solid #2a3040;
    color: #8bbfe0;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 10px;
}
.mod-report-status-badge {
    font-size: 0.76rem;
    padding: 2px 9px;
    border-radius: 10px;
}
.mod-report-open-badge      { background: #2a0f0f; color: #e07070; border: 1px solid #4a1e1e; }
.mod-report-resolved-badge  { background: #0f2a0f; color: #6ecc6e; border: 1px solid #1e3a1e; }
.mod-report-details {
    font-size: 0.83rem;
    color: #888;
    font-style: italic;
    margin: 6px 0;
    padding: 7px 11px;
    background: #111;
    border-left: 3px solid #2a2a2a;
    border-radius: 0 6px 6px 0;
}
.mod-report-reporter {
    font-size: 0.76rem;
    color: #555;
    margin-top: 6px;
}
.mod-report-reporter code {
    background: #1a1a1a;
    padding: 1px 5px;
    border-radius: 4px;
    color: #8bbfe0;
}
.mod-report-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.mod-page-link {
    color: #5ba3f5;
    text-decoration: none;
}
.mod-page-link:hover { text-decoration: underline; }

/* ── Recipe request preview grid ───────────────────────────── */
.rr-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.rr-grid {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    grid-template-rows: repeat(3, 34px);
    gap: 2px;
}
.rr-cell {
    width: 34px;
    height: 34px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.6rem;
    color: #666;
}
.rr-cell-filled {
    border-color: #555;
    background: #222;
}
.rr-cell img {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}
.rr-cell-amount {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 0.6rem;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
    line-height: 1;
    pointer-events: none;
}
.rr-arrow {
    font-size: 1.2rem;
    color: #888;
    flex-shrink: 0;
}
.rr-result-cell {
    width: 42px;
    height: 42px;
    background: #1a2a1a;
    border: 1px solid #4a7a4a;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.rr-result-cell img {
    width: 34px;
    height: 34px;
    image-rendering: pixelated;
}
