.header-actions .mcp-header-entry {
  width: auto;
  padding: 0 9px;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 967px) {
  .topbar:has(.mcp-header-entry) {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 620px) {
  .topbar:has(.mcp-header-entry) {
    padding-inline: 10px;
  }
  .topbar:has(.mcp-header-entry) .primary-tabs { gap: 8px; }
  .header-actions .mcp-header-entry { width: auto; padding-inline: 6px; }
}

@media (max-width: 410px) {
  .topbar:has(.mcp-header-entry) .brand strong { display: none; }
  .topbar:has(.mcp-header-entry) .primary-tabs a { font-size: 11px; }
  .topbar:has(.mcp-header-entry) .header-actions { gap: 3px; }
  .header-actions:has(.mcp-header-entry) #account-entry,
  .header-actions:has(.mcp-header-entry) #account-register-entry {
    font-size: 11px;
    padding-inline: 5px;
  }
}

.mcp-page {
  margin: 0;
  background: #0c0c0c;
  color: #eee;
  font: 15px/1.65 system-ui, "Microsoft YaHei", sans-serif;
}
.mcp-page * { box-sizing: border-box; }
.mcp-page a { color: #ddd; }
.mcp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid #252525;
}
.mcp-top a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mcp-content { width: min(760px, calc(100% - 32px)); margin: 42px auto; }
.mcp-content h1 { margin: 0; font-size: clamp(26px, 5vw, 36px); }
.mcp-content h2 { margin: 0 0 10px; font-size: 17px; }
.mcp-content p { color: #aaa; overflow-wrap: anywhere; }
.mcp-content section { margin-top: 24px; padding: clamp(15px, 4vw, 24px); background: #151515; border: 1px solid #292929; border-radius: 14px; }
.mcp-copy-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.mcp-copy-row h2 { margin: 0; }
.mcp-content button { padding: 7px 12px; border: 1px solid #383838; border-radius: 8px; background: #232323; color: #eee; font: inherit; cursor: pointer; }
.mcp-content button:hover { background: #303030; }
.mcp-page :focus-visible { outline: 2px solid #bbb; outline-offset: 3px; }
.mcp-content pre { max-height: 420px; overflow: auto; margin: 16px 0; padding: 16px; border: 1px solid #2c2c2c; border-radius: 9px; background: #0e0e0e; }
.mcp-content code { font: 13px/1.65 Consolas, monospace; }
#mcp-copy-status { min-height: 24px; }
