/* SpursArmy comments — approved prototype (docs/project/reference/comment-system-prototype). */
.spurs-comments {
  --cm-text: #181818;
  --cm-navy: #1d294f;
  --cm-link: #2f539c;
  --cm-muted: #5f646b;
  --cm-faint: #666b72;
  --cm-bubble: #f1f3f7;
  --cm-bubble-line: #dde1e8;
  --cm-thread-line: #e3e7ef;
  --cm-highlight: #d9e4fb;
  --cm-avatar: 40px;
  --cm-avatar-reply: 32px;
  --cm-step-root: 19px;   /* root avatar centre minus half the line */
  --cm-step-reply: 15px;  /* reply avatar centre minus half the line */
  --cm-step-pad: 13px;
  color: var(--cm-text);
  font-size: 15px;
  line-height: 1.5;
  padding: 4px 25px 22px;
}
.spurs-article > .spurs-comments { margin: 0; }

.spurs-comments .cm-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 20px; margin-bottom: 16px; border-bottom: 1px solid #e3e6ec;
}
.spurs-comments .cm-title {
  display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0;
  font-size: 20px; line-height: 1.2; font-weight: 700; color: var(--cm-text);
}
.spurs-comments .cm-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 10px; box-sizing: border-box;
  border-radius: 999px; background: var(--cm-navy); color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .2px;
}
.spurs-comments .cm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; position: relative; align-self: stretch; }
.spurs-comments .cm-tool {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 2px; border: 0; background: none;
  color: var(--cm-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.spurs-comments .cm-tool:hover, .spurs-comments .cm-tool:focus-visible { color: var(--cm-navy); }
.spurs-comments .cm-tool[hidden] { display: none; }
/* Sorting: tabs whose underline sits on the header rule. */
.spurs-comments .cm-sort { display: inline-flex; gap: 18px; align-self: stretch; margin-bottom: -1px; }
.spurs-comments .cm-sort__option {
  display: inline-flex; align-items: center; height: 100%; min-height: 44px; padding: 2px 2px 0; border-bottom: 2px solid transparent; box-sizing: border-box;
  color: var(--cm-muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .15s ease, border-color .15s ease;
}
.spurs-comments .cm-sort__option:hover { color: var(--cm-navy); border-bottom-color: #c9d0dc; }
.spurs-comments .cm-sort__option:focus-visible { outline: 2px solid var(--cm-link); outline-offset: 2px; border-radius: 2px; }
.spurs-comments .cm-sort__option.is-active { color: var(--cm-navy); font-weight: 700; border-bottom-color: var(--cm-navy); }
/* Phones: title and the collapse icon share the first row, the sort tabs
   take the second one along the rule. */
@media (max-width: 575.98px) {
  .spurs-comments .cm-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; align-items: center; }
  .spurs-comments .cm-tools { display: contents; }
  .spurs-comments .cm-title { grid-column: 1; grid-row: 1; min-height: 40px; }
  .spurs-comments .cm-tool--expand { grid-column: 2; grid-row: 1; height: 40px; }
  .spurs-comments .cm-tool--expand span { display: none; }
  .spurs-comments .cm-tool--new { grid-column: 1 / -1; grid-row: 2; justify-self: start; height: 30px; }
  .spurs-comments .cm-sort { grid-column: 1 / -1; grid-row: 3; align-self: end; gap: 20px; }
  .spurs-comments .cm-sort__option { min-height: 38px; }
}

.spurs-comments .cm-composer { display: flex; gap: 12px; align-items: flex-start; }
.spurs-comments .cm-composer__pill {
  flex: 1; min-width: 0; height: var(--cm-avatar); padding: 0 16px; border: 0; border-radius: 20px;
  background: var(--cm-bubble); box-shadow: inset 0 0 0 1px var(--cm-bubble-line);
  color: var(--cm-muted); font: inherit; font-size: 15px; text-align: left; cursor: text; transition: box-shadow .15s ease;
}
.spurs-comments .cm-composer__pill:hover { box-shadow: inset 0 0 0 1px #c9d0dc; }
.spurs-comments .cm-guest {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 16px 18px 16px 70px; position: relative; border-radius: 12px;
  background: linear-gradient(135deg, #eaf0fc 0%, #f4f7fd 100%); box-shadow: inset 0 0 0 1px #cfdaf1;
}
.spurs-comments .cm-guest::before {
  content: ''; position: absolute; left: 18px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
  background: var(--cm-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@media (max-width: 575.98px) {
  .spurs-comments .cm-guest { padding-left: 18px; }
  .spurs-comments .cm-guest::before { display: none; }
}
.spurs-comments .cm-guest__title { font-weight: 700; font-size: 17px; color: var(--cm-navy); }
.spurs-comments .cm-guest__text { font-size: 14px; color: var(--cm-muted); }
.spurs-comments .cm-guest__button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px;
  background: var(--cm-navy); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
}
.spurs-comments .cm-guest__button:hover, .spurs-comments .cm-guest__button:focus-visible { background: #2e3a5d; color: #fff; }
.spurs-comments .cm-note { margin: 8px 0; color: var(--cm-muted); font-size: 14px; }
.spurs-comments .cm-live { min-height: 20px; padding: 3px 0 3px 52px; font-size: 13px; color: var(--cm-muted); }

.spurs-comments .cm-empty { padding: 28px 12px; text-align: center; }
.spurs-comments .cm-empty__title { font-weight: 700; font-size: 18px; color: var(--cm-navy); }
.spurs-comments .cm-empty__text { font-size: 13px; color: var(--cm-muted); }

.spurs-comments .cm-list, .spurs-comments .cm-children { margin: 0; padding: 0; list-style: none; }
.spurs-comments .cm-item { position: relative; padding-top: 10px; }
.spurs-comments .cm-item--root { padding-top: 18px; }
.spurs-comments .cm-list > .cm-item:first-child { padding-top: 6px; }
.spurs-comments .cm-children {
  margin-left: var(--cm-step-root); padding-left: var(--cm-step-pad); border-left: 2px solid var(--cm-thread-line);
  /* The thread line starts level with the first reply's avatar and card:
     the first reply's top spacing sits above the list instead of inside it. */
  margin-top: 10px;
}
.spurs-comments .cm-children > .cm-item:first-child { padding-top: 0; }
.spurs-comments .cm-children .cm-children { margin-left: var(--cm-step-reply); padding-left: 17px; }
.spurs-comments .cm-children[hidden] { display: none; }

.spurs-comments .cm-comment { display: flex; gap: 12px; align-items: flex-start; }
.spurs-comments .cm-avatar {
  flex: none; width: var(--cm-avatar); height: var(--cm-avatar); border-radius: 50%; object-fit: cover; background: #dfe4ee;
}
.spurs-comments .cm-children .cm-avatar { width: var(--cm-avatar-reply); height: var(--cm-avatar-reply); }
.spurs-comments .cm-avatar-link { flex: none; display: block; border-radius: 50%; line-height: 0; }
.spurs-comments .cm-avatar-link:hover .cm-avatar { filter: brightness(.92); }
.spurs-comments .cm-main { flex: 1; min-width: 0; }
.spurs-comments .cm-pinned {
  display: flex; align-items: center; gap: 5px; margin: 0 0 3px 2px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--cm-navy);
}
.spurs-comments .cm-bubble {
  display: inline-block; max-width: 100%; box-sizing: border-box; padding: 12px 16px 13px; border-radius: 12px;
  background: var(--cm-bubble); box-shadow: inset 0 0 0 1px var(--cm-bubble-line); transition: background-color .8s ease;
}
.spurs-comments .is-hidden > .cm-comment .cm-bubble { opacity: .8; }
.spurs-comments .is-deleted > .cm-comment .cm-bubble { padding: 10px 16px; background: transparent; }
.spurs-comments .is-highlighted > .cm-comment .cm-bubble { background: var(--cm-highlight); box-shadow: inset 0 0 0 1px #9fb4e3; }
.spurs-comments .cm-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; line-height: 1.35; }
.spurs-comments .cm-author { font-weight: 700; font-size: 14px; color: var(--cm-navy); text-decoration: none; }
.spurs-comments a.cm-author:hover { text-decoration: underline; }
.spurs-comments .cm-author.is-muted { color: var(--cm-faint); }
.spurs-comments .cm-badge {
  align-self: center; padding: 2px 7px; border-radius: 999px; background: var(--cm-navy); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
}
.spurs-comments .cm-time { font-size: 12px; color: var(--cm-muted); text-decoration: none; }
.spurs-comments .cm-actions { position: relative; }
.spurs-comments .cm-popover {
  position: absolute; z-index: 20; top: 30px; left: 0; min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: 8px; box-shadow: 0 12px 28px rgba(16, 27, 68, .14);
}
.spurs-comments .cm-popover__item {
  display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: none;
  color: var(--cm-navy); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.spurs-comments .cm-popover__item:hover, .spurs-comments .cm-popover__item:focus-visible { background: var(--cm-bubble); }
@media (max-width: 575.98px) {
  .spurs-comments .cm-popover { position: static; margin-top: 6px; border-radius: 14px 14px 8px 8px; box-shadow: 0 -6px 24px rgba(16, 27, 68, .14); }
}
.spurs-comments .cm-flag {
  align-self: center; padding: 1px 6px; border-radius: 4px; background: #e3e5ea; color: #4a4f57;
  font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.spurs-comments .cm-flag--held { background: #f6e2b3; color: #6b4700; }
.spurs-comments .cm-body { margin-top: 6px; overflow-wrap: anywhere; line-height: 1.55; }
.spurs-comments .cm-body p { margin: 0 0 .5em; }
.spurs-comments .cm-body p:last-child { margin-bottom: 0; }
.spurs-comments .cm-body blockquote {
  margin: 8px 0; padding: 8px 12px; border-radius: 8px; background: rgba(29, 41, 79, .06); color: #4a4f57; font-size: 14px;
}
.spurs-comments .cm-body img { max-width: min(100%, 360px); height: auto; border-radius: 8px; }
.spurs-comments .cm-body a { color: var(--cm-link); }
.spurs-comments .cm-deep { color: var(--cm-link); font-weight: 700; font-size: 14px; text-decoration: none; }
.spurs-comments .cm-deleted { margin-top: 4px; font-style: italic; color: var(--cm-faint); font-size: 14px; }

.spurs-comments .cm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 28px; margin: 6px 0 0 6px; }
.spurs-comments .cm-reactions { display: flex; flex-wrap: wrap; gap: 0; -webkit-touch-callout: none; user-select: none; }
/* Reply, show/hide replies and «⋯» stay together: when the row is too narrow they wrap as one group. */
.spurs-comments .cm-actions__tail { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 12px; white-space: nowrap; }
.spurs-comments .cm-reaction {
  --cm-reaction: var(--cm-link);
  display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 4px; border: 0; border-radius: 999px;
  background: transparent; color: var(--cm-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, background-color .2s ease;
}
/* Colour icons: unused ones a little quieter, used ones and the hovered one at full strength. */
.spurs-comments .cm-reaction .cm-icon { opacity: .72; transition: opacity .15s ease, transform .15s ease; }
.spurs-comments .cm-reaction.has-count .cm-icon,
.spurs-comments .cm-reaction:hover:not(:disabled) .cm-icon,
.spurs-comments .cm-reaction:focus-visible .cm-icon { opacity: 1; }
.spurs-comments .cm-reaction:hover:not(:disabled) .cm-icon { transform: scale(1.15); }
.spurs-comments .cm-reaction.has-count { color: var(--cm-reaction); }
.spurs-comments .cm-reaction.is-mine { color: var(--cm-reaction); background: #e3eafa; box-shadow: inset 0 0 0 1px #b9c9ef; }
.spurs-comments .cm-reaction:hover:not(:disabled) { background: #eef1f6; }
.spurs-comments .cm-reaction.is-mine:hover:not(:disabled) { background: #d8e2f8; }
.spurs-comments .cm-reaction:disabled { cursor: default; }
.spurs-comments .cm-reaction.is-pulse { transform: scale(1.18); }
.spurs-comments .cm-icon { display: block; }
.spurs-comments .cm-action {
  height: 28px; padding: 0 2px; border: 0; background: none; color: var(--cm-muted);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.spurs-comments .cm-action--link { display: inline-flex; align-items: center; gap: 6px; color: var(--cm-faint); font-weight: 600; }
.spurs-comments .cm-action--link::after {
  content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: translateY(2px) rotate(-135deg); transition: transform .15s ease;
}
.spurs-comments .cm-action--link[aria-expanded="false"]::after { transform: translateY(-1px) rotate(45deg); }
.spurs-comments .cm-action--link:hover { color: var(--cm-navy); }
.spurs-comments .cm-action--link.has-new::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f539c; flex: none;
}
.spurs-comments .cm-action--icon { width: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--cm-faint); border-radius: 6px; }
.spurs-comments .cm-action--icon svg { transform: translateY(2px); }
.spurs-comments .cm-more {
  display: block; width: 100%; height: 40px; margin-top: 14px; border: 0; border-radius: 8px;
  background: var(--cm-bubble); color: var(--cm-navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.spurs-comments .cm-more[hidden] { display: none; }
.spurs-comments button:focus-visible, .spurs-comments a:focus-visible, .spurs-comments summary:focus-visible {
  outline: 2px solid #3f5f9e; outline-offset: 2px;
}

/* Indentation stops at the configured cap; replies below it show "↳ @name". */
.spurs-comments[data-indent-cap="1"] .cm-children--2,
.spurs-comments[data-indent-cap="1"] .cm-children--3,
.spurs-comments[data-indent-cap="1"] .cm-children--4,
.spurs-comments[data-indent-cap="1"] .cm-children--5,
.spurs-comments[data-indent-cap="1"] .cm-children--6,
.spurs-comments[data-indent-cap="1"] .cm-children--7,
.spurs-comments[data-indent-cap="1"] .cm-children--8,
.spurs-comments[data-indent-cap="1"] .cm-children--9,
.spurs-comments[data-indent-cap="1"] .cm-children--10,
.spurs-comments[data-indent-cap="2"] .cm-children--3,
.spurs-comments[data-indent-cap="2"] .cm-children--4,
.spurs-comments[data-indent-cap="2"] .cm-children--5,
.spurs-comments[data-indent-cap="2"] .cm-children--6,
.spurs-comments[data-indent-cap="2"] .cm-children--7,
.spurs-comments[data-indent-cap="2"] .cm-children--8,
.spurs-comments[data-indent-cap="2"] .cm-children--9,
.spurs-comments[data-indent-cap="2"] .cm-children--10,
.spurs-comments[data-indent-cap="3"] .cm-children--4,
.spurs-comments[data-indent-cap="3"] .cm-children--5,
.spurs-comments[data-indent-cap="3"] .cm-children--6,
.spurs-comments[data-indent-cap="3"] .cm-children--7,
.spurs-comments[data-indent-cap="3"] .cm-children--8,
.spurs-comments[data-indent-cap="3"] .cm-children--9,
.spurs-comments[data-indent-cap="3"] .cm-children--10,
.spurs-comments[data-indent-cap="4"] .cm-children--5,
.spurs-comments[data-indent-cap="4"] .cm-children--6,
.spurs-comments[data-indent-cap="4"] .cm-children--7,
.spurs-comments[data-indent-cap="4"] .cm-children--8,
.spurs-comments[data-indent-cap="4"] .cm-children--9,
.spurs-comments[data-indent-cap="4"] .cm-children--10,
.spurs-comments[data-indent-cap="5"] .cm-children--6,
.spurs-comments[data-indent-cap="5"] .cm-children--7,
.spurs-comments[data-indent-cap="5"] .cm-children--8,
.spurs-comments[data-indent-cap="5"] .cm-children--9,
.spurs-comments[data-indent-cap="5"] .cm-children--10,
.spurs-comments[data-indent-cap="6"] .cm-children--7,
.spurs-comments[data-indent-cap="6"] .cm-children--8,
.spurs-comments[data-indent-cap="6"] .cm-children--9,
.spurs-comments[data-indent-cap="6"] .cm-children--10,
.spurs-comments[data-indent-cap="7"] .cm-children--8,
.spurs-comments[data-indent-cap="7"] .cm-children--9,
.spurs-comments[data-indent-cap="7"] .cm-children--10,
.spurs-comments[data-indent-cap="8"] .cm-children--9,
.spurs-comments[data-indent-cap="8"] .cm-children--10,
.spurs-comments[data-indent-cap="9"] .cm-children--10 {
  margin-left: 0; padding-left: 0; border-left: 0;
}
.spurs-comments .cm-deep { display: none; }
.spurs-comments[data-indent-cap="1"] .cm-depth-2 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="1"] .cm-depth-3 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="1"] .cm-depth-4 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="1"] .cm-depth-5 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="1"] .cm-depth-6 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="1"] .cm-depth-7 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="1"] .cm-depth-8 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="1"] .cm-depth-9 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="1"] .cm-depth-10 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="2"] .cm-depth-3 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="2"] .cm-depth-4 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="2"] .cm-depth-5 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="2"] .cm-depth-6 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="2"] .cm-depth-7 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="2"] .cm-depth-8 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="2"] .cm-depth-9 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="2"] .cm-depth-10 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="3"] .cm-depth-4 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="3"] .cm-depth-5 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="3"] .cm-depth-6 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="3"] .cm-depth-7 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="3"] .cm-depth-8 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="3"] .cm-depth-9 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="3"] .cm-depth-10 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="4"] .cm-depth-5 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="4"] .cm-depth-6 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="4"] .cm-depth-7 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="4"] .cm-depth-8 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="4"] .cm-depth-9 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="4"] .cm-depth-10 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="5"] .cm-depth-6 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="5"] .cm-depth-7 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="5"] .cm-depth-8 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="5"] .cm-depth-9 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="5"] .cm-depth-10 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="6"] .cm-depth-7 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="6"] .cm-depth-8 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="6"] .cm-depth-9 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="6"] .cm-depth-10 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="7"] .cm-depth-8 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="7"] .cm-depth-9 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="7"] .cm-depth-10 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="8"] .cm-depth-9 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="8"] .cm-depth-10 > .cm-comment .cm-deep,
.spurs-comments[data-indent-cap="9"] .cm-depth-10 > .cm-comment .cm-deep { display: inline; }

