:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-soft: #F7F8FA;
  --ink: #111214;
  --muted: #6B7280;
  --border: #E7E9EE;
  --gold: #F4C343;
  --gold-soft: #FEF5D9;
  --green: #16A34A;
  --red: #EF4444;
  --radius: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.am-shell {
  max-width: 1280px;
  margin: 18px auto;
  background: #FAFBFB;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(17, 18, 20, 0.05);
  overflow: hidden;
}
.am-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.am-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.am-logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
}
.am-search {
  flex: 1;
  max-width: 440px;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F2F3F6;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--muted);
}
.am-search input {
  border: none; background: transparent; outline: none;
  width: 100%; font-size: 14px; color: var(--ink);
}
.am-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.am-langs a {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #F2F3F6;
  transition: .15s ease;
}
.am-langs a:hover { color: var(--ink); }
.am-langs a.is-active { background: var(--ink); color: #fff; }
.am-body { display: flex; min-height: 75vh; }
.am-rail {
  width: 68px;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.am-rail-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  transition: .15s ease;
}
.am-rail-btn:hover { background: #F2F3F6; color: var(--ink); }
.am-rail-btn.is-active { background: var(--ink); color: #fff; }
.am-main { flex: 1; padding: 26px 28px 40px; min-width: 0; }
.am-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.am-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.am-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.am-h1 {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.am-sub { margin: 0; color: var(--muted); font-size: 14px; }
.am-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.am-btn-black {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: transform .12s ease, opacity .15s ease;
}
.am-btn-black:hover { opacity: .9; transform: translateY(-1px); }
.am-btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.am-btn-pill:hover { border-color: var(--ink); }
.am-btn-full { width: 100%; margin-top: 14px; }
.am-bento-top {
  display: grid;
  grid-template-columns: 300px 1fr 290px;
  gap: 18px;
  margin-bottom: 18px;
}
.am-bento-mid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}
.am-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.am-hero-grad {
  background: linear-gradient(165deg, #E2EFFD 0%, #F4F6FA 48%, #FAECD6 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.am-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.am-ext-icon { width: 58px; height: 58px; border-radius: 14px; object-fit: contain; background: #fff; padding: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.am-icon-ph { display: grid; place-items: center; font-weight: 700; font-size: 22px; color: var(--ink); }
.am-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: #fff; border: 1px solid var(--border);
}
.am-badge-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.am-hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  background: rgba(255,255,255,0.72); border-radius: 12px; padding: 12px; margin-bottom: 12px;
}
.am-hero-stats span { display: block; font-size: 11px; color: var(--muted); }
.am-hero-stats strong { font-size: 15px; font-weight: 700; }
.am-meta-mini { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.am-meta-mini div { display: flex; justify-content: space-between; }
.am-meta-mini b { color: var(--ink); font-weight: 600; }
.am-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.am-card-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.am-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.am-tag { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #F2F3F6; color: var(--ink); }
.am-tag:hover { background: var(--ink); color: #fff; }
.am-summary { margin: 0 0 14px; font-size: 14px; color: #374151; }
.am-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.am-chip { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: #ECFDF5; color: #15803D; font-weight: 600; }
.am-h3-mini { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.am-compat-list { display: flex; flex-direction: column; gap: 8px; }
.am-compat-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 12px; background: var(--surface-soft); border-radius: 10px; }
.am-ok { color: var(--green); }
.am-warn { color: #D97706; }
.am-muted { color: var(--muted); }
.am-gauge-card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.am-gauge-wrap { position: relative; width: 200px; margin: 6px auto 10px; }
.am-gauge-svg { width: 100%; height: auto; display: block; }
.am-gauge-val { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; }
.am-gauge-val strong { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; display: block; line-height: 1; }
.am-gauge-val span { font-size: 12px; color: var(--muted); }
.am-gauge-legend { display: flex; gap: 14px; font-size: 12px; font-weight: 600; flex-wrap: wrap; justify-content: center; }
.am-dot-lbl { display: inline-flex; align-items: center; gap: 6px; }
.am-dot-lbl i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-low { background: var(--green); }
.dot-medium { background: var(--gold); }
.dot-high { background: var(--red); }
.dot-gold { background: var(--gold); }
.am-alert { margin-top: 12px; width: 100%; background: #FEF3C7; color: #92400E; font-size: 12px; padding: 8px 10px; border-radius: 10px; text-align: center; }
.am-bars { display: flex; flex-direction: column; gap: 12px; }
.am-bar-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.am-bar-track { height: 10px; border-radius: 999px; background: #F0F2F5; overflow: hidden; }
.am-bar-fill { height: 100%; border-radius: 999px; background: #E5E7EB; }
.am-bar-fill.is-striped {
  background: repeating-linear-gradient(45deg, #F4C343, #F4C343 6px, #F9DA7E 6px, #F9DA7E 12px);
}
.am-pros-cons { display: flex; flex-direction: column; gap: 10px; }
.am-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.am-list li { display: flex; align-items: flex-start; gap: 8px; }
.am-ic-ok { color: var(--green); font-weight: 700; }
.am-ic-no { color: #D97706; font-weight: 700; }
.am-perm-note { margin: 0 0 12px; font-size: 13px; color: #374151; }
.am-perms-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.am-perm-pill { font-size: 11px; padding: 4px 8px; border-radius: 8px; background: #F3F4F6; color: #374151; font-family: ui-monospace, monospace; }
.am-perm-pill.is-host { background: #FEF3C7; color: #92400E; }
.am-section { margin-bottom: 26px; }
.am-sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.am-sec-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.am-link-all { font-size: 13px; font-weight: 600; color: var(--ink); }
.am-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.am-mini-card {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; transition: .15s ease;
}
.am-mini-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.am-mini-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.am-mini-ic { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #F8F9FA; padding: 3px; }
.am-mini-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.am-mini-sum { margin: 0 0 10px; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.am-mini-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.am-score-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.risk-low { background: #DCFCE7; color: #166534; }
.risk-medium { background: var(--gold-soft); color: #92400E; }
.risk-high { background: #FEE2E2; color: #991B1B; }
.am-vs-list { display: flex; flex-wrap: wrap; gap: 10px; }
.am-vs-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.am-vs-pill b { background: var(--gold-soft); color: #92400E; padding: 2px 7px; border-radius: 999px; font-size: 11px; }
.am-vs-pill:hover { border-color: var(--ink); }
.am-vs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.am-vs-winner { border-color: var(--ink); box-shadow: 0 8px 24px rgba(17,18,20,0.06); }
.am-table-wrap { overflow-x: auto; padding: 0; margin-bottom: 22px; }
.am-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.am-table th, .am-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.am-table th { font-size: 12px; color: var(--muted); background: var(--surface-soft); }
.am-tbl-link { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.am-tbl-link img { width: 26px; height: 26px; border-radius: 6px; }
.am-stack-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.am-stack-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.am-stack-pill b { background: #F2F3F6; padding: 2px 7px; border-radius: 999px; font-size: 11px; color: var(--muted); }
.am-stack-pill:hover { border-color: var(--ink); }
.am-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.am-faq-item h3 { margin: 0 0 6px; font-size: 14px; }
.am-faq-item p { margin: 0; font-size: 13px; color: var(--muted); }
.am-footer {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}
@media (max-width: 1060px) {
  .am-bento-top { grid-template-columns: 1fr 1fr; }
  .am-gauge-card { grid-column: span 2; }
  .am-bento-mid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .am-shell { margin: 0; border-radius: 0; border: none; }
  .am-body { flex-direction: column; }
  .am-rail { width: 100%; flex-direction: row; justify-content: center; padding: 10px; border-right: none; border-bottom: 1px solid var(--border); }
  .am-main { padding: 18px 16px; }
  .am-bento-top, .am-vs-cards { grid-template-columns: 1fr; }
  .am-gauge-card { grid-column: span 1; }
}