:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1f2328;
  --muted: #656d76;
  --border: #d0d7de;
  --accent: #1c7ed6;
  --accent-soft: #e7f1fb;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --panel: #161b22;
    --text: #e6edf3;
    --muted: #8d96a0;
    --border: #30363d;
    --accent: #4dabf7;
    --accent-soft: #15283b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-bottom: 1px solid var(--border); background: var(--panel);
}
.logo { font: 700 20px var(--mono); color: var(--accent); text-decoration: none; }
.langs { display: flex; gap: 8px; font: 12px var(--mono); }
.langs a { color: var(--muted); text-decoration: none; }
.langs a.active { color: var(--accent); font-weight: 700; }
main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.btn {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--panel); color: var(--text); font: inherit; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }

.hero { text-align: center; padding: 28px 0 32px; }
.hero .label { margin: 0; font-weight: 400; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.ip-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin: 8px 0 12px; }
.ip {
  font: 700 clamp(26px, 6vw, 52px)/1.15 var(--mono); color: var(--accent);
  overflow-wrap: anywhere;
}
.sub { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; }
.sub .mono { overflow-wrap: anywhere; }
.tag {
  padding: 1px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  font: 600 12px var(--mono);
}
.flag { font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 18px; min-width: 0;
}
.card.wide { margin-top: 16px; }
.card h2 { margin: 0 0 10px; font-size: 15px; }
.card p { margin: 0; }
.card .credit { margin-top: 10px; font-size: 11px; }
.credit a { color: var(--muted); }

dl { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dd .warn { color: #e8590c; }

.headers { width: 100%; border-collapse: collapse; font: 12px/1.5 var(--mono); }
.headers th, .headers td { text-align: left; vertical-align: top; padding: 4px 8px; border-top: 1px solid var(--border); }
.headers tr:first-child th, .headers tr:first-child td { border-top: 0; }
.headers th { color: var(--muted); font-weight: 400; white-space: nowrap; width: 1%; }
.headers td { overflow-wrap: anywhere; word-break: break-word; }
.headers tr { position: relative; }
.hint {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 4px; border: 1px solid var(--border); border-radius: 50%;
  font: 600 10px/1 var(--mono); color: var(--muted); cursor: help; vertical-align: 1px; outline: none;
}
.hint:hover, .hint:focus { color: var(--accent); border-color: var(--accent); }
.hint::after {
  content: attr(data-tip); position: absolute; left: 4px; top: calc(100% - 2px); z-index: 10;
  width: max-content; max-width: min(420px, calc(100% - 8px)); padding: 8px 10px;
  background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  font: 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: normal; text-align: left;
  visibility: hidden; opacity: 0; transition: opacity .12s;
}
.hint:hover::after, .hint:focus::after { visibility: visible; opacity: 1; }

.about { margin: 0 0 10px !important; color: var(--muted); }
.cli {
  margin: 0; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  font: 13px/1.6 var(--mono); overflow-x: auto;
}

@media (max-width: 560px) {
  dl { grid-template-columns: 1fr; gap: 0; }
  dd { margin-bottom: 6px; }
  .headers th { white-space: normal; width: 35%; }
}
