:root {
  --bg: #f7f7f8; --surface: #fff; --text: #17171c; --muted: #5f6270; --line: #e3e4e8;
  --accent: #4f46e5; --accent-soft: #eef0ff;
  --breaking: #b42318; --breaking-bg: #fdecea; --security: #a15c07; --security-bg: #fdf3e2;
  --major: #136c3a; --major-bg: #e6f5ec; --deprecation: #6b4bb8; --deprecation-bg: #f1ecfb;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111114; --surface: #1a1a1f; --text: #ececf1; --muted: #a0a3b1; --line: #2c2d35;
    --accent: #8b85ff; --accent-soft: #24234a;
    --breaking: #ff8a7a; --breaking-bg: #3a1916; --security: #f2b25c; --security-bg: #36270f;
    --major: #6fd39a; --major-bg: #12301f; --deprecation: #c3a8ff; --deprecation-bg: #2a2140;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.logo { color: var(--accent); }
.tagline { margin: 0; color: var(--muted); }

.layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-top: 24px; padding-bottom: 24px; }
.filters { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; }
.filters-toggle { display: none; }
.search input, select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
select { width: auto; }
.row { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.switch { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; }
.cat-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; }
.categories { margin-top: 8px; }
.cat { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; margin-bottom: 8px; }
.cat summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; list-style: none; }
.cat summary::-webkit-details-marker { display: none; }
.cat summary .name { flex: 1; font-weight: 600; }
.cat summary .chev { color: var(--muted); font-size: 12px; transition: transform .15s; }
.cat[open] summary .chev { transform: rotate(90deg); }
.products { padding: 0 10px 10px 34px; display: grid; gap: 2px; }
.products label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; cursor: pointer; }
.products .down { color: var(--breaking); font-size: 12px; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.rss { margin-top: 16px; font-size: 14px; }

.status { color: var(--muted); font-size: 14px; margin-bottom: 12px; min-height: 1.5em; }
.day { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 24px 0 8px; }
.day:first-child { margin-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.card.important { border-left: 3px solid var(--breaking); }
.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.product { font-weight: 600; color: var(--text); background: var(--accent-soft); padding: 1px 8px; border-radius: 99px; }
.card h3 { margin: 6px 0 4px; font-size: 16px; line-height: 1.35; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.summary { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.highlights { margin: 6px 0 0; padding-left: 18px; color: var(--muted); overflow-wrap: anywhere; }
.highlights li { margin: 2px 0; }
.tag { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 6px; }
.tag.breaking { color: var(--breaking); background: var(--breaking-bg); }
.tag.security { color: var(--security); background: var(--security-bg); }
.tag.major { color: var(--major); background: var(--major-bg); }
.tag.deprecation { color: var(--deprecation); background: var(--deprecation-bg); }
.also { margin-top: 8px; font-size: 13px; color: var(--muted); }
.toggle-more { margin-top: 4px; }
.more { display: block; margin: 16px auto; padding: 8px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.empty { padding: 32px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 32px; }
code { font-size: .92em; background: var(--accent-soft); padding: 0 4px; border-radius: 4px; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 12px; padding-top: 12px; }
  .filters { position: static; max-height: none; }
  .filters-toggle { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
  .filters-body { display: none; padding-top: 8px; }
  .filters.open .filters-body { display: block; }
}
