﻿:root {
  --bg: #141414;
  --surface: #1c1c1c;
  --surface-hover: #242424;
  --border: #2a2a2a;
  --border-subtle: #202020;
  --text: #e2e2e2;
  --text-muted: #8c8c8c;
  --text-dim: #5c5c5c;
  --text-bright: #ffffff;
  --accent: #fb923c;
  --accent-dim: rgba(251, 146, 60, 0.12);
  --font: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-transform: lowercase;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

a {
  color: inherit;
  text-decoration: none;
}

a.link {
  color: var(--text-muted);
  border-bottom: 1px dotted var(--text-dim);
  transition: color 0.15s, border-color 0.15s;
}

a.link:hover {
  color: var(--text-bright);
  border-color: var(--text-bright);
}

a.link.accent-link {
  color: var(--accent);
  border-bottom: 1px dotted rgba(251, 146, 60, 0.6);
}

a.link.accent-link:hover {
  color: #fdba74;
  border-color: #fdba74;
}

.wrapper {
  width: 100%;
  max-width: 1140px;
  margin: -16px auto 0;
  padding: 36px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.star-icon {
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1;
  margin-left: 2px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1;
}

.header-links a:hover {
  color: var(--text-bright);
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.left-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.content-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.content-desc b {
  color: var(--text);
  font-weight: 600;
}

.cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  margin-top: 2px;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: all;
}

.cmd-code {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #a1a1aa;
  font-family: var(--font);
  white-space: nowrap;
  overflow-x: auto;
  transition: color 0.15s ease;
}

.cmd-box:hover .cmd-code {
  color: #ffffff;
}

.tok-pfx {
  color: #52525b;
  font-weight: 600;
  user-select: none;
  transition: color 0.15s ease;
}

.cmd-box:hover .tok-pfx {
  color: #8c8c8c;
}

.btn-copy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #52525b;
  cursor: pointer;
  padding: 2px;
  margin-left: 12px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.cmd-box:hover .btn-copy-icon {
  color: #e4e4e7;
}

.btn-copy-icon.copied {
  color: var(--accent) !important;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.89rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-step .num {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  min-width: 20px;
}

.right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 6px;
}

.lb-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

.lb-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.lb-list {
  display: flex;
  flex-direction: column;
}

.lb-row-header {
  display: grid;
  grid-template-columns: 28px 1fr 88px 72px 78px;
  gap: 12px;
  padding: 7px 4px 9px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.lb-row {
  display: grid;
  grid-template-columns: 28px 1fr 88px 72px 78px;
  gap: 12px;
  align-items: center;
  padding: 8px 4px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s;
}

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

.lb-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.col-num {
  text-align: right;
}

.rank-val {
  color: var(--text-dim);
  font-weight: 600;
}

.model-val {
  font-weight: 600;
  color: var(--text-bright);
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-tag {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pass-val {
  font-weight: 600;
  color: var(--text-bright);
}

@media (max-width: 900px) {
  .wrapper {
    padding: 32px 20px;
    gap: 28px;
    margin-top: 0;
  }
  main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
