/* ============================================================
   Журнал — соц-UI (комментарии · донат · уведомления)
   ============================================================ */
/* комментарии */
.cmt { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.cmt__h { font-family: var(--serif); font-weight: 600; font-size: var(--t-h3); color: var(--ink); margin: 0 0 1.2rem; }
.cmt__composer { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.6rem; align-items: flex-start; }
.cmt__hint { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-faint); margin: 0; }
.cmt__input { width: 100%; font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0.7rem 0.85rem; resize: vertical; }
.cmt__input:focus { outline: none; border-color: var(--accent); }
.cmt__send { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-raise); background: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0.55rem 1.1rem; cursor: pointer; }
.cmt__send:hover { background: var(--accent-deep); }
.cmt__send:disabled { opacity: 0.6; }
.cmt__list { display: flex; flex-direction: column; gap: 1.1rem; }
.cmt__empty { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-faint); }
.cmt__item { display: flex; gap: 0.8rem; }
.cmt__av { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--paper-raise); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: var(--t-micro); }
.cmt__name.av-link { cursor: pointer; }
.cmt__name.av-link:hover { color: var(--accent-deep); }
.cmt__meta { display: flex; align-items: center; gap: 0.6rem; }
.cmt__name { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink); font-weight: 600; }
.cmt__t { font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-faint); }
.cmt__del { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--ink-faint); width: 1.4rem; height: 1.4rem; }
.cmt__del:hover { color: var(--accent-deep); }
.cmt__del svg { width: 0.85rem; height: 0.85rem; }
.cmt__text { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-soft); line-height: 1.5; margin: 0.2rem 0 0; }
.cmt__item.is-editorial .cmt__av { background: var(--ink-soft); opacity: 0.85; }

/* — треды: ответы на комментарии — */
.cmt__body { flex: 1; min-width: 0; }
.cmt__badge { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.05rem 0.45rem; }
.cmt__actions { margin-top: 0.35rem; }
.cmt__reply-btn { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); background: none; border: none; padding: 0.2rem 0; cursor: pointer; min-height: 2.2rem; }
.cmt__reply-btn:hover { color: var(--accent-deep); }
.cmt__replybox:empty { display: none; }
.cmt__replybox { margin-top: 0.5rem; }
.cmt__composer--reply { flex-direction: row; align-items: flex-start; gap: 0.5rem; }
.cmt__composer--reply .cmt__input { flex: 1; }
.cmt__children { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.1rem 0 0 2.6rem; padding-left: 0.9rem; border-left: 2px solid var(--line); }
.cmt__item--reply .cmt__av { width: 1.8rem; height: 1.8rem; }

/* донат */
.don-btn { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--mono); font-size: var(--t-small); letter-spacing: 0.06em; color: var(--accent-deep); background: none; border: 1px solid var(--accent); border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; transition: all 0.2s var(--ease); }
.don-btn:hover { background: var(--accent); color: var(--paper-raise); }
.don-btn__ic { display: inline-flex; width: 1.05em; height: 1.05em; }
.don-btn__ic svg { width: 100%; height: 100%; }

.don-ov { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 1.4rem; background: oklch(0.235 0.012 60 / 0.42); backdrop-filter: blur(3px); }
.don-card { position: relative; width: 100%; max-width: 24rem; background: var(--paper-raise); border: 1px solid var(--line); border-radius: 4px; padding: 1.8rem; box-shadow: 0 24px 60px oklch(0.235 0.012 60 / 0.22); }
.don__close { position: absolute; top: 0.8rem; right: 0.8rem; width: 1.8rem; height: 1.8rem; background: none; border: none; cursor: pointer; color: var(--ink-faint); }
.don__close:hover { color: var(--ink); }
.don__close svg { width: 1.05rem; height: 1.05rem; }
.don__kick { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.don__dek { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-soft); line-height: 1.5; margin: 0.4rem 0 1.2rem; }
.don__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.don__chip {
  font-family: var(--mono);
  font-size: var(--t-small);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 0.45rem;
  cursor: pointer;
  color: var(--ink-soft);
  width: 100%;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}
