/* NLauncher — «Что нового» (/changelog), e2 style. Tokens follow sv.v1.css (/servers).
 * Calm editorial layout: one accent (site blue), neutral text labels for the kind of record, real screenshots only.
 * Versioned filename: the front proxy caches /assets/* ignoring ?v= — never edit in place, copy to changelog.v5.css. */
:root {
  --bg: #F6F7F9; --card: #fff; --card2: #F3F5F9; --ink: #0B0B0F; --ink2: #4A4F5A; --mute: #767C88;
  --line: rgba(11,11,15,.08); --line2: rgba(11,11,15,.14);
  --acc: #2E6CF6; --acc2: #1E56D6; --acc-soft: rgba(46,108,246,.1); --acc-tx: #1E56D6;
  --shadow: 0 18px 44px -30px rgba(11,11,15,.45);
  --hdr: rgba(246,247,249,.86);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0B0B0F; --card: #14151C; --card2: #1A1C24; --ink: #F2F3F6; --ink2: #B4B8C2; --mute: #8A909C;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.15);
  --acc: #4C82FF; --acc2: #2E6CF6; --acc-soft: rgba(76,130,255,.14); --acc-tx: #93B8FF;
  --shadow: 0 18px 44px -26px rgba(0,0,0,.9);
  --hdr: rgba(11,11,15,.82);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; }
