* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
}

header {
  background: #14161a;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .brand {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

nav a {
  color: #cfd2d8;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
}

nav a:hover,
nav a.active {
  color: #fff;
}

.lang-switch {
  margin-left: 24px;
  display: inline-flex;
  border: 1px solid #3a3d44;
  border-radius: 4px;
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: #cfd2d8;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
}

.lang-switch button.active {
  background: #2563eb;
  color: #fff;
}

main {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  border: 1px solid #e3e5e9;
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}

.card-title {
  background: #f0f1f3;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #e3e5e9;
}

.row {
  display: flex;
  padding: 12px 20px;
  border-bottom: 1px solid #eef0f2;
  font-size: 14px;
}

.row:last-child {
  border-bottom: none;
}

.row .label {
  flex: 0 0 160px;
  color: #555;
  font-weight: 600;
}

.row .value {
  flex: 1;
  word-break: break-all;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #999;
}

.badge.ok {
  background: #2fa84f;
}

.badge.none {
  background: #d99a2b;
}

.tool-form {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
}

.tool-form input,
.tool-form select {
  padding: 8px 10px;
  border: 1px solid #d5d8dc;
  border-radius: 4px;
  font-size: 14px;
}

.tool-form input {
  flex: 1;
}

.tool-form button {
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.tool-form button:hover {
  background: #1e4fc4;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #e3e5e9;
}

.tabs button {
  flex: 1;
  padding: 12px;
  border: none;
  background: #f0f1f3;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #555;
}

.tabs button.active {
  background: #fff;
  color: #14161a;
  box-shadow: inset 0 -2px 0 #2563eb;
}

pre.result {
  margin: 0;
  padding: 16px 20px;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 500px;
  overflow: auto;
}

.hint {
  padding: 0 20px 16px;
  color: #777;
  font-size: 13px;
}

.raw-json {
  border-top: 1px solid #e3e5e9;
}

.raw-json summary {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
}

footer {
  text-align: center;
  color: #999;
  font-size: 12px;
  padding: 24px 0 40px;
}
