:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6fbfa;
  --text: #18302f;
  --muted: #6c7b79;
  --line: #e2ece9;
  --accent: #55bdb2;
  --accent-dark: #2d847c;
  --accent-soft: #eaf8f6;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.page-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0 14px 14px;
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf2f1;
}
.brand {
  display: inline-flex;
  direction: ltr;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  text-decoration: none;
}
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-weight: 850; letter-spacing: .07em; font-size: 18px; color: #244a47; }
.package-badge {
  padding: 6px 10px;
  border: 1px solid #cfe9e5;
  background: var(--surface-soft);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 750;
  font-size: 12px;
  white-space: nowrap;
}

.hero { text-align: center; padding: 16px 0 10px; }
.hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero h1 span { color: var(--accent-dark); direction: ltr; display: inline-block; }
.hero > p {
  margin: 7px auto 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.qr-card {
  width: 236px;
  height: 236px;
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.qr-code {
  width: 210px;
  height: 210px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.qr-code img, .qr-code canvas { width: 100% !important; height: 100% !important; display: block; }

.install-btn {
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  cursor: pointer;
}
.install-btn:active { transform: translateY(1px); }
.install-icon {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 8px;
  display: grid;
  place-items: center;
  line-height: 1;
  font-size: 18px;
}
.compatibility { margin: 7px auto 0 !important; font-size: 12px !important; }
.status-message { min-height: 15px; margin: 4px auto 0 !important; color: var(--accent-dark) !important; font-size: 11px !important; }

.details-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
.detail-row {
  direction: ltr;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.detail-row:last-child { border-bottom: 0; }
.detail-content { min-width: 0; flex: 1; text-align: left; }
.detail-label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.detail-content code {
  display: block;
  color: #213a38;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  flex: 0 0 auto;
  min-width: 45px;
  min-height: 34px;
  border: 1px solid #d7e8e5;
  background: #fff;
  color: var(--accent-dark);
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
}
.copy-btn.copied { background: var(--accent-soft); }

.note-card {
  margin-top: 9px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid #d3ebe7;
}
.note-card > div:last-child { flex: 1; min-width: 0; }
.note-card strong { color: var(--accent-dark); font-size: 11px; }
.note-card p { margin: 2px 0 0; color: var(--muted); line-height: 1.35; font-size: 10px; }
.note-icon {
  width: 23px; height: 23px; flex: 0 0 23px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: white; font-weight: 800; font-family: Georgia, serif; font-size: 12px;
}
footer { display: none; }

@media (max-width: 390px) {
  .page-shell { padding-inline: 10px; }
  .topbar { height: 54px; }
  .hero { padding-top: 12px; }
  .hero h1 { font-size: 27px; }
  .hero > p { font-size: 12px; margin-bottom: 9px; }
  .qr-card { width: 218px; height: 218px; padding: 10px; margin-bottom: 10px; }
  .qr-code { width: 196px; height: 196px; }
  .install-btn { min-height: 46px; font-size: 16px; }
  .detail-row { min-height: 54px; padding: 7px 9px; }
  .detail-content code { font-size: 9.5px; }
}
