/* cdn.io.vn — trang nội bộ, ưu tiên đọc trên điện thoại. */

:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --border: #e3e5e9;
  --text: #16181d;
  --muted: #60646c;
  --accent: #3c87f7;
  --accent-text: #ffffff;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --surface: #1a1c21;
    --border: #2a2d34;
    --text: #f2f3f5;
    --muted: #9ba1ab;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.hero { margin-bottom: 24px; }
.hero h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.25; letter-spacing: -0.02em; }
.sub { margin: 0; color: var(--muted); font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card h1 { margin: 0 0 8px; font-size: 22px; }
.card h2 { margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.card.center { text-align: center; }

.muted { color: var(--muted); }
.small { font-size: 13px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

/* QR: nền luôn trắng để camera đọc được kể cả ở dark mode */
.qr {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 18px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
}
.qr svg { display: block; width: 100%; height: auto; }

.build-meta { margin-bottom: 18px; }
.build-meta .name { display: block; font-weight: 600; word-break: break-all; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.btn-lg { display: block; padding: 15px 22px; font-size: 16px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  font-weight: 500;
  padding: 8px 16px;
  font-size: 14px;
}

.note { margin: 16px 0 0; }

.builds { list-style: none; margin: 0; padding: 0; }
.builds li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.builds li:last-child { border-bottom: none; padding-bottom: 0; }
.build-info { min-width: 0; }
.build-info .name { display: block; font-weight: 600; font-size: 14px; word-break: break-all; }
.build-info .muted { font-size: 13px; }

.api { margin: 0; }
.api dt { margin-bottom: 4px; }
.api dd { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.api dd:last-child { margin-bottom: 0; }

.foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.foot a { color: var(--muted); }
.foot .sep { margin: 0 6px; }

.center { text-align: center; }
