/* История версий (#/changes, static/changes.js): лента версий, карточка «Spoy обновился», капсула версии у логотипа */

.cn { max-width: 820px; line-height: 1.55; }
.cn > header { margin-bottom: 28px; }

/* лента: номер и дата слева, что изменилось справа; тонкая линия связывает версии */
.cn-list { list-style: none; margin: 0; padding: 0; }
.cn-rel {
  position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px;
  padding: 0 0 36px;
}
.cn-rel::before {
  content: ""; position: absolute; left: 6px; top: 26px; bottom: 4px; width: 1px; background: var(--border);
}
.cn-rel:last-child::before { display: none; }
.cn-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-left: 22px; position: relative; }
.cn-meta::before {
  content: ""; position: absolute; left: 1px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-3); box-shadow: 0 0 0 4px var(--canvas);
}
.cn-rel.cur .cn-meta::before { background: var(--aura); }
.cn-v {
  display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--glass-2);
  color: var(--text); font-size: 13px; font-weight: 600; line-height: 20px; font-variant-numeric: tabular-nums;
}
.cn-meta time { color: var(--faint); font-size: 13px; }
.cn-cur { color: var(--accent-text); font-size: 12px; font-weight: 600; }

.cn-body { min-width: 0; }
.cn-body h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 12px; }
.cn-rel.cur .cn-body { background: var(--surface); border-radius: var(--radius); padding: 18px 20px 6px; margin-top: -6px; }
.cn-items { list-style: none; margin: 0; padding: 0; }
.cn-items li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-bottom: 12px; }
.cn-items b { font-weight: 600; }
.cn-items li > div { color: var(--muted); }
.cn-items li > div b { color: var(--text); }
.cn-tag {
  justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px;
  letter-spacing: .02em; white-space: nowrap; background: var(--glass); color: var(--muted);
}
.cn-tag.new { background: var(--accent-soft); color: var(--accent-text); }
.cn-tag.better { background: var(--note-soft); color: var(--note); }
.cn-tag.fix { background: rgba(74, 222, 128, .13); color: var(--ok); }

@media (max-width: 700px) {
  .cn-rel { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 28px; }
  .cn-rel::before { top: 22px; }
  .cn-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .cn-body { padding-left: 22px; }
  .cn-rel.cur .cn-body { margin: 0 0 0 22px; padding: 14px 14px 4px; }
  .cn-items li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* капсула версии у логотипа ведёт сюда; после обновления на ней точка, пока «Что нового» не открыто */
.brand .ver { position: relative; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.brand .ver:hover { background: var(--surface-3); color: var(--text); }
.brand .ver.cn-fresh::after {
  content: ""; position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--bg);
}

/* ссылка в шапке справки */
.cn-help { margin: 12px 0 0; }
.cn-help a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.cn-help a:hover { color: var(--text); text-decoration: none; }
.cn-help .cn-v { font-size: 11px; line-height: 16px; padding: 1px 7px; color: var(--muted); font-weight: 500; }

/* карточка после обновления: справа сверху, не закрывает пульт песни внизу */
.cn-note {
  position: fixed; z-index: 60; top: 16px; right: 16px; width: min(380px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: start;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.cn-note-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--aura); }
.cn-note p { margin: 0; }
.cn-note-h { font-weight: 600; font-size: 14px; }
.cn-note-t { color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px !important; }
.cn-note-act { grid-column: 2; display: flex; gap: 6px; }
@media (max-width: 700px) { .cn-note { top: 62px; right: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .cn-note { animation: cn-in .32s cubic-bezier(.2, .8, .2, 1); }
  @keyframes cn-in { from { opacity: 0; transform: translateY(-8px); } }
}