body { font-family: Onest, system-ui, sans-serif; font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--acc-tx); text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--acc); color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
a, button { transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
svg.nli { flex: none; }

/* ---------- header (same bar as /servers, /hosting) ---------- */
.hh { position: sticky; top: 0; z-index: 60; background: var(--hdr); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.hh nav { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 18px; }
.hh .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; font-weight: 900; font-size: 18px; letter-spacing: -.03em; }
.hh .brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.hh .links { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--line); font-size: 14.5px; font-weight: 600; }
.hh .links a, .hh .links .nlx-tr { padding: 8px 14px; border-radius: 10px; color: var(--ink2); }
.hh .links a:hover, .hh .links .nlx-tr:hover { color: var(--ink); background: var(--card); }
.hh .right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.ibtn { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ibtn:hover { border-color: var(--acc); color: var(--acc); }
.me { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 5px; border-radius: 12px; border: 1px solid var(--line2); color: var(--ink); font-weight: 700; font-size: 14px; max-width: 180px; white-space: nowrap; min-width: 0; }
.me:hover { border-color: var(--acc); color: var(--acc); }
.me .av { width: 30px; height: 30px; border-radius: 9px; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; flex: none; }
.me span:last-child { overflow: hidden; text-overflow: ellipsis; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: inherit; font-weight: 800; font-size: 15px; height: 48px; padding: 0 22px; border-radius: 13px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn.pri { background: var(--acc); color: #fff; box-shadow: 0 16px 34px -18px rgba(46,108,246,.95); }
.btn.pri:hover { background: var(--acc2); color: #fff; transform: translateY(-1px); }
.btn.sec { background: var(--card); color: var(--ink); border-color: var(--line2); }
.btn.sec:hover { border-color: var(--acc); color: var(--acc); }
.btn.sm { height: 40px; font-size: 14px; padding: 0 16px; border-radius: 12px; }

/* ---------- hero: title + «Последние версии» on the left, latest release card on the right ---------- */
.cl-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head card" "recent card"; grid-template-rows: auto 1fr; gap: 0 56px; align-items: start; padding-top: 56px; padding-bottom: 56px; }
.cl-head { grid-area: head; }
.cl-hero h1 { margin: 0 0 18px; font-weight: 900; font-size: clamp(50px, 6.6vw, 96px); line-height: .9; letter-spacing: -.06em; }
.cl-lede { margin: 0 0 40px; max-width: 440px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.cl-kind { font-family: Onest, system-ui, sans-serif; font-weight: 600; font-size: 13px; color: var(--mute); letter-spacing: 0; }

.cl-recent-box { grid-area: recent; }
.cl-recent-box h2 { margin: 0 0 6px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.cl-recent ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cl-recent li { border-bottom: 1px solid var(--line); }
.cl-recent a { display: grid; grid-template-columns: 92px 92px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 2px; color: var(--ink2); font-size: 14px; }
.cl-recent a:hover .s, .cl-recent a:focus-visible .s { color: var(--acc-tx); }
.cl-recent .v { white-space: nowrap; }
.cl-recent .v b { font: 700 14px var(--mono); color: var(--ink); }
.cl-recent .v .cl-kind { margin-right: 6px; }
.cl-recent time { color: var(--mute); font-size: 13px; white-space: nowrap; }
.cl-recent .s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .16s ease; }
.cl-rss { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 2px; color: var(--ink2); font-weight: 700; font-size: 14px; }
.cl-rss:hover { color: var(--acc); }

.cl-latest { grid-area: card; margin: 0; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.cl-lx-img { display: block; background: var(--card2); border-bottom: 1px solid var(--line); }
.cl-lx-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0; }
.cl-lx-body { padding: 24px 30px 28px; }
.cl-lx-k { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.cl-lx-k time { font-size: 13px; color: var(--mute); }
.cl-latest h2 { margin: 0 0 12px; font-weight: 900; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.04em; }
.cl-latest h2 a { color: var(--ink); }
.cl-latest h2 a:hover { color: var(--acc-tx); }
.cl-lx-t { margin: 14px 0 0; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.cl-latest ul { list-style: none; margin: 14px 0 22px; padding: 0; }
.cl-latest li { position: relative; margin: 8px 0; padding-left: 16px; color: var(--ink2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl-latest li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 4px; height: 4px; border-radius: 50%; background: var(--mute); }
.cl-latest li b { color: var(--ink); font-weight: 700; }
.cl-lx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cl-lx-more { font-weight: 700; font-size: 14.5px; color: var(--acc-tx); }
.cl-lx-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.cl-plat { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.cl-plat > span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.cl-plat svg { color: var(--mute); }

/* ---------- filter ---------- */
.cl-body { padding-bottom: 20px; }
.cl-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 15px; background: var(--line); margin: 8px 0 34px; }
.cl-filter button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 11px; background: none; color: var(--ink2); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.cl-filter button:hover { color: var(--ink); }
.cl-filter button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 6px 16px -12px rgba(11,11,15,.6); }
html[data-theme="dark"] .cl-filter button[aria-pressed="true"] { background: #262A37; box-shadow: none; }
.cl-filter b { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--mute); } /* Onest, not mono: the mono zero read as «8» at this size */
.cl-static .cl-filter, .cl-static #cl-more-btn { display: none; }

/* ---------- timeline ---------- */
.cl-day { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 0 28px; }
.cl-date { position: sticky; top: 84px; align-self: start; padding: 20px 0 24px; }
.cl-date h2 { margin: 0; font-weight: 900; font-size: 22px; line-height: 1.1; letter-spacing: -.035em; }
.cl-date span { display: block; margin-top: 4px; font-size: 14px; color: var(--mute); }
.cl-entries { position: relative; border-left: 2px solid var(--line); padding: 4px 0 18px 30px; min-width: 0; }
.cl-e { position: relative; max-width: 800px; padding: 16px 0 22px; scroll-margin-top: 96px; }
.cl-e .cl-dot { position: absolute; left: -37px; top: 23px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); }
.cl-eh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.cl-ver { display: inline-flex; align-items: baseline; gap: 7px; color: var(--ink); position: relative; }
.cl-ver b { font: 700 15px var(--mono); letter-spacing: -.01em; }
.cl-ver::after { content: "#"; margin-left: 6px; color: var(--mute); opacity: 0; transition: opacity .15s; }
.cl-ver:hover::after, .cl-ver:focus-visible::after { opacity: 1; }
.cl-ver:hover b, .cl-ver:hover .cl-kind { color: var(--acc); }
.cl-eh time { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.cl-eh .cl-plat > span { height: 24px; padding: 0 8px; font-size: 12px; background: transparent; }
.cl-t { margin: 2px 0 12px; font-weight: 800; font-size: 21px; line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
.cl-lead { margin: -4px 0 12px; color: var(--ink2); max-width: 68ch; }
.cl-g { margin-top: 10px; }
.cl-g ul { margin: 0; padding: 0; list-style: none; }
.cl-g li { position: relative; padding-left: 18px; margin: 7px 0; max-width: 70ch; color: var(--ink2); line-height: 1.5; text-wrap: pretty; }
.cl-g li::before { content: ""; position: absolute; left: 4px; top: .66em; width: 4px; height: 4px; border-radius: 50%; background: var(--mute); opacity: .7; }
.cl-g li b { color: var(--ink); font-weight: 700; }
.cl-gt { margin: 16px 0 2px; font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.cl-g:first-of-type .cl-gt { margin-top: 4px; }
.cl-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.cl-links a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line2); color: var(--ink); font-weight: 700; font-size: 14px; }
.cl-links a:hover { border-color: var(--acc); color: var(--acc); }

/* compact: patch releases without a headline */
.cl-e.compact { padding: 12px 0 14px; }
.cl-e.compact .cl-dot { top: 19px; }
.cl-e.compact .cl-g li { font-size: 14.5px; margin: 4px 0; }

/* major: its own surface */
.cl-e.major { max-width: none; margin: 10px 0 22px; padding: 24px 28px 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cl-e.major .cl-dot { left: -37px; top: 31px; }
.cl-e.major .cl-t { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.035em; margin-bottom: 14px; }
.cl-e.major.has-shot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); gap: 8px 28px; align-items: start; }
.cl-shot { margin: 0; align-self: center; }
.cl-e:not(.major) .cl-shot { max-width: 560px; margin-top: 16px; }
.cl-e:not(.major) .cl-shot img { margin: 0; border-radius: 14px; border: 1px solid var(--line); }
.cl-shot img { display: block; width: 100%; height: auto; margin: -4% 0; }
.cl-main { min-width: 0; }

/* art strips: wardrobe renders and emote stills (real assets) */
.cl-strip { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-width: 720px; }
.cl-strip li { min-width: 0; }
.cl-strip a, .cl-emo { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 8px 6px 10px; border-radius: 16px; background: var(--card2); border: 1px solid transparent; color: var(--ink2); font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; }
.cl-e.major .cl-strip a, .cl-e.major .cl-emo { background: var(--bg); }
.cl-strip a:hover, .cl-emo:hover, .cl-emo.on { border-color: var(--line2); color: var(--ink); }
.cl-strip img { display: block; width: 100%; max-width: 96px; height: auto; aspect-ratio: 1; object-fit: contain; image-rendering: auto; }
.cl-strip span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-emo { font-family: inherit; overflow: hidden; }
.cl-emo img { width: 136%; max-width: 131px; margin: -16% 0 -20%; }
html[data-theme="dark"] .cl-strip a, html[data-theme="dark"] .cl-emo,
html[data-theme="dark"] .cl-e.major .cl-strip a, html[data-theme="dark"] .cl-e.major .cl-emo { background: radial-gradient(80% 62% at 50% 40%, rgba(160,180,255,.13), rgba(160,180,255,0) 72%), #1A1D27; }

/* anchor highlight */
.cl-e.hit { animation: cl-hit 1.6s ease; }
@keyframes cl-hit { 0%, 30% { box-shadow: 0 0 0 3px var(--acc-soft), 0 0 0 1px var(--acc); border-radius: 18px; } 100% { box-shadow: 0 0 0 0 transparent; } }
.cl-e.major.hit { animation: cl-hit-major 1.6s ease; }
@keyframes cl-hit-major { 0%, 30% { box-shadow: 0 0 0 4px var(--acc-soft), 0 0 0 1px var(--acc), var(--shadow); } 100% { box-shadow: var(--shadow); } }

.cl-more { display: flex; align-items: center; gap: 18px; padding: 8px 0 0 200px; color: var(--mute); font-size: 14px; }
.cl-empty { color: var(--mute); padding: 40px 0; }

#cl-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 12px); opacity: 0; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; transition: opacity .15s, transform .15s; pointer-events: none; }
#cl-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer (same as /servers) ---------- */
footer.ft { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mute); font-size: 14px; }
footer.ft .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.ft a { color: var(--ink2); }
footer.ft a:hover { color: var(--acc); }
footer.ft a[aria-current] { color: var(--ink); font-weight: 700; }
footer.ft .sp { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cl-hero { gap: 0 36px; }
  .cl-recent a { grid-template-columns: 84px minmax(0, 1fr); }
  .cl-recent time { display: none; }
  .cl-e.major.has-shot { grid-template-columns: minmax(0, 1fr); }
  .cl-shot { max-width: 560px; }
}
@media (max-width: 900px) {
  .cl-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "recent"; padding-top: 36px; }
  .cl-lede { margin-bottom: 28px; }
  .cl-latest { max-width: 680px; margin-bottom: 36px; }
  .cl-recent a { grid-template-columns: 84px 96px minmax(0, 1fr); }
  .cl-recent time { display: inline; }
  .cl-day { grid-template-columns: minmax(0, 1fr); }
  .cl-date { position: static; padding: 26px 0 6px 0; display: flex; align-items: baseline; gap: 10px; }
  .cl-date span { margin: 0; }
  .cl-more { padding-left: 0; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hh nav { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .hh .links { order: 3; flex: 1 1 100%; justify-content: center; flex-wrap: wrap; }
  .hh .links a, .hh .links .nlx-tr { padding: 7px 10px; font-size: 13.5px; }
  .hh .dl { display: none; }
  .cl-hero { padding-top: 28px; padding-bottom: 36px; }
  .cl-lede { margin-bottom: 22px; }
  .cl-latest { border-radius: 20px; margin-bottom: 30px; }
  .cl-lx-body { padding: 18px 18px 22px; }
  .cl-lx-cta .btn { flex: 1 1 auto; }
  .cl-recent a { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .cl-recent time { display: none; }
  .cl-filter { display: flex; margin: 0 0 22px; }
  .cl-filter button { flex: 1 1 auto; justify-content: center; padding: 0 10px; gap: 6px; font-size: 14px; }
  .cl-entries { padding-left: 22px; }
  .cl-e { scroll-margin-top: 168px; }
  .cl-e .cl-dot { left: -29px; }
  .cl-e.major { margin-left: -6px; padding: 20px 18px 20px; border-radius: 20px; }
  .cl-e.major .cl-dot { left: -23px; top: 27px; }
  .cl-t { font-size: 19px; }
  .cl-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  footer.ft .sp { margin-left: 0; }
}
@media (max-width: 420px) {
  .cl-filter b { display: none; }
  .cl-lx-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cl-e.hit, .cl-e.major.hit { animation: none !important; }
}
