:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1e2b;
  --muted: #5d6070;
  --line: #e4e2dc;
  --brand: #1c1e5d;
  --accent: #4a3fb5;
  --gold: #b97a1f;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121320;
    --surface: #1b1d2c;
    --text: #ecebf2;
    --muted: #a3a5b5;
    --line: #2c2f42;
    --brand: #dbe3ff;
    --accent: #aaa3ff;
    --gold: #e8a33d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; }

.lang { font-size: 15px; }

main { padding: 40px 0 64px; }

h1 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 34px;
  line-height: 1.2;
}

h2 {
  margin: 36px 0 8px;
  color: var(--brand);
  font-size: 22px;
}

h3 { margin: 24px 0 4px; font-size: 18px; }

.lead { margin: 0 0 24px; color: var(--muted); font-size: 19px; }

.meta { color: var(--muted); font-size: 15px; }

.card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

.card img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.card strong { display: block; color: var(--brand); font-size: 19px; }
.card span { color: var(--muted); }

.app-head { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; }
.app-head img { width: 88px; height: 88px; border-radius: 20px; flex: none; }

.links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .app-head img { width: 64px; height: 64px; }
}
