:root {
  --bg: #031427;
  --surface: #0b1c30;
  --text: #d3e4fe;
  --muted: #a9b8cf;
  --accent: #ffb3ad;
  --line: #5b403e;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f9ff;
    --surface: #f2f2fa;
    --text: #1a1c22;
    --muted: #44474e;
    --accent: #b91a24;
    --line: #c4c6d0;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 48px 16px 64px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
header img, header picture { display: block; } header img { width: 56px; height: 56px; border-radius: 12px; }
header a { color: inherit; text-decoration: none; font-weight: 700; font-size: 22px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
p, li { color: var(--muted); }
strong { color: var(--text); }
a { color: var(--accent); }
.updated { font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0; }
.grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px; }
.grid b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.grid span { font-size: 14px; color: var(--muted); }
.do { border-top: 3px solid #ff5451 !important; } .do b { color: #ff5451; }
.schedule { border-top: 3px solid #3b8bf0 !important; } .schedule b { color: #3b8bf0; }
.delegate { border-top: 3px solid #ec6a06 !important; } .delegate b { color: #ec6a06; }
.eliminate { border-top: 3px solid #64748b !important; } .eliminate b { color: #64748b; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
footer a { margin-right: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.toc a { font-size: 14px; text-decoration: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
h2[id] { scroll-margin-top: 16px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.phone { float: right; width: 200px; margin: 4px 0 16px 24px; }
.wide { margin: 24px 0; }
.wide img { border: none; background: none; border-radius: 0; }
h2 { clear: both; }
@media (max-width: 560px) {
  .shots { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .phone { float: none; width: 220px; margin: 16px auto; }
}
.shots-label { margin: 24px 0 -12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.phone.pair { width: 300px; }
.pair > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .phone.pair { width: 100%; max-width: 340px; } }