@media (max-width: 575.98px) {
  .spurs-comments {
    --cm-avatar: 34px; --cm-avatar-reply: 26px; --cm-step-root: 16px; --cm-step-reply: 12px; --cm-step-pad: 2px;
    padding: 4px 12px 18px;
  }
  .spurs-comments .cm-children .cm-children { padding-left: 8px; }
  .spurs-comments .cm-comment { gap: 10px; }
  .spurs-comments .cm-bubble { padding: 10px 13px 11px; }
  .spurs-comments .cm-title { font-size: 17px; }
  .spurs-comments .cm-live { padding-left: 46px; }
  .spurs-comments[data-indent-cap-mobile="1"] .cm-children--2,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-children--3,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-children--4,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-children--5,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-children--6,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-children--7,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-children--8,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-children--9,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-children--10,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-children--3,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-children--4,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-children--5,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-children--6,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-children--7,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-children--8,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-children--9,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-children--10,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-children--4,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-children--5,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-children--6,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-children--7,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-children--8,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-children--9,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-children--10,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-children--5,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-children--6,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-children--7,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-children--8,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-children--9,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-children--10,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-children--6,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-children--7,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-children--8,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-children--9,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-children--10,
  .spurs-comments[data-indent-cap-mobile="6"] .cm-children--7,
  .spurs-comments[data-indent-cap-mobile="6"] .cm-children--8,
  .spurs-comments[data-indent-cap-mobile="6"] .cm-children--9,
  .spurs-comments[data-indent-cap-mobile="6"] .cm-children--10 { margin-left: 0; padding-left: 0; border-left: 0; }
  .spurs-comments[data-indent-cap-mobile="1"] .cm-depth-2 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-depth-3 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-depth-4 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-depth-5 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-depth-6 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-depth-7 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-depth-8 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-depth-9 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="1"] .cm-depth-10 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-depth-3 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-depth-4 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-depth-5 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-depth-6 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-depth-7 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-depth-8 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-depth-9 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="2"] .cm-depth-10 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-depth-4 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-depth-5 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-depth-6 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-depth-7 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-depth-8 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-depth-9 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="3"] .cm-depth-10 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-depth-5 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-depth-6 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-depth-7 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-depth-8 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-depth-9 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="4"] .cm-depth-10 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-depth-6 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-depth-7 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-depth-8 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-depth-9 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="5"] .cm-depth-10 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="6"] .cm-depth-7 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="6"] .cm-depth-8 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="6"] .cm-depth-9 > .cm-comment .cm-deep,
  .spurs-comments[data-indent-cap-mobile="6"] .cm-depth-10 > .cm-comment .cm-deep { display: inline; }
}


