/* Вкладка «Репутация» (views/reputation.ejs) — макет «Список + досье».
   Все правила под .rep: специфичность .rep .x (0,2,0) перебивает общие
   body button {…} (0,0,2) из style.css без !important. */
.content-area.rep-wide { max-width: 1680px; }
.rep { --rep-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.rep .mono { font-family: var(--rep-mono); font-variant-numeric: tabular-nums; }
.rep .pos { color: var(--success-bright); }
.rep .neg { color: var(--danger); }
.rep .rep-mu { color: var(--text-muted); font-weight: 400; }
.rep .rep-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.rep .rep-mb { margin-bottom: 8px; }
.rep kbd { font-family: var(--rep-mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--glass-border); color: var(--text-muted); }

.rep .rep-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rep .rep-head h1 { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
.rep .rep-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.rep .rep-head-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rep .rep-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); color: var(--text-muted); font-size: 12px; font-weight: 600; }
.rep .rep-badge.warn { color: var(--warning); border-color: rgba(234,179,8,.4); background: rgba(234,179,8,.08); }

.rep .rep-seg { display: inline-flex; border: 1px solid var(--glass-border); border-radius: 10px; padding: 3px; background: rgba(255,255,255,.03); gap: 2px; }
.rep .rep-seg a, .rep .rep-seg button { padding: 5px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); background: none; border: 0; box-shadow: none; text-decoration: none; cursor: pointer; transform: none; min-width: 0; height: auto; line-height: 1.4; }
.rep .rep-seg a:hover, .rep .rep-seg button:hover { color: var(--text-primary); box-shadow: none; transform: none; }
.rep .rep-seg .on { background: var(--accent-soft); color: var(--text-primary); box-shadow: inset 0 0 0 1px rgba(59,130,246,.45); }
.rep .rep-seg-sm a, .rep .rep-seg-sm button { padding: 4px 9px; font-size: 12px; }