.don__chip.is-on { background: var(--accent); color: var(--paper-raise); border-color: var(--accent); }
.don__chip--custom { grid-column: 2 / -1; letter-spacing: 0.04em; }
.don__custom-amt {
  width: 100%;
  font-family: var(--grotesk);
  font-size: var(--t-small);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.55rem 0.7rem;
  margin: -0.35rem 0 0.9rem;
}
.don__custom-amt:focus { outline: none; border-color: var(--accent); }
.don__msg { width: 100%; font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0.55rem 0.7rem; margin-bottom: 1rem; }
.don__msg:focus { outline: none; border-color: var(--accent); }
.don__give { width: 100%; font-family: var(--mono); font-size: var(--t-small); letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-raise); background: var(--accent); border: none; border-radius: 3px; padding: 0.7rem; cursor: pointer; }
.don__give:hover { background: var(--accent-deep); }
.don__give:disabled { opacity: 0.6; }
.don__status { font-family: var(--grotesk); font-size: var(--t-small); margin-top: 0.7rem; min-height: 1rem; }
.don__status.is-ok { color: oklch(0.52 0.10 150); }
.don__status.is-err { color: var(--accent-deep); }

/* уведомления */
.ntf { display: flex; flex-direction: column; }
.ntf__empty { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-faint); padding: 1rem 0; }
.ntf__item { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.15s var(--ease); border-radius: 3px; }
.ntf__item:hover { background: var(--paper-sink); }
.ntf__dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: transparent; margin-top: 0.4rem; }
.ntf__item.is-unread .ntf__dot { background: var(--accent); }
.ntf__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ntf__head { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink); }
.ntf__sub { font-family: var(--grotesk); font-size: var(--t-micro); color: var(--ink-faint); }
.ntf__t { font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-faint); }

.read__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 1.2rem 0;
  --read-act-gap: 0.85rem;
}
.read__actions > .react--big {
  margin-top: 0;
  margin-bottom: 0;
  border-bottom: none;
  padding: 0.75rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 0.45rem;
  column-gap: 0.65rem;
  width: 100%;
}
.read__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  padding: 0.55rem 0 0.75rem;
  border-top: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
  width: 100%;
}
.read__tools-main {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex: none;
}
.read__tools-link {
  flex: none;
  margin-left: auto;
}
.read__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.read__tool:hover { color: var(--accent-deep); transform: scale(1.06); }
.read__tool.is-on { color: var(--accent); }
.read__tool .react__ico,
.read__tool .share-ic,
.read__tool .read__tool-ic {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
}
.read__tool .react__ico svg,
.read__tool .share-ic svg,
.read__tool .read__tool-ic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.read__actions > .react--big .react__stars {
  flex: none;
  font-size: 1.05rem;
  gap: 0.08em;
}
.read__actions > .react--big .react__star {
  width: 1.05em;
  height: 1.05em;
}
.read__actions > .react--big .react__c-btn,
.read__actions > .react--big .react__stars,
.read__actions > .react--big .react__rupor,
.read__actions > .react--big .react__don {
  flex: none;
}
.read__actions > .react--big .react__comm {
  white-space: nowrap;
}
.read__actions > .react--big .react__cn,
.read__actions > .react--big .react__dn,
.read__actions > .react--big .react__rn {
  font-variant-numeric: tabular-nums;
}

/* ---- жалобы ---- */
.rep-btn {
  display: inline-flex; align-items: center; gap: 0.4em; cursor: pointer;
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.8rem;
  color: var(--ink-faint); transition: all 0.18s var(--ease);
}
.rep-btn:hover { color: var(--accent-deep); border-color: var(--accent); }
.rep-btn__ic { display: inline-flex; width: 0.95em; height: 0.95em; }
.rep-btn__ic svg { width: 100%; height: 100%; }
.rep-btn--compact { border: none; padding: 0.1rem; border-radius: 4px; }
.rep-btn--compact span:last-child { display: none; }

.rep-card .rep__reasons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0.8rem; }
.rep__reason {
  font-family: var(--grotesk); font-size: var(--t-small); cursor: pointer;
  background: var(--paper-sink); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; color: var(--ink-soft);
  transition: all 0.15s var(--ease);
}
.rep__reason.is-on { background: var(--accent); border-color: var(--accent); color: var(--paper-raise); }
.rep__note {
  width: 100%; resize: vertical; font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0.55rem 0.7rem; margin-bottom: 0.7rem;
}
.rep__note:focus { outline: none; border-color: var(--accent); }
.rep__send {
  width: 100%; cursor: pointer; font-family: var(--mono); font-size: var(--t-small); letter-spacing: 0.06em;
  background: var(--ink); color: var(--paper-raise); border: none; border-radius: 4px; padding: 0.7rem;
}
.rep__send:disabled { opacity: 0.6; cursor: default; }
.rep__status { font-family: var(--grotesk); font-size: var(--t-small); margin-top: 0.6rem; min-height: 1em; }
.rep__status.is-ok { color: oklch(0.52 0.10 150); }
.rep__status.is-err { color: var(--accent-deep); }
.rep__blocked {
  font-family: var(--grotesk); font-size: var(--t-small); line-height: 1.45;
  color: var(--accent-deep); background: oklch(0.560 0.105 42 / 0.08);
  border: 1px solid oklch(0.560 0.105 42 / 0.25); border-radius: 4px; padding: 0.65rem 0.75rem; margin-bottom: 0.7rem;
}
.rep-btn--overlay {
  position: absolute; top: 6px; right: 6px; z-index: 4;
  background: oklch(0.235 0.012 60 / 0.55); border-color: transparent; color: var(--paper-raise);
  padding: 0.35rem 0.45rem; border-radius: 4px;
}
.rep-btn--overlay:hover { background: oklch(0.235 0.012 60 / 0.78); color: var(--paper-raise); border-color: transparent; }
.ph-wrap { position: relative; }
.ph--blocked { background: var(--paper-sink); border: 1px dashed var(--line-strong); min-height: 4rem; display: flex; align-items: center; justify-content: center; }
.ph-blocked { padding: 1rem; text-align: center; }
.ph-blocked__t { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-faint); }
.cmt__meta .rep-btn--compact { margin-left: auto; color: var(--ink-faint); }

