:root {
  --bg: #f4f8fb;
  --panel: #fff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe7ef;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #e7f7f3;
  --blue: #2563eb;
  --shadow: 0 20px 60px rgba(15, 23, 42, .08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 197, 94, .12), transparent 32%),
    radial-gradient(circle at 82% 4%, rgba(37, 99, 235, .10), transparent 30%),
    linear-gradient(180deg, #f8fbfa 0%, #f4f8fb 42%, #fff 100%);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}
.nav-wrap { display: flex; min-height: 70px; align-items: center; justify-content: center; gap: 30px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; min-width: 0; font-weight: 900; }
.brand img, .brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  object-fit: contain;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.brand-mark {
  background: linear-gradient(135deg, #0f766e, #16a34a 48%, #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(15, 118, 110, .22);
}
.brand strong { color: #09c86b; font-size: 20px; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.brand small { display: none; }
.main-nav { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: center; gap: 18px; flex-wrap: nowrap; }
.main-nav a { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 999px; color: #777; font-size: 15px; font-weight: 650; white-space: nowrap; }
.main-nav a:hover { color: #111; background: #f5f5f5; }
.main-nav a.active { padding: 0 17px; background: #050505; color: #fff; font-weight: 800; }
.nav-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; margin-left: 8px; }
.contact-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 999px;
  background: #00c86f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}
.contact-pill:hover { background: #00b965; color: #fff; }
.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}
.lang-switch button {
  min-width: 52px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #777;
  font-size: 13px;
  font-weight: 900;
}
.lang-switch button.active { background: #050505; color: #fff; border-radius: 999px; }

.hero { padding: 68px 0 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr); align-items: center; gap: 34px; }
.hero-stack { display: grid; gap: 24px; justify-items: center; }
.hero-copy {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 980px;
  padding: 22px 10px 8px;
  text-align: center;
  transition: opacity .18s ease, transform .18s ease;
}
.hero-copy.is-switching {
  opacity: .18;
  transform: translateY(4px);
}
.eyebrow, .pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #bfe5df;
  border-radius: 999px;
  background: #f0fbf8;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}
.hero h1, .page-hero h1 { margin: 18px auto 14px; max-width: 980px; color: #07111f; font-size: 58px; line-height: 1.04; letter-spacing: 0; }
.hero p, .page-hero p { max-width: 820px; margin: 0 auto; color: #475569; font-size: 18px; line-height: 1.82; }
.hero-actions, .tester-actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.hero-actions { justify-content: center; }
.notice { display: flex; gap: 10px; align-items: center; margin-top: 24px; color: #526273; }
.notice span { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 6px rgba(34, 197, 94, .14); }

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 118, 110, .16);
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary, .btn.ghost { border-color: #d7e2ec; background: rgba(255,255,255,.88); color: var(--ink); box-shadow: 0 10px 26px rgba(15, 23, 42, .06); }
.btn.ghost { background: transparent; }

.tester-card, .stat-card, .model-card, .station-card, .article-card, .matrix-card, .admin-card, .side-card, .article-body, .login-box, .contact-panel, .contact-aside {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.tester-card { overflow: hidden; }
.card-head { display: flex; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f8fbfd); }
.card-head h2 { margin: 0 0 2px; font-size: 19px; }
.card-head p { margin: 0; color: var(--muted); font-size: 13px; }
.tester-form { display: grid; gap: 12px; padding: 18px; }
label { display: grid; gap: 7px; color: #334155; font-size: 13px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tester-row { display: grid; grid-template-columns: .75fr 1fr; gap: 12px; align-items: end; }
.check { display: flex; flex-direction: row; align-items: center; min-height: 40px; }
.check input { width: 18px; min-height: 18px; }
.tester-actions span { color: var(--muted); font-size: 13px; }
.tester-result { padding: 0 18px 18px; }
.metric-row, .stat-grid, .mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-row div, .mini-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}
.metric-row small, .mini-grid small { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.metric-row strong, .mini-grid strong { display: block; margin-top: 4px; font-size: 18px; }
pre, .curl-box textarea {
  overflow: auto;
  max-height: 300px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: #0f172a;
  color: #d1fae5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  white-space: pre-wrap;
}
.curl-box { padding: 0 18px 18px; }

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home-api-checker {
  width: 100%;
  overflow: hidden;
  max-width: 1100px;
  border: 1px solid rgba(14, 15, 12, .08);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 26px 70px rgba(14, 15, 12, .10);
}
.home-checker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1ec;
  background: #fbfdfb;
}
.home-checker-head h2 { margin: 0; color: #0e0f0c; font-size: 18px; font-weight: 950; }
.home-checker-head a { color: #04a85b; font-size: 13px; font-weight: 900; }
.home-checker-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px 12px;
}
.home-checker-form label,
.api-key-form label {
  display: grid;
  gap: 7px;
  color: #0e0f0c;
  font-size: 13px;
  font-weight: 850;
}
.home-checker-form input,
.home-checker-form textarea,
.home-checker-form select,
.api-key-form input,
.api-key-form textarea,
.api-key-form select {
  min-height: 44px;
  border-color: rgba(14, 15, 12, .12);
  border-radius: 10px;
}
.home-key-field { display: grid; gap: 4px; }
.home-key-field small,
.api-key-form small { color: #868685; font-size: 12px; font-weight: 700; }
.home-model-picker,
.format-cards {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.home-model-picker legend,
.format-cards legend {
  margin-bottom: 8px;
  color: #868685;
  font-size: 12px;
  font-weight: 900;
}
.home-model-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.home-model-picker label,
.format-cards label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.home-model-picker input,
.format-cards input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.home-model-picker span,
.format-cards span {
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 10px 11px;
  border: 1px solid #e6ece5;
  border-radius: 12px;
  background: #fff;
}
.home-model-picker input:checked + span,
.format-cards input:checked + span {
  border-color: #04d16a;
  box-shadow: inset 0 0 0 1px #04d16a, 0 8px 20px rgba(4, 209, 106, .12);
}
.home-model-picker strong,
.format-cards strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.home-model-picker small,
.format-cards small { overflow: hidden; color: #868685; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-model-picker em,
.format-cards em {
  position: absolute;
  top: 6px;
  right: 7px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #04d16a;
  color: #163300;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}
.home-trust,
.home-security,
.home-checker-actions {
  grid-column: 1 / -1;
}
.home-trust {
  padding: 9px 10px;
  border: 1px solid #e5f6ec;
  border-radius: 10px;
  background: #f5fff9;
  color: #17633a;
  font-size: 13px;
  font-weight: 850;
}
.home-security {
  margin: 0;
  color: #868685;
  font-size: 12px;
  line-height: 1.55;
}
.home-checker-actions,
.api-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.home-start-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #04d16a;
  color: #163300;
  font-weight: 950;
  cursor: pointer;
}
.home-checker-actions button:not(.home-start-btn),
.curl-head button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dfe5df;
  border-radius: 999px;
  background: #fff;
  color: #0e0f0c;
  font-weight: 850;
  cursor: pointer;
}
.home-show-key {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 7px !important;
  min-height: 38px;
  color: #454745;
}
.home-show-key input {
  width: 15px;
  min-height: 15px;
  accent-color: #04d16a;
}
.home-tester-result {
  padding: 0 16px 16px;
}
.home-tester-result .metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-tester-result pre { margin: 10px 0 0; max-height: 180px; }

.api-key-page { background: #fff; }
.api-key-shell { max-width: 1120px; padding: 34px 0 44px; }
.api-key-hero {
  max-width: 760px;
  margin-bottom: 24px;
}
.api-key-hero h1 {
  margin: 12px 0 10px;
  color: #0e0f0c;
  font-size: 36px;
  font-weight: 950;
  line-height: 1.15;
}
.api-key-hero p { margin: 0; color: #454745; font-size: 16px; line-height: 1.75; }
.api-safe-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.api-safe-badges span {
  padding: 5px 10px;
  border: 1px solid #dfe5df;
  border-radius: 999px;
  color: #04a85b;
  font-size: 12px;
  font-weight: 900;
}
.api-key-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
  align-items: start;
}
.api-config-panel,
.api-result-panel,
.curl-section,
.terminal-guide,
.api-faq-grid article {
  border: 1px solid #eef1ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 15, 12, .06);
}
.api-config-panel,
.api-result-panel { padding: 18px; }
.api-config-panel h2,
.api-result-panel h2,
.curl-section h2,
.terminal-guide h2,
.api-faq-grid h2 {
  margin: 0 0 14px;
  color: #0e0f0c;
  font-size: 20px;
  font-weight: 950;
}
.api-key-form { display: grid; gap: 14px; }
.format-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.format-cards span { min-height: 84px; }
.format-cards em {
  position: static;
  width: fit-content;
  margin-top: 3px;
  background: #f1f5f9;
  color: #454745;
}
.api-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.challenge-line { padding: 12px; border: 1px dashed #dfe5df; border-radius: 12px; background: #fafafb; }
.api-result-panel { position: sticky; top: 86px; }
.api-result-panel .home-tester-result { padding: 0; }
.curl-section,
.terminal-guide { margin-top: 18px; padding: 18px; }
.curl-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.curl-head p { margin: 0; color: #868685; }
.curl-section textarea {
  min-height: 220px;
  margin-top: 14px;
  background: #0f172a;
  color: #d1fae5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
.api-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.api-faq-grid article {
  margin-bottom: 12px;
  padding: 16px;
  box-shadow: none;
}
.api-faq-grid h3 { margin: 0 0 8px; color: #0e0f0c; font-size: 16px; }
.api-faq-grid p { margin: 6px 0 0; color: #454745; }

.section { padding: 48px 0; }
.section.compact { padding-top: 14px; }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; }
.section-head.compact-head { margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--accent-dark); font-size: 13px; font-weight: 900; }
.section-head h2 { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: 0; }
.section-head span { color: var(--muted); }
.stat-grid { grid-template-columns: repeat(3, 1fr); }
.model-grid { grid-template-columns: repeat(4, 1fr); }
.stat-card, .model-card, .station-card, .article-card, .matrix-card { padding: 22px; transition: transform .18s ease, box-shadow .18s ease; }
.stat-card:hover, .model-card:hover, .station-card:hover, .article-card:hover, .matrix-card:hover { transform: translateY(-3px); box-shadow: 0 26px 70px rgba(15, 23, 42, .10); }
.stat-card strong { display: block; margin: 9px 0 4px; font-size: 34px; line-height: 1; }
.stat-card small, .stat-card p, .model-card small, .model-card p, .station-card p, .article-card p, .matrix-card p { color: var(--muted); }
.model-card { display: grid; gap: 12px; }
.model-card span { width: fit-content; padding: 4px 10px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-weight: 900; }
.station-grid, .article-grid, .matrix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.station-top { display: flex; justify-content: space-between; gap: 12px; }
.station-top h3, .article-card h3, .matrix-card h3 { margin: 0; font-size: 19px; }
.station-top span, .tags span {
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
}
.mini-grid { grid-template-columns: repeat(2, 1fr); }
.model-reco-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.model-group {
  overflow: hidden;
  border: 1px solid #e5edf6;
  border-radius: 18px;
  background: #fff;
}
.model-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e5edf6;
  background: #fbfdff;
}
.model-group-head div { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.model-group-head h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.model-group-head a { color: var(--accent-dark); font-size: 13px; font-weight: 850; }
.model-group-head span {
  padding: 4px 9px;
  border: 1px solid #dbe7f0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.model-table-wrap { overflow-x: auto; }
.model-table { min-width: 860px; }
.model-table th, .model-table td { padding: 11px 14px; font-size: 14px; }
.model-table th { background: #fff; color: #6b7788; font-size: 12px; font-weight: 850; white-space: nowrap; }
.model-table tr:last-child td { border-bottom: 0; }
.site-cell a { color: #0f172a; font-weight: 900; }
.soft-tag {
  display: inline-flex;
  max-width: 132px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.trend-line {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  align-items: end;
  width: 56px;
  height: 22px;
}
.trend-line i {
  display: block;
  width: 10px;
  border-radius: 999px 999px 2px 2px;
  background: #16a34a;
}
.trend-line i:nth-child(1) { height: 8px; opacity: .45; }
.trend-line i:nth-child(2) { height: 13px; opacity: .65; }
.trend-line i:nth-child(3) { height: 10px; opacity: .78; }
.trend-line i:nth-child(4) { height: 18px; }
.rate-good { color: #047857; }
.status-bars {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  align-items: end;
  margin-right: 7px;
  vertical-align: middle;
}
.status-bars i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: #16a34a;
}
.status-bars i:nth-child(1) { height: 8px; opacity: .55; }
.status-bars i:nth-child(2) { height: 12px; opacity: .75; }
.status-bars i:nth-child(3) { height: 16px; }
.model-table td small { display: inline; color: var(--muted); font-size: 12px; }
.model-select-page,
.leaderboard-page {
  background: #fff;
}
.model-select-shell,
.leaderboard-shell {
  max-width: 1120px;
  padding: 28px 0 42px;
}
.ms-hero {
  max-width: 960px;
  margin: 0 auto 36px;
  padding: 18px 0 4px;
}
.ms-hero h1 {
  margin: 0;
  color: #0e0f0c;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.18;
}
.ms-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #454745;
  font-size: 16px;
  line-height: 1.7;
}
.ms-block {
  max-width: 960px;
  margin: 0 auto 34px;
}
.ms-block header,
.hot-models header {
  margin-bottom: 14px;
}
.ms-block h2,
.hot-models h2 {
  margin: 0;
  color: #0e0f0c;
  font-size: 20px;
  font-weight: 950;
}
.ms-block header p,
.hot-models header p {
  margin: 4px 0 0;
  color: #868685;
  font-size: 14px;
}
.ms-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ms-choice-card {
  display: flex;
  min-height: 154px;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #eef1ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14, 15, 12, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ms-choice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(14, 15, 12, .12);
}
.ms-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #04D16A;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}
.ms-choice-card strong {
  color: #0e0f0c;
  font-size: 16px;
  font-weight: 950;
}
.ms-choice-card small {
  margin-top: 6px;
  color: #868685;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}
.ms-results,
.dimension-card {
  max-width: 960px;
  margin: 0 auto 28px;
}
.ms-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.ms-step span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8e8e6;
  color: #868685;
  font-size: 12px;
  font-weight: 950;
}
.ms-step span.active {
  background: #0e0f0c;
  color: #fff;
}
.ms-step i {
  display: block;
  width: 42px;
  height: 1px;
  background: #e8e8e6;
}
.ms-result-card {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #e8e8e6;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 15, 12, .07);
}
.ms-result-card.gold { border-top: 4px solid #F59E0B; }
.ms-result-card.green { border-top: 4px solid #10B981; }
.ms-result-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0ee;
}
.ms-result-head .ms-icon {
  margin: 0;
}
.ms-result-head p {
  margin: 0;
  color: #D97706;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.ms-result-head h3 {
  margin: 2px 0 0;
  color: #0e0f0c;
  font-size: 20px;
  font-weight: 950;
}
.hot-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hot-model-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #eef1ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(14, 15, 12, .05);
}
.hot-model-card strong { color: #0e0f0c; font-size: 16px; }
.hot-model-card span { color: #454745; font-size: 13px; font-weight: 800; }
.hot-model-card small { color: #868685; font-size: 12px; }
.channel-table-wrap {
  overflow-x: auto;
  background: #fff;
}
.channel-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}
.channel-table th,
.channel-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0ee;
  text-align: left;
  font-size: 13px;
}
.channel-table th {
  background: #fafafb;
  color: #868685;
  font-size: 12px;
  font-weight: 900;
}
.channel-table td.num,
.channel-table th:nth-child(n+3) {
  text-align: right;
}
.table-visit {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid #dfe5df;
  border-radius: 999px;
  color: #0e0f0c;
  font-size: 12px;
  font-weight: 850;
}
.leaderboard-shell {
  max-width: 1120px;
}
.lb-hero {
  padding: 8px 0 20px;
}
.lb-hero p {
  margin: 0;
  color: #04A85B;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.lb-hero h1 {
  margin: 6px 0 8px;
  color: #0e0f0c;
  font-size: 32px;
  font-weight: 950;
  line-height: 1.15;
}
.lb-hero span {
  display: block;
  max-width: 720px;
  color: #454745;
}
.lb-panel {
  overflow: hidden;
  border: 1px solid #eef1ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(14, 15, 12, .08);
}
.lb-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px;
  border-bottom: 1px solid #eef1ec;
  background: #fafafb;
}
.lb-tab {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  white-space: nowrap;
  padding: 0 14px;
  border-radius: 999px;
  color: #454745;
  font-size: 13px;
  font-weight: 900;
}
.lb-tab.active {
  background: #0e0f0c;
  color: #fff;
}
.lb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1ec;
}
.lb-toolbar span {
  padding: 5px 10px;
  border: 1px solid #dfe5df;
  border-radius: 999px;
  color: #454745;
  font-size: 12px;
  font-weight: 850;
}
.lb-toolbar strong {
  margin-left: auto;
  color: #868685;
  font-size: 12px;
}
.lb-channel[hidden],
.lb-channel.hidden {
  display: none;
}
.lb-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 12px;
}
.lb-channel-head h2 {
  margin: 0;
  color: #0e0f0c;
  font-size: 22px;
}
.lb-channel-head p {
  margin: 4px 0 0;
  color: #868685;
  font-size: 13px;
}
.lb-channel-head a {
  color: #04A85B;
  font-size: 13px;
  font-weight: 950;
}
.lb-disclaimer {
  margin: 0;
  padding: 14px 18px 18px;
  color: #868685;
  font-size: 12px;
  line-height: 1.7;
}
.table-panel { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f8fafc; color: #475569; font-size: 13px; }
td small, .meta { display: block; color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
summary { padding: 16px 18px; cursor: pointer; font-weight: 800; }
details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.plain-faq { display: grid; gap: 0; padding: 0 0 10px; }
.plain-faq h2 { margin: 0 0 14px; color: #020617; font-size: 22px; line-height: 1.25; }
.plain-faq-item { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.plain-faq-item:first-of-type { padding-top: 0; }
.plain-faq-item h3 { margin: 0 0 8px; color: #020617; font-size: 15px; line-height: 1.55; }
.plain-faq-item p { margin: 0; color: #334155; font-size: 14px; line-height: 1.9; }

.page-hero { padding: 64px 0 28px; text-align: center; }
.article-page { padding: 42px 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 1fr; gap: 28px; align-items: start; }
.article-body { padding: 34px; }
.markdown-body h1 { margin: 10px 0 18px; font-size: 36px; line-height: 1.15; }
.markdown-body h2 { margin: 30px 0 10px; font-size: 25px; }
.markdown-body h3 { margin: 24px 0 8px; }
.markdown-body p, .markdown-body li { color: #334155; font-size: 16px; }
.markdown-body blockquote { margin: 20px 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: #f0fbf8; color: #334155; }
.markdown-body code { padding: 2px 5px; border-radius: 5px; background: #eef2f7; }
.side-card { display: grid; gap: 10px; padding: 18px; box-shadow: none; }
.side-card h3 { margin: 0; }
.side-card a { color: var(--muted); }
.article-inlinks {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.article-inlinks h2 {
  margin: 0 0 14px;
  font-size: 22px;
}
.article-inlink-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.article-inlink-grid a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}
.article-inlink-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.article-inlink-grid strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
}

.contact-hero h1 { font-size: 42px; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 18px;
  align-items: start;
}
.contact-panel, .contact-aside { padding: 22px; box-shadow: none; }
.contact-title p { margin: 0 0 4px; color: var(--accent-dark); font-size: 13px; font-weight: 900; }
.contact-title h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.2; }
.contact-panel > p { margin: 0 0 18px; color: #475569; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row strong, .contact-note-list strong { display: block; color: #0f172a; }
.contact-row span, .contact-note-list span { display: block; color: var(--muted); font-size: 13px; }
.contact-row a { color: var(--accent-dark); font-weight: 900; }
.contact-row em { color: #475569; font-style: normal; font-weight: 800; }
.contact-aside h3 { margin: 0 0 14px; font-size: 20px; }
.contact-note-list { display: grid; gap: 10px; }
.contact-note-list div {
  padding: 12px;
  border: 1px solid #e5edf6;
  border-radius: var(--radius);
  background: #f8fafc;
}

.contact-page { background: #fff; }
.contact-shell { max-width: 1160px; padding: 24px 0 34px; }
.contact-card { max-width: 672px; margin: 0 auto; }
.contact-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  padding: 4px;
  border: 1px solid rgba(14, 15, 12, .1);
  border-radius: 14px;
  background: #f1f5f9;
}
.contact-tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #868685;
  font-size: 14px;
  font-weight: 800;
}
.contact-tabs button.active {
  background: #fff;
  color: #0e0f0c;
  box-shadow: 0 1px 3px rgba(14, 15, 12, .08);
}
.contact-pane { display: none; }
.contact-pane.active { display: block; }
.contact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-heading.stacked { display: block; }
.contact-heading h1 {
  margin: 0;
  color: #0e0f0c;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.1;
}
.contact-heading p {
  margin: 8px 0 0;
  color: #868685;
  font-size: 16px;
  font-weight: 750;
}
.outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(14, 15, 12, .12);
  border-radius: 9999px;
  background: #fff;
  color: #0e0f0c;
  font-size: 14px;
  font-weight: 800;
}
.outline-pill.small { min-height: 34px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.listing-status-box,
.listing-notice,
.qq-panel {
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid rgba(14, 15, 12, .08);
  border-radius: 16px;
  background: #f8fafc;
  color: #3a3a38;
}
.listing-status-box h3 { margin: 0 0 14px; font-size: 18px; }
.listing-notice { display: grid; gap: 12px; font-size: 14px; font-weight: 650; line-height: 1.75; }
.listing-notice p { margin: 0; }
.listing-notice ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
.notice-title { color: #0e0f0c; font-weight: 850; }
.listing-form { display: grid; gap: 24px; }
.listing-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.listing-form legend {
  margin-bottom: 12px;
  color: #868685;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.listing-form label,
.compact-form label {
  display: grid;
  gap: 6px;
  color: #0e0f0c;
  font-size: 14px;
  font-weight: 800;
}
.listing-form label span,
.compact-form label span { color: #d03238; }
.listing-form input,
.listing-form textarea,
.compact-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(14, 15, 12, .12);
  border-radius: 10px;
  background: #fff;
  color: #0e0f0c;
  font-size: 16px;
  outline: none;
}
.listing-form textarea { min-height: 160px; line-height: 1.7; resize: vertical; }
.listing-form input:focus,
.listing-form textarea:focus,
.compact-form input:focus { box-shadow: inset 0 0 0 1px #868685; }
.listing-form small { color: #454745; font-size: 14px; font-weight: 750; line-height: 1.6; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form-grid label:nth-child(3), .full-field { grid-column: 1 / -1; }
.model-checks { display: flex; flex-wrap: wrap; gap: 12px; }
.model-checks label {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(14, 15, 12, .12);
  border-radius: 10px;
  background: #fff;
  color: #3a3a38;
  font-size: 14px;
  font-weight: 750;
}
.model-checks input { width: 14px; min-height: 14px; accent-color: #04D16A; }
.password-line { display: flex; gap: 8px; align-items: center; }
.password-line input { min-width: 0; }
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 8px;
}
.submit-pill {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  border: 0;
  border-radius: 9999px;
  background: #04D16A;
  color: #163300;
  font-size: 16px;
  font-weight: 900;
}
.submit-pill:disabled { opacity: .55; cursor: not-allowed; }
.form-message { min-height: 22px; color: var(--muted); font-size: 14px; font-weight: 800; }
.form-message.ok { color: #047857; }
.form-message.error { color: #d03238; }
.compact-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.qq-panel { padding: 24px 32px; text-align: center; }
.qq-placeholder {
  display: grid;
  width: min(320px, 100%);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(14, 15, 12, .1);
  border-radius: 16px;
  background: #fff;
  color: #868685;
  font-weight: 900;
}
.qq-panel p { margin: 0; color: #3a3a38; font-weight: 750; }
.contact-guidance { margin-bottom: 24px; }

.site-footer { margin-top: 52px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f8fbfb); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 28px; padding: 34px 0; }
.footer-grid h3 { margin: 0 0 10px; }
.footer-grid a, .footer-grid span, .footer-grid p { display: block; color: var(--muted); }
.copyright { padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.admin-bg { display: grid; min-height: 100vh; place-items: center; }
.login-box { width: min(420px, calc(100% - 32px)); padding: 26px; }
.alert { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius); background: #ecfdf5; color: var(--accent-dark); font-weight: 800; }
.admin-page { display: grid; min-height: 100vh; grid-template-columns: 250px minmax(0, 1fr); }
.admin-side { position: sticky; top: 0; height: 100vh; padding: 22px; border-right: 1px solid var(--line); background: #fff; }
.admin-side a { display: block; margin-top: 10px; color: #334155; font-weight: 800; }
.admin-main { padding: 24px; }
.admin-card { padding: 18px; margin-top: 14px; box-shadow: none; }
.form-stack { display: grid; gap: 14px; }
.json-editor { min-height: 520px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; }
.submission-list { display: grid; gap: 12px; }
.submission-item { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8fafc; }
.submission-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.submission-head strong { display: block; font-size: 16px; }
.submission-head small { display: block; color: var(--muted); }
.submission-head span { height: fit-content; padding: 3px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 850; }
.submission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.submission-item p { margin: 6px 0; color: #475569; }
.submission-actions { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 12px; }

@media (max-width: 980px) {
  .nav-wrap { flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 10px 0; }
  .brand { min-width: 0; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .article-layout, .footer-grid, .admin-page, .contact-layout { grid-template-columns: 1fr; }
  .hero-stack { max-width: none; }
  .home-api-checker { width: 100%; }
  .api-key-grid, .api-faq-grid { grid-template-columns: 1fr; }
  .api-result-panel { position: static; }
  .admin-side { position: static; height: auto; }
  .stat-grid, .model-grid, .station-grid, .article-grid, .matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .ms-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hot-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-toolbar strong { width: 100%; margin-left: 0; }
}
@media (max-width: 720px) {
  .hero h1, .page-hero h1 { font-size: 36px; }
  .nav-wrap { align-items: flex-start; gap: 10px; }
  .brand { max-width: calc(100% - 154px); }
  .brand strong { font-size: 18px; }
  .nav-actions { gap: 8px; }
  .contact-pill { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .lang-switch button { min-width: 42px; height: 30px; }
  .form-grid, .tester-row, .metric-row, .stat-grid, .model-grid, .station-grid, .article-grid, .matrix-grid { grid-template-columns: 1fr; }
  .home-checker-form, .home-model-picker, .format-cards, .api-form-grid { grid-template-columns: 1fr; }
  .home-tester-result .metric-row { grid-template-columns: 1fr; }
  .curl-head { flex-direction: column; }
  .api-key-hero h1 { font-size: 30px; }
  .ms-card-grid, .hot-model-grid { grid-template-columns: 1fr; }
  .ms-choice-card { min-height: 132px; }
  .ms-hero h1, .lb-hero h1 { font-size: 26px; }
  .lb-channel-head { align-items: flex-start; flex-direction: column; }
  .article-inlink-grid { grid-template-columns: 1fr; }
  .model-group-head, .contact-row { grid-template-columns: 1fr; }
  .model-group-head { align-items: start; }
  .contact-heading, .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-form-grid, .compact-form { grid-template-columns: 1fr; }
  .contact-tabs { margin-bottom: 30px; }
  .password-line { align-items: stretch; flex-direction: column; }
}
