/* ═══════════════════════════════════════════════════════════════════
   Страница «Журнал». Владелец - зона AUTH. Префикс jr-.
   Счётчики, аватары, таблица-полосы - общие детали зоны из css/home.css.
   ═══════════════════════════════════════════════════════════════════ */

.jr-head-page p { max-width: 640px; }
.jr-fgroup { display: inline-flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-width: 0; }
.jr-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.jr-ok .dot { width: 6px; height: 6px; color: var(--moss); }
.jr-src { font-size: 12.5px; color: var(--muted); }
.jr-siem { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px dashed var(--hair-2); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.jr-siem svg { width: 14px; height: 14px; color: var(--teal); flex: none; }

/* фильтры */
.jr-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.jr-filters__line { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-width: 0; }
.jr-filters__gap { width: 10px; }
.jr-seg { display: inline-flex; gap: 3px; background: #E6E6EB; padding: 3px; border-radius: 999px; }
.jr-seg button { height: 28px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; transition: background-color var(--dur-fast) var(--ease); }
.jr-seg button:hover { background: rgba(255,255,255,.6); }
.jr-seg button.is-on { background: var(--surface); color: var(--ink); }
.jr-dates { display: inline-flex; align-items: center; gap: 6px; }
.jr-dates .input { width: 150px; height: 32px; padding: 0 12px; font-size: 13px; }
.jr-search { flex: 1 1 260px; max-width: 420px; }
.jr-sel { width: auto; flex: 0 1 230px; min-width: 0; height: 38px; font-size: 13.5px; }
.jr-sel--sm { flex-basis: 170px; }
.jr-reset { margin-left: auto; }
.jr-reset svg { width: 13px; height: 13px; }
.jr-http { font-size: 13px; color: var(--muted); white-space: nowrap; padding: 0 4px; }

/* лента */
.jr-list { transition: opacity var(--dur-fast) var(--ease); }
.jr-list.is-loading { opacity: .55; pointer-events: none; }
.jr-strip { --cols: 92px minmax(170px, 1.15fr) minmax(170px, 1.1fr) minmax(200px, 1.9fr) 104px 92px; }
.jr-row { min-height: 60px; }
.jr-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.jr-time { font-family: var(--mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.jr-day { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.jr-act { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-code { font-family: var(--mono); font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-sum { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.jr-obj { font-family: var(--mono); font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.jr-ip, .jr-ms { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-c-src, .jr-c-res { min-width: 0; }
.jr-more-note { margin-left: auto; }
.jr-empty { padding: 48px 20px; }
.jr-foot { margin-top: 16px; }

/* карточка события */
.jr-card { display: flex; flex-direction: column; gap: 18px; }
.jr-card__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jr-card__when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.jr-card__sum { font-size: 14.5px; color: var(--ink); min-width: 0; }
.jr-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--hair-sep); }
.jr-kv > div { min-width: 0; }
.jr-kv__row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair-sep); align-items: baseline; }
.jr-kv__k { font-size: 12.5px; color: var(--muted); }
.jr-kv__v { font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.jr-kv__v.mono { font-size: 12.5px; }
.jr-sec { display: flex; flex-direction: column; gap: 8px; }
.jr-sec__h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.jr-sec__h .jr-copy { margin-left: auto; }
.jr-code-block { font-family: var(--mono); font-size: 12px; line-height: 1.55; background: var(--surface-2); border: 1px solid var(--hair);
  border-radius: 12px; padding: 12px 14px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; }
.jr-cef { color: var(--teal); }
.jr-rels { display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.jr-rel { display: grid; grid-template-columns: 70px minmax(120px, 200px) minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left;
  padding: 9px 14px; border: 0; border-bottom: 1px solid var(--hair-sep); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.jr-rel:last-child { border-bottom: 0; }
.jr-rel:hover { background: var(--surface-2); }
.jr-rel__t { font-size: 11.5px; color: var(--faint); }
.jr-rel__a { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-rel__s { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-ro { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-radius: 12px; background: var(--teal-wash); }
.jr-ro svg { width: 15px; height: 15px; color: var(--teal); flex: none; }

/* ─────────── адаптив ─────────── */
@media (max-width: 1280px) {
  .jr-strip { --cols: 84px minmax(150px, 1fr) minmax(150px, 1fr) minmax(160px, 1.5fr) 96px 88px; }
}
@media (max-width: 1100px) {
  .jr-strip { --cols: 80px minmax(150px, 1fr) minmax(150px, 1fr) minmax(0, 1.4fr) 88px; }
  .jr-strip .jr-head > :nth-child(5), .jr-strip .jr-c-src { display: none; }
  .jr-kv { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .jr-siem { order: 2; }
  .jr-search { max-width: none; flex-basis: 100%; }
  .jr-sel, .jr-sel--sm { flex: 1 1 200px; }
}
@media (max-width: 720px) {
  .jr-strip .jr-head { display: none; }
  .jr-strip .hm-strip__row.jr-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'who res' 'act act' 'det det' 'time time';
    gap: 6px 10px; padding: 12px 14px 12px 17px; }
  .jr-c-who { grid-area: who; } .jr-c-res { grid-area: res; text-align: right; } .jr-c-act { grid-area: act; }
  .jr-c-det { grid-area: det; } .jr-c-time { grid-area: time; display: flex; gap: 8px; align-items: baseline; }
  .jr-c-act { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
  .jr-act { white-space: normal; }
  .jr-more-note { display: none; }
  .jr-filters__gap { display: none; }
  .jr-filters__line { gap: 8px; }
  .jr-filters__line .pills { flex-wrap: wrap; }
  .jr-sel, .jr-sel--sm { flex: 1 1 100%; height: 44px; }
  .jr-dates { width: 100%; }
  .jr-dates .input { flex: 1; width: auto; height: 44px; }
  .jr-siem { white-space: normal; height: auto; padding: 8px 14px; }
  .jr-kv__row { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .jr-card__when { display: none; }
  .jr-rel { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .jr-rel__s { display: none; }
}
.jr-ro--demo { background: var(--surface-3); }