.evt__mod { display: flex; justify-content: flex-end; margin: 1.4rem 0 0.4rem; }

/* ============================================================
   Соцграф — «Моя сеть» + список подписчиков
   ============================================================ */
.sg-panel .sg-body { display: block; }
.sg-loading, .sg-empty { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-faint); line-height: 1.5; }
.sg-sub { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.8rem; }
.sg-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.sg-card {
  display: flex; align-items: center; gap: 0.7rem; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.7rem 0.8rem; cursor: pointer; transition: border-color 0.15s var(--ease);
}
.sg-card:hover { border-color: var(--accent); }
.sg-card__av, .sg-person__av {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-wash); color: var(--accent-deep);
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.02em;
}
.sg-card__id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sg-card__name { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-card__kind { font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-faint); }
.sg-card__cnt {
  flex: none; font-family: var(--mono); font-size: var(--t-micro); color: var(--ink-soft);
  background: var(--paper-sink); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.25rem 0.6rem; cursor: pointer; transition: all 0.15s var(--ease);
}
.sg-card__cnt:hover { color: var(--accent-deep); border-color: var(--accent); }

.sg-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: oklch(0.2 0.02 60 / 0.45); padding: 1.5rem; animation: sg-fade 0.15s var(--ease);
}
@keyframes sg-fade { from { opacity: 0; } to { opacity: 1; } }
.sg-modal__card {
  width: 100%; max-width: 24rem; max-height: 80vh; display: flex; flex-direction: column;
  background: var(--paper-raise); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden;
}
.sg-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--line);
}
.sg-modal__title { font-family: var(--serif); font-weight: 600; font-size: var(--t-body); color: var(--ink); }
.sg-modal__x {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong); color: var(--ink-soft);
}
.sg-modal__x:hover { color: var(--ink); border-color: var(--ink-soft); }
.sg-modal__x svg { width: 1rem; height: 1rem; }
.sg-modal__body { overflow-y: auto; padding: 0.6rem; }
.sg-modal__loading, .sg-modal__empty { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-faint); padding: 1rem; text-align: center; }
.sg-person { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.5rem; border-radius: 5px; }
button.sg-person { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.sg-person:hover { background: var(--paper-sink); }
.sg-person__name { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink); }

@media (max-width: 560px) { .sg-list { grid-template-columns: 1fr; } }

/* ---- модерация (кабинет автора) ---- */
.mod-list { display: flex; flex-direction: column; gap: 0.8rem; }
.mod-case { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.mod-case.is-open { background: oklch(0.560 0.105 42 / 0.04); border-radius: 4px; padding: 1rem; }
.mod-case.is-focus { background: var(--paper-sink); }
.mod-case__kick { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.mod-case__title { font-family: var(--serif); font-weight: 600; font-size: var(--t-h3); color: var(--ink); margin: 0.25rem 0 0.5rem; }
.mod-case__note, .mod-case__dead { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-soft); margin: 0 0 0.5rem; line-height: 1.45; }
.mod__acts { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.6rem; }
.mod__btn {
  align-self: flex-start; font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.85rem; cursor: pointer; color: var(--ink-soft);
}
.mod__btn:hover { border-color: var(--ink-soft); color: var(--ink); }
.mod__btn--go { background: var(--accent); border-color: var(--accent); color: var(--paper-raise); }
.mod__btn--go:hover { background: var(--accent-deep); }
.mod__note {
  width: 100%; resize: vertical; font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0.55rem 0.65rem;
}
.mod__status { font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-faint); }
.mod__status.is-ok { color: oklch(0.52 0.10 150); }
.mod__status.is-err { color: var(--accent-deep); }
