:root {
  --bg: #ffffff; --text: #1f2029; --muted: #545868; --rule: #dcdde3; --link: #3d4a7a; --on-link: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #212129; --text: #e6e7ec; --muted: #a3a7b6; --rule: #40445a; --link: #aab6e8; --on-link: #212129; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
h1 { font-size: 28px; line-height: 1.2; margin: 24px 0 4px; }
h2 { font-size: 19px; margin: 32px 0 8px; }
p, li { margin: 8px 0; }
ul { padding-left: 20px; }
a { color: var(--link); }
.updated, .note { color: var(--muted); font-size: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }

/* Getting the app: one card for a phone, one for a Mac, the one for this device first. */
h3 { font-size: 17px; line-height: 1.3; margin: 0 0 4px; }
.get { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 640px) { .get { grid-template-columns: 1fr 1fr; align-items: start; } }
.get-card { border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; }
.get-card ol { padding-left: 20px; margin: 8px 0; }
.get-card li { margin: 4px 0; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--link); color: var(--on-link);
  font-weight: 600; text-decoration: none;
}
.button:hover { opacity: .9; }
.scan { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.scan img { flex: none; border-radius: 4px; }
.scan p { margin-top: 0; }
@media (max-width: 420px) { .scan { flex-direction: column; } }
html[data-device="mac"] .get-mac { order: -1; }
html[data-device]:not([data-device="ios"]) .only-ios,
html[data-device]:not([data-device="android"]) .only-android,
html[data-device="ios"] .only-computer, html[data-device="android"] .only-computer,
html[data-device="mac"] .only-phone, html[data-device="computer"] .only-phone { display: none; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; }
.share code { font-size: 14px; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 6px; word-break: break-all; }
.share button {
  font: inherit; font-size: 14px; padding: 4px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--text);
}
.share button:hover { border-color: var(--muted); }
