.link {
  text-decoration: none;
  color: var(--link-color, #0099ff);
  font-weight: bold;
}

:root{
  --nw-border:#cfd6df;
  --nw-head:#f5f7fa;
  --nw-title:#eef2f6;
  --nw-text:#1f2937;
  --nw-muted:#6b7280;
  --nw-accent:#2563eb;

  --nw-width: 520px;
  --flag-width: 24px;
}

body{
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--nw-text);
  margin: 24px;
}

/* 프로필 박스 */
.nw-profile{
  width: min(var(--nw-width), 100%);
  border: 1px solid var(--nw-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

/* 상단 타이틀 */
.nw-profile__title{
  background: var(--nw-title);
  border-bottom: 1px solid var(--nw-border);
  padding: 12px 14px;
  font-weight: 800;
  font-size: 16px;
  display:flex;
  align-items:center;
  gap:10px;
}

.nw-badge{
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--nw-accent) 12%, white);
  color: var(--nw-accent);
  border: 1px solid color-mix(in srgb, var(--nw-accent) 25%, white);
}

/* 테이블 */
.nw-profile table{
  width: 100%;
  border-collapse: collapse;
}

.nw-profile th,
.nw-profile td{
  border-bottom: 1px solid var(--nw-border);
  padding: 10px 12px;
  vertical-align: top;
  font-size: 14px;
}

.nw-profile th{
  width: 34%;
  background: var(--nw-head);
  color: #374151;
  font-weight: 700;
  white-space: nowrap;
}

.nw-profile tr:last-child th,
.nw-profile tr:last-child td{
  border-bottom: 0;
}

.nw-muted{ color: var(--nw-muted); }

.nw-kv{
  display:flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}
.nw-kv b{ font-weight: 800; }

.nw-pill{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--nw-border);
  background: #fff;
  font-size: 12px;
  color: #374151;
}

#output{ margin-top: 16px; }

.flag {
  width: var(--flag-width);
  height: auto;
  vertical-align: -3px;
  margin-right: 6px;
}