/* ---------- write path ---------- */
.spurs-comments [hidden] { display: none !important; }
.spurs-comments .cm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spurs-comments .cm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.spurs-comments .cm-composer__slot { flex: 1; min-width: 0; }
.spurs-comments .cm-composer__slot .cm-composer__pill { display: block; width: 100%; }
.spurs-comments .cm-form {
  position: relative; margin-top: 0; padding: 12px 16px; border-radius: 12px;
  background: var(--cm-bubble); box-shadow: inset 0 0 0 1px var(--cm-bubble-line);
}
.spurs-comments .cm-main > .cm-form { margin-top: 8px; }
.spurs-comments .cm-form__text {
  display: block; width: 100%; min-height: 64px; max-height: 420px; box-sizing: border-box; padding: 0; border: 0;
  background: transparent; color: var(--cm-text); font: inherit; font-size: 15px; line-height: 1.5; resize: none; outline: none;
}
.spurs-comments .cm-form__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--cm-bubble-line);
}
.spurs-comments .cm-form__tools { display: flex; align-items: center; gap: 2px; }
.spurs-comments .cm-tool-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 6px;
  border: 0; border-radius: 8px; background: none; color: var(--cm-faint); cursor: pointer;
}
.spurs-comments .cm-tool-btn:hover, .spurs-comments .cm-tool-btn[aria-pressed="true"] { color: var(--cm-navy); background: rgba(29, 41, 79, .06); }
.spurs-comments .cm-tool-text { font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.spurs-comments .cm-form__submit { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.spurs-comments .cm-form__counter { font-size: 12px; color: var(--cm-muted); }
.spurs-comments .cm-form__counter.is-near { color: #a3262a; }
.spurs-comments .cm-form__cancel { height: 36px; padding: 0 6px; border: 0; background: none; color: var(--cm-muted); font: inherit; font-size: 14px; cursor: pointer; }
.spurs-comments .cm-form__send {
  height: 37px; min-width: 112px; padding: 0 16px; border: 0; border-radius: 3px; background: var(--cm-navy); color: #fff;
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 1.35px; text-transform: uppercase; cursor: pointer;
}
.spurs-comments .cm-form__send:disabled { opacity: .6; cursor: progress; }
.spurs-comments .cm-form__error { margin-top: 8px; color: #a3262a; font-size: 13px; }
.spurs-comments .cm-panel { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--cm-bubble-line); display: flex; flex-wrap: wrap; gap: 6px; }
.spurs-comments .cm-panel__credit { flex-basis: 100%; font-size: 11px; color: var(--cm-muted); }
.spurs-comments .cm-chip {
  height: 32px; padding: 0 10px; border: 1px solid var(--cm-bubble-line); border-radius: 8px; background: #fff;
  color: var(--cm-navy); font: inherit; font-size: 14px; cursor: pointer;
}
.spurs-comments .cm-input {
  flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--cm-bubble-line); border-radius: 8px;
  background: #fff; font: inherit; font-size: 14px;
}
.spurs-comments .cm-insert { display: flex; align-items: stretch; gap: 8px; flex-basis: 100%; }
.spurs-comments .cm-insert .cm-input { height: 40px; margin: 0; box-sizing: border-box; }
.spurs-comments .cm-insert .cm-chip { flex: 0 0 auto; height: 40px; margin: 0; padding: 0 16px; box-sizing: border-box; }
/* Emoji picker: category tabs over one scrolling grid. */
.spurs-comments .cm-panel--emoji { display: block; padding-top: 4px; }
.spurs-comments .cm-emoji-tabs { display: flex; gap: 2px; padding-bottom: 4px; border-bottom: 1px solid var(--cm-bubble-line); overflow-x: auto; scrollbar-width: none; }
.spurs-comments .cm-emoji-tab {
  flex: 0 0 auto; width: 36px; height: 32px; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0;
  background: none; font-size: 18px; line-height: 1; cursor: pointer; filter: grayscale(.6); opacity: .75;
}
.spurs-comments .cm-emoji-tab:hover { background: #fff; opacity: 1; }
.spurs-comments .cm-emoji-tab[aria-selected="true"] { border-bottom-color: var(--cm-navy); filter: none; opacity: 1; }
.spurs-comments .cm-emoji-scroll { position: relative; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.spurs-comments .cm-emoji-title {
  position: sticky; top: 0; z-index: 1; padding: 8px 2px 4px; background: var(--cm-bubble);
  color: var(--cm-muted); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.spurs-comments .cm-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.spurs-comments .cm-emoji { width: 100%; height: 38px; padding: 0; border: 0; border-radius: 8px; background: none; font-size: 22px; line-height: 1; cursor: pointer; transition: transform .1s ease; }
.spurs-comments .cm-emoji:hover, .spurs-comments .cm-emoji:focus-visible { background: #fff; transform: scale(1.12); }

/* GIF picker */
.spurs-comments .cm-panel--gif { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 8px; }
.spurs-comments .cm-gif-search { position: relative; display: block; margin: 0; }
.spurs-comments .cm-gif-search__icon { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: var(--cm-faint); pointer-events: none; }
.spurs-comments .cm-gif-search__input {
  display: block; box-sizing: border-box; width: 100%; height: 40px; margin: 0; padding: 0 12px 0 38px;
  border: 1px solid var(--cm-bubble-line); border-radius: 10px; background: #fff; box-shadow: none; outline: 0;
  color: var(--cm-text); font: inherit; font-size: 15px; line-height: 40px; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.spurs-comments .cm-gif-search__input::placeholder { color: var(--cm-faint); }
.spurs-comments .cm-gif-search__input:focus { border-color: var(--cm-link); box-shadow: 0 0 0 3px rgba(47, 83, 156, .15); }
.spurs-comments .cm-gif-search__input::-webkit-search-cancel-button { cursor: pointer; }
.spurs-comments .cm-gif-heading { color: var(--cm-muted); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
/* Square tiles of about 110 px, as many per row as fit; rows sized by the
   tiles (the images are taken out of the flow), so they never overlap. */
.spurs-comments .cm-gif-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); grid-auto-rows: max-content;
  align-content: start; gap: 6px; max-height: 268px; overflow-y: auto;
  overscroll-behavior: contain; font-size: 13px; color: var(--cm-muted);
}
.spurs-comments .cm-gif-grid.is-empty { display: block; padding: 18px 0; text-align: center; }
.spurs-comments .cm-gif-option {
  position: relative; display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #dfe4ee;
  cursor: pointer; aspect-ratio: 1; outline-offset: 2px;
}
.spurs-comments .cm-gif-option img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.spurs-comments .cm-gif-option:hover img, .spurs-comments .cm-gif-option:focus-visible img { transform: scale(1.05); }
.spurs-comments .cm-gif-option:focus-visible { outline: 2px solid var(--cm-link); }
.spurs-comments .cm-gif-option--loading { cursor: default; background: linear-gradient(90deg, #e3e7ef 0%, #eef1f6 50%, #e3e7ef 100%); background-size: 200% 100%; animation: cm-shimmer 1.2s linear infinite; }
.spurs-comments .cm-gif-foot { align-self: flex-end; color: var(--cm-faint); font-size: 11px; }
.spurs-comments .cm-gif-foot strong { color: var(--cm-text); letter-spacing: .5px; }

/* Pictures in comments open in the viewer. */
.spurs-comments .cm-body img { cursor: zoom-in; }
.spurs-comments .cm-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.spurs-comments .cm-attachment {
  position: relative; width: 84px; height: 64px; border-radius: 8px; overflow: hidden; background: #dfe4ee;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.spurs-comments .cm-attachment img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spurs-comments .cm-attachment__label { position: relative; padding: 3px 6px; font-size: 11px; color: #4a5263; }
.spurs-comments .cm-attachment__bar { position: relative; width: 100%; height: 4px; }
.spurs-comments .cm-attachment__remove {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(16, 27, 68, .72); color: #fff; font-size: 14px; line-height: 22px; cursor: pointer;
}
.spurs-comments .cm-mentions {
  position: fixed; z-index: 1000; min-width: 200px; max-height: 240px; overflow-y: auto; padding: 6px;
  background: #fff; border-radius: 8px; box-shadow: 0 12px 28px rgba(16, 27, 68, .14);
}
.spurs-comments .cm-mention-option {
  display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--cm-navy);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.spurs-comments .cm-mention-option[aria-selected="true"], .spurs-comments .cm-mention-option:hover { background: var(--cm-bubble); }
.spurs-comments .cm-popover__item.is-danger { color: #a3262a; }
.spurs-comments .cm-mention { color: var(--cm-link); font-weight: 700; text-decoration: none; }
.spurs-comments .cm-body code { padding: 1px 5px; border-radius: 4px; background: rgba(29, 41, 79, .08); font-size: 13px; }
.spurs-comments .cm-body ul, .spurs-comments .cm-body ol { margin: .3em 0 .5em; padding-left: 1.3em; }
.spurs-comments .cm-image img, .spurs-comments .cm-inline-img { max-width: min(100%, 360px); height: auto; border-radius: 8px; }
.spurs-comments .cm-embed { margin: 8px 0 2px; }
.spurs-comments .cm-youtube {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; max-width: 400px; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #0e1a3d; color: #fff;
  font: inherit; cursor: pointer;
}
.spurs-comments .cm-youtube__play {
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  position: relative;
}
.spurs-comments .cm-youtube__play::after {
  content: ""; position: absolute; left: 19px; top: 14px; border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--cm-navy);
}
.spurs-comments .cm-youtube__label { font-size: 13px; font-weight: 700; }
.spurs-comments .cm-youtube__hint { font-size: 11px; color: #b9c2d8; }
.spurs-comments .cm-youtube-frame { display: block; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.spurs-comments .cm-gallery { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.spurs-comments .cm-gallery__item { display: block; line-height: 0; }
.spurs-comments .cm-gallery__item img { width: auto; height: 160px; max-width: 100%; object-fit: cover; border-radius: 8px; }
.spurs-comments .cm-gif { position: relative; display: inline-block; margin-top: 8px; line-height: 0; }
.spurs-comments .cm-gif img { max-width: min(100%, 280px); height: auto; border-radius: 8px; }
.spurs-comments .cm-gif__credit {
  position: absolute; right: 6px; bottom: 6px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .55);
  color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .5px; line-height: 1.6;
}
@media (max-width: 575.98px) {
  .spurs-comments .cm-form { padding: 10px 12px; }
  .spurs-comments .cm-gif-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spurs-comments .cm-gallery__item img { height: 120px; }
  .spurs-comments .cm-form__send { min-width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .spurs-comments .cm-bubble, .spurs-comments .cm-reaction { transition: none; }
}

/* ---------- live updates ---------- */
.spurs-comments .cm-typing {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 10px 52px; color: var(--cm-muted); font-size: 13px; font-style: italic;
}
.spurs-comments .cm-typing::before {
  content: ""; width: 22px; height: 8px; flex: 0 0 22px;
  background: radial-gradient(circle, currentColor 2px, transparent 2.5px) 0 50% / 7px 8px repeat-x;
  opacity: .6; animation: cm-typing 1.2s ease-in-out infinite;
}
@keyframes cm-typing { 50% { opacity: .2; } }
.spurs-comments .cm-typing--inline { margin: 8px 0 0 6px; }
.spurs-comments .cm-new {
  display: inline-flex; align-items: center; gap: 5px; color: #2f539c; font-size: 12px; font-weight: 700;
}
.spurs-comments .cm-new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f539c; }
.spurs-comments .cm-tool--new { color: #2f539c; }
@media (prefers-reduced-motion: reduce) {
  .spurs-comments .cm-typing::before { animation: none; }
}
@media (max-width: 575.98px) {
  .spurs-comments .cm-typing { margin-left: 0; }
}
/* New comments (since the last visit, or arrived live) keep a calm marker until
   the page is reloaded: a blue edge on the bubble plus the «новый» label. The
   brief flash on arrival only draws the eye; this is what stays. */
.spurs-comments .cm-item.is-new > .cm-comment .cm-bubble {
  background: #eef3fc;
  box-shadow: inset 3px 0 0 #2f539c, inset 0 0 0 1px #c9d6f0;
}
.spurs-comments .cm-item.is-new.is-highlighted > .cm-comment .cm-bubble {
  background: var(--cm-highlight); box-shadow: inset 3px 0 0 #2f539c, inset 0 0 0 1px #9fb4e3;
}
.spurs-comments .cm-icon--emoji { display: inline-block; width: auto; font-size: 16px; line-height: 1; }

/* ---------- greeting, preview, author card ---------- */
.spurs-comments .cm-preview {
  min-height: 72px; padding: 10px 2px; border-bottom: 1px solid var(--cm-bubble-line); overflow-wrap: anywhere;
}
.spurs-comments .cm-tool-btn[aria-pressed="true"] { color: var(--cm-navy); }
.spurs-comments { position: relative; }
.spurs-comments .cm-reactors {
  position: fixed; z-index: 1000; min-width: 140px; max-width: 240px; padding: 8px 12px 9px; border-radius: 10px;
  background: #1d294f; color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 28px rgba(16, 27, 68, .22); pointer-events: none;
}
.spurs-comments .cm-reactors__title { margin-bottom: 3px; font-weight: 700; }
.spurs-comments .cm-reactors.is-compact { min-width: 0; padding: 5px 10px; }
.spurs-comments .cm-reactors.is-compact .cm-reactors__title { margin: 0; }
.spurs-comments .cm-reactors__list { margin: 0; padding: 0; list-style: none; }
.spurs-comments .cm-reactors__list li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spurs-comments .cm-reactors__note { margin-top: 3px; color: rgba(255, 255, 255, .7); font-size: 12px; }
.spurs-comments .cm-card {
  position: fixed; z-index: 1000; width: 260px; padding: 14px; border-radius: 12px; background: #fff;
  box-shadow: 0 14px 34px rgba(16, 27, 68, .18); font-size: 14px;
}
.spurs-comments .cm-card__head { display: flex; align-items: center; gap: 10px; }
.spurs-comments .cm-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.spurs-comments .cm-card__name { font-weight: 700; color: var(--cm-navy); }
.spurs-comments .cm-card__facts { display: flex; gap: 18px; margin: 12px 0 8px; padding-top: 10px; border-top: 1px solid var(--cm-bubble-line); }
.spurs-comments .cm-card__facts div { display: flex; flex-direction: column; gap: 2px; }
.spurs-comments .cm-card__facts span { color: var(--cm-muted); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.spurs-comments .cm-card__facts strong { color: var(--cm-navy); }
.spurs-comments .cm-card__link { color: var(--cm-link, #2f539c); font-weight: 700; text-decoration: none; }
@media (max-width: 575.98px) {
}

/* ---------- loading, errors, offline ---------- */
.spurs-comments .cm-skeleton { display: flex; gap: 12px; margin: 0 0 18px; list-style: none; }
.spurs-comments .cm-skeleton__avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; }
.spurs-comments .cm-skeleton__bubble { height: 64px; flex: 1 1 auto; max-width: 520px; border-radius: 12px; }
.spurs-comments .cm-skeleton__avatar, .spurs-comments .cm-skeleton__bubble {
  background: linear-gradient(90deg, #eef0f4 25%, #f6f7f9 50%, #eef0f4 75%) 0 0 / 200% 100%;
  animation: cm-shimmer 1.2s linear infinite;
}
@keyframes cm-shimmer { to { background-position: -200% 0; } }
.spurs-comments .cm-list.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }
.spurs-comments .cm-retry {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 14px;
  border-radius: 10px; background: #fff4f4; color: #8a1f24; font-size: 14px;
}
.spurs-comments .cm-retry__button {
  padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer;
}
.spurs-comments .cm-offline {
  margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #fff8e6; color: #6b4a00; font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
  .spurs-comments .cm-skeleton__avatar, .spurs-comments .cm-skeleton__bubble { animation: none; }
}

/* Image viewer (outside .spurs-comments: attached to <body>). */
html.cm-lightbox-open { overflow: hidden; }
.cm-lightbox {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 16, .97); color: #fff; -webkit-tap-highlight-color: transparent;
}
.cm-lightbox[hidden] { display: none; }
.cm-lightbox__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 4px; padding: 10px 12px 10px 18px; }
.cm-lightbox__count { margin-right: auto; font-size: 14px; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.cm-lightbox__btn, .cm-lightbox__nav {
  display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: rgba(255, 255, 255, .8);
  cursor: pointer; transition: color .15s ease, background-color .15s ease;
}
.cm-lightbox__btn { width: 44px; height: 44px; border-radius: 50%; }
.cm-lightbox__btn:hover, .cm-lightbox__btn:focus-visible, .cm-lightbox__nav:hover, .cm-lightbox__nav:focus-visible { color: #fff; background: rgba(255, 255, 255, .12); }
.cm-lightbox__btn:focus-visible, .cm-lightbox__nav:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.cm-lightbox__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; z-index: 1; }
.cm-lightbox__nav--prev { left: 12px; }
.cm-lightbox__nav--next { right: 12px; }
.cm-lightbox.is-single .cm-lightbox__nav { display: none; }
.cm-lightbox__stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 64px 76px 32px; box-sizing: border-box; }
.cm-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 12px 48px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s ease; }
.cm-lightbox__img.is-ready { opacity: 1; }
@media (max-width: 575.98px) {
  .cm-lightbox__stage { padding: 56px 8px 24px; }
  .cm-lightbox__nav { top: auto; bottom: 16px; margin-top: 0; background: rgba(255, 255, 255, .1); }
}
@media (prefers-reduced-motion: reduce) {
  .cm-lightbox__img { transition: none; }
}