.rep .rep-grid { display: grid; grid-template-columns: minmax(330px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .rep .rep-grid { grid-template-columns: 1fr; } }
.rep .rep-card { background: var(--glass-bg); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.rep .rep-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rep .rep-card-h h3 { margin: 0; }
.rep .rep-empty { color: var(--text-muted); padding: 10px 0; }

/* ---- кнопки ---- */
.rep .rep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 13px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.05); color: var(--text-primary); white-space: nowrap; box-shadow: none; transform: none; cursor: pointer; text-decoration: none; min-width: 0; }
.rep .rep-btn:hover { border-color: var(--glass-border-hover); background: var(--glass-bg-hover); box-shadow: none; transform: none; }
.rep .rep-btn.on { border-color: rgba(59,130,246,.6); background: var(--accent-soft); }
.rep .rep-btn.pri { background: var(--accent); border-color: var(--accent-bright); box-shadow: 0 6px 20px rgba(37,99,235,.35); color: #fff; }
.rep .rep-btn.pri:hover { background: var(--accent-bright); }
.rep .rep-btn.pri:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.rep .rep-btn.dng { background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.45); color: #fda4af; }
.rep .rep-btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.rep .rep-mini { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); color: var(--text-muted); font-size: 11px; font-weight: 600; box-shadow: none; transform: none; cursor: pointer; min-width: 0; }
.rep .rep-mini:hover { color: var(--text-primary); box-shadow: none; transform: none; border-color: var(--glass-border-hover); background: rgba(255,255,255,.07); }
.rep .rep-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); font-size: 12.5px; font-weight: 500; color: var(--text-primary); white-space: nowrap; box-shadow: none; transform: none; cursor: pointer; min-width: 0; }
.rep .rep-chip:hover { border-color: var(--glass-border-hover); box-shadow: none; transform: none; background: rgba(255,255,255,.07); }
.rep .rep-chip.on { border-color: rgba(59,130,246,.6); background: var(--accent-soft); }
.rep .rep-presets .rep-chip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 26px; }
.rep .rep-chip.neg { color: #fda4af; border-color: rgba(244,63,94,.35); }

/* ---- аватары, пилюли, статусы ---- */
.rep .rep-av { border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.rep .rep-av-ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #334155, #1e293b); }
.rep .rep-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); color: var(--text-muted); white-space: nowrap; }
.rep .rep-p-rep { color: #93c5fd; border-color: rgba(59,130,246,.35); background: rgba(37,99,235,.12); }
.rep .rep-p-man { color: #c4b5fd; border-color: rgba(102,58,243,.4); background: rgba(102,58,243,.14); }
.rep .rep-p-maj { color: #67e8f9; border-color: rgba(34,211,238,.35); background: var(--cyan-soft); }
.rep .rep-p-neg { color: #fda4af; border-color: rgba(244,63,94,.4); background: rgba(244,63,94,.1); }
.rep .rep-tag { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 700; border: 1px solid rgba(234,179,8,.35); color: var(--warning); margin-right: 4px; }
.rep .rep-tag.cur { border-color: rgba(59,130,246,.4); color: #93c5fd; }
.rep .rep-st { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--text-faint); margin-left: 4px; }
.rep .rep-st.ok { color: var(--success-bright); }
.rep .rep-st.wait { color: var(--warning); }
.rep .amt { font-family: var(--rep-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.rep .rep-link { color: #93c5fd; display: inline-flex; align-items: center; gap: 5px; }

/* ---- список (левая колонка) ---- */
.rep .rep-list { padding: 14px; position: sticky; top: 16px; }
.rep .rep-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.03); color: var(--text-faint); }
.rep .rep-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rep .rep-search input { border: 0; background: none; padding: 0; box-shadow: none; height: 100%; }
.rep .rep-filters { margin: 10px 0 8px; }
.rep .rep-rows { max-height: calc(100vh - 260px); min-height: 320px; overflow-y: auto; margin: 0 -6px; padding: 0 6px 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.rep .rep-row { position: relative; display: flex; align-items: center; gap: 6px; border-radius: 12px; border: 1px solid transparent; margin-bottom: 2px; }
.rep .rep-row:hover { background: rgba(255,255,255,.04); }
.rep .rep-row.sel { background: var(--accent-soft); border-color: rgba(59,130,246,.5); }
.rep .rep-row.sel::before { content: ''; position: absolute; left: -7px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
.rep .rep-row.picked { background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.35); }
.rep .rep-row-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px 8px 8px 4px; color: inherit; text-decoration: none; }
.rep .rep-row-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rep .rep-row-name b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep .rep-row-name small { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep .rep-row-total { font-size: 16px; font-weight: 600; min-width: 40px; text-align: right; }
.rep .rep-spark { flex-shrink: 0; }
.rep .rep-rank { width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11.5px; font-weight: 700; color: var(--text-faint); font-family: var(--rep-mono); }
.rep .rep-rank-1 { background: linear-gradient(135deg, #fde047, #ca8a04); color: #1a1405; }
.rep .rep-rank-2 { background: linear-gradient(135deg, #e5e7eb, #94a3b8); color: #111827; }
.rep .rep-rank-3 { background: linear-gradient(135deg, #fdba74, #c2410c); color: #1c0d02; }
.rep .rep-cb { display: inline-flex; align-items: center; padding-left: 6px; cursor: pointer; }
.rep .rep-cb input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rep .rep-cb span { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.28); display: inline-block; transition: background .12s, border-color .12s; }
.rep .rep-cb input:checked + span { background: var(--cyan); border-color: var(--cyan); box-shadow: inset 0 0 0 3px #0a0a12; }
.rep .rep-cb input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.rep .rep-row-quick { position: absolute; right: 54px; top: 50%; transform: translateY(-50%); display: none; gap: 4px; }
.rep .rep-row:hover .rep-row-quick { display: inline-flex; }
.rep .rep-row:hover .rep-spark { visibility: hidden; }
.rep .rep-row-quick a { font-family: var(--rep-mono); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(244,63,94,.4); background: rgba(244,63,94,.12); color: #fda4af; text-decoration: none; }
.rep .rep-row-quick a.plus { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.12); color: var(--success-bright); }
.rep .rep-list-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--glass-border); }
.rep .rep-hint { margin-top: 10px; font-size: 11.5px; color: var(--text-faint); }

/* ---- профиль ---- */
.rep .rep-prof { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rep .rep-prof-id { flex: 1; min-width: 200px; }
.rep .rep-prof-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.rep .rep-stats { display: flex; gap: 0; }
.rep .rep-stats > div { padding: 0 20px; border-left: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 2px; }
.rep .rep-stats b { font-size: 24px; font-weight: 600; }
.rep .rep-stats b small { font-size: 13px; color: var(--text-faint); }
.rep .rep-stats span { font-size: 11.5px; color: var(--text-muted); }

/* ---- форма выдачи ---- */
.rep .rep-give-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rep .rep-give-row input[type=text][data-rep-reason] { flex: 1; min-width: 220px; height: 38px; }
.rep .rep-stepper { display: inline-flex; align-items: center; border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden; height: 38px; }
.rep .rep-stepper input { width: 64px; border: 0; border-radius: 0; text-align: center; font-family: var(--rep-mono); font-weight: 700; font-size: 16px; background: rgba(34,197,94,.08); color: var(--success-bright); padding: 0; height: 100%; box-shadow: none; }
.rep .rep-stepper.minus input { background: rgba(244,63,94,.08); color: var(--danger); }
.rep .rep-step { width: 36px; height: 100%; border: 0; border-radius: 0; background: rgba(255,255,255,.03); color: var(--text-primary); font-size: 18px; box-shadow: none; transform: none; padding: 0; min-width: 0; cursor: pointer; }
.rep .rep-step:hover { background: rgba(255,255,255,.08); box-shadow: none; transform: none; }
.rep .rep-quick { display: inline-flex; gap: 6px; }
.rep .rep-qa { height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); color: var(--text-muted); font-family: var(--rep-mono); font-size: 12px; font-weight: 600; box-shadow: none; transform: none; min-width: 0; cursor: pointer; }
.rep .rep-qa:hover { color: var(--text-primary); box-shadow: none; transform: none; border-color: var(--glass-border-hover); background: rgba(255,255,255,.07); }
.rep .rep-qa.on { background: var(--accent-soft); border-color: rgba(59,130,246,.6); color: var(--text-primary); }
.rep .rep-preview { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }
.rep .rep-preview b { font-family: var(--rep-mono); color: var(--text-primary); }
.rep .rep-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.rep .rep-presets .rep-lbl { margin-right: 4px; }

/* ---- график ---- */
.rep .rep-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-muted); }
.rep .rep-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rep .rep-legend .ln { width: 14px; height: 2px; display: inline-block; }
.rep .rep-legend .ln.cy { background: var(--cyan); }
.rep .rep-legend .ln.gold { background: repeating-linear-gradient(90deg, #eab308 0 4px, transparent 4px 7px); }
.rep .rep-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; border: 2px solid; }
.rep .rep-legend .dot.rep { border-color: #3b82f6; } .rep .rep-legend .dot.man { border-color: #a78bfa; }
.rep .rep-legend .dot.maj { border-color: #22d3ee; } .rep .rep-legend .dot.neg { border-color: #f43f5e; }
.rep .rep-chart-svg { height: 210px; }
.rep .rep-ax { fill: var(--text-faint); font-size: 10.5px; font-family: var(--rep-mono); }
.rep .rep-ax-mu { fill: var(--text-muted); font-family: inherit; }
.rep .rep-ax-gold { fill: #eab308; font-family: inherit; }

/* ---- история / лог ---- */
.rep .rep-hist { padding: 18px 0 6px; }
.rep .rep-hist .rep-card-h, .rep .rep-hist .rep-logf, .rep .rep-hist > .rep-empty { padding: 0 20px; }
.rep .rep-ev { display: grid; grid-template-columns: 44px 46px minmax(0, 1fr) 150px auto; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--glass-border); }
.rep .rep-ev:hover { background: rgba(255,255,255,.025); }
.rep .rep-ev-when { font-size: 11px; color: var(--text-faint); line-height: 1.45; }
.rep .rep-ev-amt { font-size: 15px; }
.rep .rep-ev-reason { font-size: 13.5px; margin-bottom: 4px; overflow-wrap: anywhere; }
.rep .rep-ev-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rep .rep-ev-who { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; margin-bottom: 2px; font-size: 13px; }
.rep .rep-ev-giver { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rep .rep-ev-giver span { display: flex; flex-direction: column; min-width: 0; }
.rep .rep-ev-giver b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep .rep-ev-giver small { font-size: 11px; color: var(--text-faint); }
.rep .rep-ev-act { display: flex; justify-content: flex-end; }
.rep .rep-ev.revoked .rep-ev-reason, .rep .rep-ev.revoked .rep-ev-amt { text-decoration: line-through; opacity: .5; }
.rep .rep-ev.revoked .rep-ev-giver { opacity: .55; }
.rep .rep-ev.comp { background: rgba(244,63,94,.03); }
.rep .rep-ev-revnote { grid-column: 3 / -1; font-size: 12px; color: #fda4af; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 10px; border-radius: 9px; background: rgba(244,63,94,.07); border: 1px solid rgba(244,63,94,.25); }
@media (max-width: 1280px) {
  .rep .rep-ev { grid-template-columns: 50px 50px minmax(0, 1fr) 120px; }
  .rep .rep-ev-giver { grid-column: 3; }
}

.rep .rep-revoke { position: relative; }
.rep .rep-revoke summary { list-style: none; }
.rep .rep-revoke summary::-webkit-details-marker { display: none; }
.rep .rep-revoke[open] summary { border-color: rgba(244,63,94,.5); color: #fda4af; }
.rep .rep-revoke form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 340px; display: flex; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(16,15,24,.96); border: 1px solid var(--glass-border); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.rep .rep-revoke form input[type=text] { flex: 1; min-width: 0; height: 30px; padding: 4px 9px; font-size: 13px; }
.rep .rep-revoke form button { flex-shrink: 0; }

.rep .rep-logf { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.rep .rep-logf label { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1; }

/* ---- массовая выдача ---- */
.rep .rep-mass { border-color: rgba(34,211,238,.35); }
.rep .rep-mass-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 6px; }
@media (max-width: 1280px) { .rep .rep-mass-cols { grid-template-columns: 1fr; } }
.rep .rep-prev { width: 100%; border-collapse: collapse; font-size: 13px; }
.rep .rep-prev th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-faint); padding: 4px 6px; border-bottom: 1px solid var(--glass-border); }
.rep .rep-prev td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,.05); }
.rep .rep-prev td .who { display: inline-flex; align-items: center; gap: 7px; }
.rep .rep-prev .up { color: var(--success-bright); font-size: 11px; margin-left: 4px; }
.rep .rep-prev .down { color: var(--danger); font-size: 11px; margin-left: 4px; }
.rep .rep-botmsg { border-radius: 10px; background: #2b2d31; border-left: 4px solid #23a55a; padding: 10px 12px; font-size: 13px; color: #dbdee1; font-family: 'gg sans', 'Noto Sans', system-ui, sans-serif; }
.rep .rep-botmsg.neg { border-left-color: #da373c; }
.rep .rep-botmsg b { color: #f2f3f5; }
.rep .rep-botmsg .f { color: #b5bac1; font-size: 12px; margin-top: 6px; }
.rep .rep-botmsg .m { background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.rep .rep-mass-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--glass-border); }
.rep .rep-batch { display: grid; grid-template-columns: 90px 70px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.rep .rep-mono-mu { font-family: var(--rep-mono); font-size: 11.5px; color: var(--text-faint); }
.rep .rep-batch-r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep .rep-stack { display: inline-flex; align-items: center; }
.rep .rep-stack .rep-av { margin-left: -6px; border: 2px solid #12111a; }
.rep .rep-stack .rep-av:first-child { margin-left: 0; }
.rep .rep-stack small { margin-left: 4px; color: var(--text-faint); font-size: 11px; }
.rep .rep-btn svg, .rep .rep-mini svg { flex-shrink: 0; }
.rep .rep-logf select { height: 38px; }

/* ===== вид «Пульт» (views/partials/rep_pult.ejs) ===== */
.rep .rep-layout a { min-width: 64px; text-align: center; }
.rep .rep-pult-top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(330px, 24vw, 400px); gap: 16px; align-items: start; }
@media (max-width: 1280px) { .rep .rep-pult-top { grid-template-columns: 1fr; } }
.rep .rep-tbl-card { padding: 18px 14px 12px; }
.rep .rep-tbl-card .rep-card-h { padding: 0 6px; }
.rep .rep-tbl-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 6px 10px; }
.rep .rep-search-sm { height: 32px; width: 220px; margin-right: 6px; }
.rep .rep-tbl-wrap { overflow-x: auto; }
.rep .rep-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.rep .rep-tbl th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); padding: 6px 6px; border-bottom: 1px solid var(--glass-border); white-space: nowrap; }
.rep .rep-tbl td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
.rep .rep-tbl .r { text-align: right; } .rep .rep-tbl .c { text-align: center; }
.rep .rep-tbl tr.rep-row { cursor: default; display: table-row; border: 0; }
.rep .rep-tbl tr.rep-row:hover td { background: rgba(255,255,255,.03); }
.rep .rep-tbl tr.marked td { background: rgba(34,211,238,.06); }
.rep .rep-tbl tr.cursor td { background: var(--accent-soft); border-top: 1px solid rgba(59,130,246,.5); border-bottom: 1px solid rgba(59,130,246,.5); }
.rep .rep-tbl tr.cursor td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.rep .rep-tbl td:nth-child(3) { width: 34%; }
.rep .rep-tbl-who { display: inline-flex; align-items: center; gap: 8px; }
.rep .rep-tbl-who b { font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.rep .rep-tbl-total { font-weight: 600; font-size: 14.5px; }
.rep .rep-tbl-last { display: inline-flex; gap: 3px; }
.rep .rep-mchip { font-family: var(--rep-mono); font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.08); }
.rep .rep-mchip.neg { border-color: rgba(244,63,94,.35); background: rgba(244,63,94,.08); }
.rep .rep-mchip.revoked { text-decoration: line-through; opacity: .45; }
.rep .rep-qcell { display: inline-block; font-family: var(--rep-mono); font-weight: 700; font-size: 12px; padding: 1px 8px; border-radius: 7px; border: 1px dashed rgba(34,197,94,.6); color: var(--success-bright); background: rgba(34,197,94,.08); }
.rep .rep-qcell.neg { border-color: rgba(244,63,94,.6); color: var(--danger); background: rgba(244,63,94,.08); }
.rep .rep-tbl td.changed { color: var(--success-bright); font-weight: 700; }
.rep .rep-tbl td.changed.neg { color: var(--danger); }
.rep .rep-tbl-card .rep-hint { padding: 0 6px; }
.rep .rep-tbl-card .rep-hint kbd { margin: 0 1px; }

.rep .rep-queue { border-color: rgba(34,197,94,.35); }
.rep .rep-badge.sm { height: 22px; padding: 0 9px; font-size: 11px; }
.rep .rep-badge.ok { color: var(--success-bright); border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.08); }
.rep .rep-queue-empty { font-size: 12.5px; line-height: 1.6; }
.rep .rep-op { border: 1px solid var(--glass-border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: rgba(255,255,255,.025); }
.rep .rep-op-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rep .rep-op .rep-stepper { height: 30px; }
.rep .rep-op .rep-stepper input { width: 52px; font-size: 14px; }
.rep .rep-op .rep-step { width: 28px; font-size: 15px; }
.rep .rep-op-x { margin-left: auto; }
.rep .rep-op input[type=text] { height: 32px; padding: 4px 10px; font-size: 13px; }
.rep .rep-op input.missing { border-color: rgba(234,179,8,.6); }
.rep .rep-op-who { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.rep .rep-queue-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.rep .rep-queue-foot kbd { border-color: rgba(255,255,255,.35); color: #fff; padding: 0 4px; }

.rep .rep-insp-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rep .rep-insp-h b { font-size: 17px; }
.rep .rep-insp-h .big { margin-left: auto; font-family: var(--rep-mono); font-size: 26px; font-weight: 600; }
.rep .rep-insp-ev { display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 12.5px; }
.rep .rep-insp-ev.revoked .rr { text-decoration: line-through; opacity: .5; }
.rep .rep-insp-ev .sts { display: inline-flex; gap: 2px; white-space: nowrap; }
.rep .rep-insp-ev small { display: flex; align-items: center; gap: 5px; color: var(--text-faint); margin-top: 3px; }
.rep .rep-insp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; }

.rep .rep-statusbar { display: flex; align-items: stretch; margin: 16px 0 10px; border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden; background: rgba(10,9,16,.7); font-size: 12.5px; }
.rep .rep-statusbar > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-left: 1px solid var(--glass-border); white-space: nowrap; }
.rep .rep-sb-mode { background: var(--cyan); color: #04131a; font-weight: 800; letter-spacing: .08em; border-left: 0 !important; }
.rep .rep-sb-mode.nav { background: rgba(255,255,255,.12); color: var(--text-primary); }
.rep .rep-sb-cmd { flex: 1; font-family: var(--rep-mono); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; }
.rep .rep-sb-cell.warn { color: var(--warning); }
.rep .rep-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 16px; font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.rep .rep-keys kbd { margin-right: 3px; }

/* ---- убрать бывшего куратора / список убранных ---- */
.rep .rep-mini-dng { color: #fda4af; border-color: rgba(244,63,94,.35); list-style: none; }
.rep .rep-hide { display: inline-block; }
.rep .rep-hide form { width: 320px; flex-wrap: wrap; align-items: center; font-size: 12px; line-height: 1.45; }
.rep .rep-hide form .rep-mu { flex: 1 1 180px; }
.rep .rep-prof-name .rep-hide form { left: 0; right: auto; font-weight: 400; }
.rep .rep-insp-hide { margin-top: 10px; }
.rep .rep-insp-hide form { position: static; width: auto; margin-top: 8px; box-shadow: none; }
.rep .rep-hidden { margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.rep .rep-hidden summary { cursor: pointer; color: var(--text-faint); font-size: 12px; }
.rep .rep-hidden summary:hover { color: var(--text-primary); }
.rep .rep-hidden-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.05); }
.rep .rep-hidden-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep .rep-pult-hidden { padding: 0 6px; }
.rep .rep-ax-n { font-size: 8.5px; fill: var(--text-primary); font-weight: 700; pointer-events: none; }
.rep .rep-legend .dot.mix { border-color: #e5e7eb; }
