/* ---------- Rule cheatsheet ---------- */
.rule-table {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-deep);
}

.rule-row {
  display: grid;
  grid-template-columns: 1.9fr 1.6fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.rule-row:first-child {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.rule-row:last-child { border-bottom: none; }
.rule-row:not(:first-child):hover { background: rgba(255, 176, 59, 0.04); }

.rule-row code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

.rule-row code b { color: var(--amber); font-weight: 400; }

.rule-row p { font-size: 13.5px; color: var(--ink-dim); }

.rule-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
  text-align: center;
  white-space: nowrap;
}

.rule-tag.direct { color: var(--green); border: 1px solid rgba(53, 208, 127, 0.4); background: rgba(53, 208, 127, 0.08); }
.rule-tag.proxy { color: var(--amber); border: 1px solid var(--line-strong); background: rgba(255, 176, 59, 0.08); }
.rule-tag.reject { color: var(--red); border: 1px solid rgba(229, 96, 79, 0.4); background: rgba(229, 96, 79, 0.08); }

.rule-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-dim);
}

.rule-note code { font-family: var(--mono); font-size: 12.5px; color: var(--amber); }

/* ---------- Inline platform label inside timeline steps ---------- */
.tl-os-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(255, 176, 59, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px 9px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rule-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .rule-row:first-child { display: none; }
  .rule-tag { justify-self: start; }
}
