/* ============================================================
   CDF MODERATION – Page + History Cards
============================================================ */

.mod-page { width: min(1400px, 98vw); margin: 14px auto; display: grid; grid-template-columns: 420px 1fr; gap: 12px; align-items: start; }
.mod-aside { position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; overflow: hidden; }
.mod-aside-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mod-aside-cta { display: none; }
.mod-search { display: grid; gap: 10px; padding: 12px; }
.mod-list { padding: 0 8px 10px; overflow: auto; }
.mod-main { overflow: hidden; }
.mod-sticky { position: sticky; top: 12px; z-index: 5; background: linear-gradient(180deg, rgba(10,15,10,.70), rgba(10,15,10,.92)), url('/css/camo.jpg') center/cover no-repeat; background-blend-mode: overlay; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 26px rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.35); border-radius: 16px; margin: 12px; padding: 12px 14px; }
.mod-titlewrap { min-width: 0; }
.mod-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill-danger { border-color: rgba(224,82,82,.35) !important; }
.mod-actions { display: flex; gap: 8px; }
.mod-gridframe { overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.12); }
.mod-see { padding: 6px 10px; }
.mod-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.sp-12 { height: 12px; }
.mod-form-grid { gap: 10px 14px; }
.mod-footerbar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.mod-dialog .e-dlg-header-content { background: linear-gradient(180deg, rgba(10,15,10,.70), rgba(10,15,10,.92)), url('/css/camo.jpg') center/cover no-repeat; background-blend-mode: overlay; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.mod-dialog .e-dlg-content { background: rgba(15, 22, 15, .96); }

@media (max-width: 1100px) { .mod-page { grid-template-columns: 360px 1fr; } }
@media (max-width: 992px) {
    .mod-page { grid-template-columns: 1fr; }
    .mod-aside { position: relative; top: auto; max-height: none; }
    .mod-aside-cta { display: block; }
    .mod-search { grid-template-columns: 1fr auto; align-items: center; }
    .mod-list { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 10px 10px 12px; scroll-snap-type: x mandatory; }
    .mod-list .milsim-item { min-width: 280px; scroll-snap-align: start; }
    .mod-main { margin-top: 0; }
    .mod-sticky { margin: 0; border-radius: 16px; }
    .mod-actions { display: none; }
    .mod-gridframe .e-gridcontent { overflow-x: auto; }
}
@media (max-width: 520px) { .mod-search { grid-template-columns: 1fr; } .mod-list .milsim-item { min-width: 88vw; } .mod-kv { grid-template-columns: 1fr; } .mod-dialog.e-dialog { width: 96vw !important; max-width: 96vw !important; } }

/* ===== HISTORY CARDS (mobile) ===== */
.mod-history-desktop { display: block; }
.mod-history-mobile { display: none; }
@media (max-width: 992px) { .mod-history-desktop { display: none; } .mod-history-mobile { display: block; } }
.mod-cards { display: grid; gap: 12px; }
.mod-card { border-radius: 14px; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.08); padding: 12px; box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.mod-card.is-active { border-color: rgba(212,249,149,.18); box-shadow: 0 14px 28px rgba(0,0,0,.45), 0 0 18px rgba(143,191,90,.12); }
.mod-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mod-tag { font-family: monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(10,15,10,.70); border: 1px solid rgba(255,255,255,.14); color: rgba(212,249,149,.95); }
.mod-date { font-family: monospace; font-size: 12px; opacity: .9; white-space: nowrap; }
.mod-reason { font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.mod-reason.is-empty { opacity: .7; font-weight: 700; }
.mod-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mod-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mod-states { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-ok { border-color: rgba(212,249,149,.28) !important; }
.pill-off { opacity: .75; }
.pill-warn { border-color: rgba(255,200,80,.25) !important; }
@media (max-width: 520px) { .mod-card { padding: 12px; } .mod-card-bottom { flex-direction: column; align-items: stretch; } .mod-see { width: 100%; } }