:root {
  --bg: #fafaf8; --card: #ffffff; --text: #1d1d1b; --muted: #6b6a66; --line: #e4e2dc;
  --accent: #185fa5; --danger-bg: #fcebeb; --danger: #8f2424; --warn-bg: #faeeda; --warn: #7a4708;
  --ok-bg: #eaf3de; --ok: #2f5a0d; --chip: #f1efe8; --mono: ui-monospace, Consolas, monospace;
  --stripe-red: #e24b4a; --stripe-amber: #ba7517; --stripe-green: #639922;
  --field: #6b6a66; --focus: rgba(24, 95, 165, 0.25);
}
/* Light is the default for everyone. Dark only when the visitor picks it with the switch. */
:root[data-theme="dark"] {
  --bg: #161615; --card: #1f1f1d; --text: #ecebe6; --muted: #a3a29c; --line: #34332f;
  --accent: #85b7eb; --danger-bg: #3a1818; --danger: #f7c1c1; --warn-bg: #3a2a10; --warn: #fac775;
  --ok-bg: #1f2f12; --ok: #c0dd97; --chip: #2a2a27;
  --field: #8f8e88; --focus: rgba(133, 183, 235, 0.3);
}
.theme { margin-left: 16px; font: inherit; font-size: 14px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; cursor: pointer; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.brand { white-space: nowrap; }
nav { display: flex; align-items: center; }
@media (max-width: 440px) {
  nav a { margin-left: 12px; font-size: 13px; }
  .theme { margin-left: 12px; font-size: 13px; padding: 2px 8px; }
  .brand { font-size: 15px; }
}
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.bar { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { font-weight: 600; color: var(--text); text-decoration: none; }
nav a { margin-left: 16px; font-size: 14px; color: var(--muted); text-decoration: none; }
.lead { color: var(--muted); margin: 24px 0 16px; }
/* Row 1: version, build, software (three equal columns). Row 2: search, full width. Phones: one column. */
.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.grow { grid-column: 1 / -1; }
@media (max-width: 640px) { .controls { grid-template-columns: 1fr; } }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
select, input { font: inherit; font-size: 17px; padding: 11px 12px; border: 2px solid var(--field); border-radius: 8px; background: var(--card); color: var(--text); width: 100%; }
select { font-weight: 600; cursor: pointer; }
input::placeholder { color: var(--muted); }
select:hover, input:hover { border-color: var(--text); }
select:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.chips { margin: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 8px; background: var(--chip); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.chip.on { background: var(--accent); color: var(--card); border-color: var(--accent); }
.issue { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 14px; color: var(--text); }
.issue.open { border-left-color: var(--stripe-red); }
.issue.mitigated, .issue.fix-rolling-out, .issue.fix-available { border-left-color: var(--stripe-amber); }
.issue.fixed { border-left-color: var(--stripe-green); }
.issue.build { border-left-color: var(--accent); }
.issue.build > div { margin-top: 4px; }
.sw-box { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 8px 14px; margin: 10px 0; background: var(--card); }
.sw-h { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.sw-box details { border-top: 1px solid var(--line); }
.sw-box details:first-of-type { border-top: 0; }
.sw-box summary { padding: 6px 0; font-size: 14px; }
.sw-box .is { margin: 2px 0 6px 20px; }
.sw-card { border: 0; margin: 8px 0 0; }
.sw-card > summary { font-size: 14px; color: var(--accent); padding: 4px 0; }
.sw-list { margin: 6px 0; padding-left: 20px; font-size: 14px; }
.sw-list li { margin: 4px 0; }
.files { margin: 6px 0; }
.files > summary { font-size: 15px; }
.files-body { margin-left: 18px; }
.files-body .fix { margin-left: 18px; }
.picker { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; background: var(--card); margin: 8px 0 14px; }
.feedlink { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 2px; }
.feedlink code { font-family: var(--mono); font-size: 13px; background: var(--chip); padding: 6px 8px; border-radius: 6px; overflow-wrap: anywhere; flex: 1 1 260px; }
.feedlink .theme { margin-left: 0; }
.tshoot { margin-top: 8px; border-top: 1px solid var(--line); }
.tshoot > summary { font-weight: 600; color: var(--accent); }
.tshoot details { margin-left: 8px; }
.fh-month { margin-top: 6px; }
.fh-month > div { margin-left: 8px; }
.files.hp > summary { color: var(--muted); }
.search-wrap { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card); border: 1px solid var(--field); border-radius: 8px; max-height: 60vh; overflow-y: auto; padding: 4px 0; }
.sugg .sg-h { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 12px 2px; }
.sugg .sg-i { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px; cursor: pointer; font-size: 15px; }
.sugg .sg-i small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sugg .sg-i.active, .sugg .sg-i:hover { background: var(--chip); }
.startfrom { margin: 10px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.startfrom .chip.on { background: var(--accent); color: var(--card); border-color: var(--accent); }
.jumps { margin-top: 8px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jumps .jl { font-size: 13px; padding: 2px 9px; border-radius: 8px; background: var(--chip); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.jumps .jh { color: var(--muted); font-size: 13px; }
.shot { margin: 14px 0 18px; }
.shot img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; display: block; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
a.issue.banner { display: block; text-decoration: none; cursor: pointer; }
a.issue.banner:hover { border-color: var(--stripe-red); }
.issue.flash { box-shadow: 0 0 0 3px var(--focus); transition: box-shadow .3s; }
.pill.xp { background: var(--danger-bg); color: var(--danger); }
.pill.dis { background: var(--warn-bg); color: var(--warn); }
.xp-txt { color: var(--danger); font-weight: 600; }
.xp-line { margin-top: 6px; padding: 6px 10px; border-radius: 6px; background: var(--danger-bg); color: var(--danger); }
.field[hidden] { display: none; }
.field label code { font-family: var(--mono); font-size: 12px; font-weight: 400; }
.field .hint { font-size: 12px; color: var(--muted); }
.field .hint code { font-size: 12px; }
#bld { font-weight: 400; }
.ok-line { color: var(--ok); font-weight: 600; }
.issue .it { font-weight: 600; display: block; margin: 2px 0; }
.issue .is { color: var(--muted); font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; margin-right: 6px; }
.pill.open { background: var(--danger-bg); color: var(--danger); }
.pill.mitigated, .pill.fix-rolling-out, .pill.fix-available { background: var(--warn-bg); color: var(--warn); }
.pill.fixed { background: var(--ok-bg); color: var(--ok); }
.pill.src { background: var(--chip); color: var(--muted); font-weight: 400; }
.fixed-list { margin: 6px 0 10px; }
.fixed-list summary { font-size: 14px; color: var(--muted); }
.fixed-list .issue { margin-left: 18px; }
details { border-top: 1px solid var(--line); }
details details { margin-left: 18px; }
summary { cursor: pointer; padding: 10px 0; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > .l::before { content: "▸"; color: var(--muted); margin-right: 8px; }
details[open] > summary > .l::before { content: "▾"; }
summary .l { flex: 1; min-width: 0; }
summary .r { color: var(--muted); font-size: 14px; white-space: nowrap; }
.month > summary { font-weight: 600; }
.kb { font-family: var(--mono); font-size: 14px; }
.fix { margin-left: 36px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.fix .cve { font-family: var(--mono); font-size: 13px; }
.sev { font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--chip); }
.sev.Critical { background: var(--danger-bg); color: var(--danger); }
.sev.Important { background: var(--warn-bg); color: var(--warn); }
.muted { color: var(--muted); font-size: 14px; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 6px 26px; }
.note { margin: 32px 0 16px; }
.about h2 { font-size: 18px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page h1 { font-size: 26px; margin: 8px 0 4px; }
.crumbs { margin: 20px 0 0; }
.tablewrap { overflow-x: auto; }
.browse { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.browse a { margin-right: 10px; white-space: nowrap; }
.page h2 { font-size: 18px; margin: 32px 0 8px; }
.page li { margin: 4px 0; }
.steps { padding-left: 22px; }
.legend .issue { margin: 8px 0; }
.src-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.src-table th, .src-table td { text-align: left; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.src-table th { color: var(--muted); font-weight: 500; }
.res-h { font-size: 15px; margin: 16px 0 4px; }
@media (max-width: 560px) { summary { flex-wrap: wrap; } summary .l { flex-basis: calc(100% - 32px); overflow-wrap: anywhere; } summary .r { white-space: normal; width: 100%; padding-left: 18px; } .fix { margin-left: 12px; } details details { margin-left: 10px; } }
